Lines Matching refs:mFwFileBin
30 FILE *mFwFileBin; variable
136 mFwFileBin = NULL; in hal_fd_init()
141 if ((mFwFileBin = fopen((char *)FwPath, "r")) == NULL) { in hal_fd_init()
147 fread(mBinData, sizeof(uint8_t), 4, mFwFileBin); in hal_fd_init()
151 fread(mApduAuthent, sizeof(uint8_t), 24, mFwFileBin); in hal_fd_init()
153 fgetpos(mFwFileBin, &mPosInit); in hal_fd_init()
185 if (mFwFileBin != NULL) { in hal_fd_close()
186 fclose(mFwFileBin); in hal_fd_close()
187 mFwFileBin = NULL; in hal_fd_close()
279 if ((mFwFileBin != NULL) && (mFWInfo->patchVersion != mFWInfo->fwVersion)) { in ft_cmd_HwReset()
458 fsetpos(mFwFileBin, &mPosInit); // reset pos in stream in UpdateHandler()
475 fgetpos(mFwFileBin, &mPos); // save current position in stream in UpdateHandler()
476 if ((fread(mBinData, sizeof(uint8_t), 3, mFwFileBin) == 3) && in UpdateHandler()
477 (fread(mBinData + 3, sizeof(uint8_t), mBinData[2], mFwFileBin) == in UpdateHandler()
490 fsetpos(mFwFileBin, &mPos); in UpdateHandler()
491 if ((fread(mBinData, sizeof(uint8_t), 3, mFwFileBin) == 3) && in UpdateHandler()
492 (fread(mBinData + 3, sizeof(uint8_t), mBinData[2], mFwFileBin) == in UpdateHandler()
498 fgetpos(mFwFileBin, &mPos); // save current position in stream in UpdateHandler()