Lines Matching refs:mFwFileBin
29 FILE *mFwFileBin; variable
122 mFwFileBin = NULL; in hal_fd_init()
127 if ((mFwFileBin = fopen((char *)FwPath, "r")) == NULL) { in hal_fd_init()
133 fread(mBinData, sizeof(uint8_t), 4, mFwFileBin); in hal_fd_init()
137 fread(mApduAuthent, sizeof(uint8_t), 24, mFwFileBin); in hal_fd_init()
139 fgetpos(mFwFileBin, &mPosInit); in hal_fd_init()
167 if (mFwFileBin != NULL) { in hal_fd_close()
168 fclose(mFwFileBin); in hal_fd_close()
169 mFwFileBin = NULL; in hal_fd_close()
257 if ((mFwFileBin != NULL) && (mFWInfo->patchVersion != mFWInfo->fwVersion)) { in ft_cmd_HwReset()
390 fsetpos(mFwFileBin, &mPosInit); // reset pos in stream in UpdateHandler()
407 fgetpos(mFwFileBin, &mPos); // save current position in stream in UpdateHandler()
408 if ((fread(mBinData, sizeof(uint8_t), 3, mFwFileBin) == 3) && in UpdateHandler()
409 (fread(mBinData + 3, sizeof(uint8_t), mBinData[2], mFwFileBin) == in UpdateHandler()
422 fsetpos(mFwFileBin, &mPos); in UpdateHandler()
423 if ((fread(mBinData, sizeof(uint8_t), 3, mFwFileBin) == 3) && in UpdateHandler()
424 (fread(mBinData + 3, sizeof(uint8_t), mBinData[2], mFwFileBin) == in UpdateHandler()
430 fgetpos(mFwFileBin, &mPos); // save current position in stream in UpdateHandler()