Lines Matching refs:imgSz

386 phHbci_Status_t phHbci_PutCommand(uint8_t *pImg, uint32_t imgSz)  in phHbci_PutCommand()  argument
399 if (imgSz > PHHBCI_MAX_LEN_DATA_MOSI) in phHbci_PutCommand()
406 lrc = imgSz ? PHHBCI_LEN_LRC : 0; in phHbci_PutCommand()
407 dataSz = imgSz; in phHbci_PutCommand()
437 imgSz -= dataSz; in phHbci_PutCommand()
461 while (imgSz); in phHbci_PutCommand()
466 static phHbci_Status_t phHbci_MasterPatchROM(uint8_t *pImg, uint32_t imgSz) in phHbci_MasterPatchROM() argument
496 if (phHbci_Success != (ret = phHbci_PutCommand(pImg, imgSz))) in phHbci_MasterPatchROM()
546 static phHbci_Status_t phHbci_MasterHIFImage(uint8_t *pImg, uint32_t imgSz) in phHbci_MasterHIFImage() argument
576 if (phHbci_Success != (ret = phHbci_PutCommand(pImg, imgSz))) in phHbci_MasterHIFImage()
642 phHbci_Status_t phHbci_Master(phHbci_General_Command_t mode, uint8_t *pImg, uint32_t imgSz) in phHbci_Master() argument
673 return phHbci_MasterPatchROM(pImg, imgSz); in phHbci_Master()
676 return phHbci_MasterHIFImage(pImg, imgSz); in phHbci_Master()
923 uint32_t imgSz=0, maxSz, err = 0; in phNxpUciHal_fw_download() local
984 imgSz = (uint32_t)ftell(gOpts.fImg); in phNxpUciHal_fw_download()
985 ALOGD("FWD file size ftell returns: %d\n",imgSz); in phNxpUciHal_fw_download()
986 if (!imgSz || (maxSz < imgSz) || (sizeof(pImg) < imgSz)) in phNxpUciHal_fw_download()
988 ALOGD("ERROR: %s image size (%d) not supported!\n", gOpts.imgFile, imgSz); in phNxpUciHal_fw_download()
994 ALOGD("FWD file size: %d\n",imgSz); in phNxpUciHal_fw_download()
995 if (imgSz == fread(pImg, sizeof(uint8_t), imgSz, gOpts.fImg)) in phNxpUciHal_fw_download()
1000 err = phHbci_Master(cmd, pImg, imgSz); in phNxpUciHal_fw_download()