Lines Matching refs:mFWInfo
29 FWInfo *mFWInfo = NULL; variable
128 mFWInfo = (FWInfo *)malloc(sizeof(FWInfo)); in hal_fd_init()
130 if (mFWInfo == NULL) { in hal_fd_init()
134 memset(mFWInfo, 0, sizeof(FWInfo)); in hal_fd_init()
148 mFWInfo->patchVersion = in hal_fd_init()
157 __func__, mFWInfo->patchVersion, FwType); in hal_fd_init()
165 mFWInfo->confVersion = mBinData[0] << 8 | mBinData[1]; in hal_fd_init()
167 __func__, mFWInfo->confVersion); in hal_fd_init()
181 if (mFWInfo != NULL) { in hal_fd_close()
182 free(mFWInfo); in hal_fd_close()
183 mFWInfo = NULL; in hal_fd_close()
218 mFWInfo->hwVersion = pdata[8]; in ft_cmd_HwReset()
219 STLOG_HAL_D(" HwVersion = 0x%02X", mFWInfo->hwVersion); in ft_cmd_HwReset()
222 mFWInfo->fwVersion = in ft_cmd_HwReset()
224 STLOG_HAL_D(" FwVersion = 0x%08X", mFWInfo->fwVersion); in ft_cmd_HwReset()
227 mFWInfo->loaderVersion = (pdata[14] << 16) | (pdata[15] << 8) | pdata[16]; in ft_cmd_HwReset()
228 STLOG_HAL_D(" LoaderVersion = 0x%06X", mFWInfo->loaderVersion); in ft_cmd_HwReset()
231 mFWInfo->custVersion = (pdata[31] << 8) | pdata[32]; in ft_cmd_HwReset()
232 STLOG_HAL_D(" CustomerVersion = 0x%04X", mFWInfo->custVersion); in ft_cmd_HwReset()
235 mFWInfo->uwbFwVersion = (pdata[29] << 8) | pdata[30]; in ft_cmd_HwReset()
236 STLOG_HAL_D(" uwbVersion = 0x%04X", mFWInfo->uwbFwVersion); in ft_cmd_HwReset()
244 mFWInfo->hwVersion = 0x05; // ST54J in ft_cmd_HwReset()
246 mFWInfo->hwVersion = 0x04; // ST21NFCD in ft_cmd_HwReset()
248 mFWInfo->hwVersion = 0x03; // ST21NFCD in ft_cmd_HwReset()
250 STLOG_HAL_D(" HwVersion = 0x%02X", mFWInfo->hwVersion); in ft_cmd_HwReset()
254 mFWInfo->loaderVersion = (pdata[8] << 16) | (pdata[9] << 8) | pdata[10]; in ft_cmd_HwReset()
256 mFWInfo->loaderVersion); in ft_cmd_HwReset()
259 mFWInfo->loaderVersion = (pdata[12] << 16) | (pdata[13] << 8) | pdata[14]; in ft_cmd_HwReset()
261 mFWInfo->loaderVersion); in ft_cmd_HwReset()
264 mFWInfo->loaderVersion = (pdata[16] << 16) | (pdata[17] << 8) | pdata[18]; in ft_cmd_HwReset()
266 mFWInfo->loaderVersion); in ft_cmd_HwReset()
278 if (mFWInfo->hwVersion == 0x05) { in ft_cmd_HwReset()
279 if ((mFwFileBin != NULL) && (mFWInfo->patchVersion != mFWInfo->fwVersion)) { in ft_cmd_HwReset()
286 if ((mFWInfo->confVersion != 0) && in ft_cmd_HwReset()
287 (mFWInfo->custVersion != mFWInfo->confVersion)) { in ft_cmd_HwReset()
297 if ((mFWInfo->uwbVersion != 0) && in ft_cmd_HwReset()
298 (mFWInfo->uwbVersion != mFWInfo->uwbFwVersion)) { in ft_cmd_HwReset()
317 mFWInfo->hibernate_exited); in ExitHibernateHandler()
321 (mFWInfo->hibernate_exited == 0)) { in ExitHibernateHandler()
328 (mFWInfo->hibernate_exited == 1)) { in ExitHibernateHandler()
348 (mFWInfo->hibernate_exited == 1)) { in ExitHibernateHandler()
366 mFWInfo->hibernate_exited = 1; in ExitHibernateHandler()
368 mFWInfo->hibernate_exited); in ExitHibernateHandler()
404 mFWInfo->uwbVersion = in ft_CheckUWBConf()
407 mFWInfo->uwbVersion); in ft_CheckUWBConf()
546 if (mFWInfo->hibernate_exited == 0) { in ApplyCustomParamHandler()
553 } else if (mFWInfo->hibernate_exited == 1) { in ApplyCustomParamHandler()
572 if (mFWInfo->hibernate_exited == 1) { in ApplyCustomParamHandler()
598 nciPropSetConfig_CustomField[13] = mFWInfo->uwbFwVersion >> 8; in ApplyCustomParamHandler()
599 nciPropSetConfig_CustomField[14] = mFWInfo->uwbFwVersion; in ApplyCustomParamHandler()
630 mFWInfo->hibernate_exited = 1; in ApplyCustomParamHandler()
659 if (mFWInfo->hibernate_exited == 0) { in ApplyUwbParamHandler()
666 } else if ((mFWInfo->hibernate_exited == 1) && !mUwbConfigDone) { in ApplyUwbParamHandler()
681 if (mFWInfo->hibernate_exited == 1) { in ApplyUwbParamHandler()
700 nciPropSetConfig_CustomField[13] = mFWInfo->uwbVersion >> 8; in ApplyUwbParamHandler()
701 nciPropSetConfig_CustomField[14] = mFWInfo->uwbVersion; in ApplyUwbParamHandler()
718 mFWInfo->hibernate_exited = 1; in ApplyUwbParamHandler()