Lines Matching refs:mFWInfo
28 FWInfo *mFWInfo = NULL; variable
114 mFWInfo = (FWInfo *)malloc(sizeof(FWInfo)); in hal_fd_init()
116 if (mFWInfo == NULL) { in hal_fd_init()
120 memset(mFWInfo, 0, sizeof(FWInfo)); in hal_fd_init()
134 mFWInfo->patchVersion = in hal_fd_init()
143 __func__, mFWInfo->patchVersion, FwType); in hal_fd_init()
151 mFWInfo->confVersion = mBinData[0] << 8 | mBinData[1]; in hal_fd_init()
153 __func__, mFWInfo->confVersion); in hal_fd_init()
163 if (mFWInfo != NULL) { in hal_fd_close()
164 free(mFWInfo); in hal_fd_close()
165 mFWInfo = NULL; in hal_fd_close()
200 mFWInfo->hwVersion = pdata[8]; in ft_cmd_HwReset()
201 STLOG_HAL_D(" HwVersion = 0x%02X", mFWInfo->hwVersion); in ft_cmd_HwReset()
204 mFWInfo->fwVersion = in ft_cmd_HwReset()
206 STLOG_HAL_D(" FwVersion = 0x%08X", mFWInfo->fwVersion); in ft_cmd_HwReset()
209 mFWInfo->loaderVersion = (pdata[14] << 16) | (pdata[15] << 8) | pdata[16]; in ft_cmd_HwReset()
210 STLOG_HAL_D(" LoaderVersion = 0x%06X", mFWInfo->loaderVersion); in ft_cmd_HwReset()
213 mFWInfo->custVersion = (pdata[31] << 8) | pdata[32]; in ft_cmd_HwReset()
214 STLOG_HAL_D(" CustomerVersion = 0x%04X", mFWInfo->custVersion); in ft_cmd_HwReset()
222 mFWInfo->hwVersion = 0x05; // ST54J in ft_cmd_HwReset()
224 mFWInfo->hwVersion = 0x04; // ST21NFCD in ft_cmd_HwReset()
226 mFWInfo->hwVersion = 0x03; // ST21NFCD in ft_cmd_HwReset()
228 STLOG_HAL_D(" HwVersion = 0x%02X", mFWInfo->hwVersion); in ft_cmd_HwReset()
232 mFWInfo->loaderVersion = (pdata[8] << 16) | (pdata[9] << 8) | pdata[10]; in ft_cmd_HwReset()
234 mFWInfo->loaderVersion); in ft_cmd_HwReset()
237 mFWInfo->loaderVersion = (pdata[12] << 16) | (pdata[13] << 8) | pdata[14]; in ft_cmd_HwReset()
239 mFWInfo->loaderVersion); in ft_cmd_HwReset()
242 mFWInfo->loaderVersion = (pdata[16] << 16) | (pdata[17] << 8) | pdata[18]; in ft_cmd_HwReset()
244 mFWInfo->loaderVersion); in ft_cmd_HwReset()
256 if (mFWInfo->hwVersion == 0x05) { in ft_cmd_HwReset()
257 if ((mFwFileBin != NULL) && (mFWInfo->patchVersion != mFWInfo->fwVersion)) { in ft_cmd_HwReset()
264 if ((mFWInfo->confVersion != 0) && in ft_cmd_HwReset()
265 (mFWInfo->custVersion != mFWInfo->confVersion)) { in ft_cmd_HwReset()
289 mFWInfo->hibernate_exited); in ExitHibernateHandler()
293 (mFWInfo->hibernate_exited == 0)) { in ExitHibernateHandler()
300 (mFWInfo->hibernate_exited == 1)) { in ExitHibernateHandler()
320 (mFWInfo->hibernate_exited == 1)) { in ExitHibernateHandler()
338 mFWInfo->hibernate_exited = 1; in ExitHibernateHandler()
340 mFWInfo->hibernate_exited); in ExitHibernateHandler()
478 if (mFWInfo->hibernate_exited == 0) { in ApplyCustomParamHandler()
485 } else if (mFWInfo->hibernate_exited == 1) { in ApplyCustomParamHandler()
504 if (mFWInfo->hibernate_exited == 1) { in ApplyCustomParamHandler()
528 mFWInfo->hibernate_exited = 1; in ApplyCustomParamHandler()