Lines Matching refs:pFwHandle
28 static void* pFwHandle; /* Global firmware handle */ variable
941 if (pFwHandle != NULL) { in phDnldNfc_CloseFwLibHandle()
942 free(pFwHandle); in phDnldNfc_CloseFwLibHandle()
943 pFwHandle = NULL; in phDnldNfc_CloseFwLibHandle()
966 if (pFwHandle != NULL) { in phDnldNfc_LoadFW()
968 pFwHandle = NULL; in phDnldNfc_LoadFW()
972 pFwHandle = dlopen(nfcFL._FW_LIB_PATH.c_str(), RTLD_LAZY); in phDnldNfc_LoadFW()
976 if (pFwHandle == NULL) { in phDnldNfc_LoadFW()
985 pImageInfo = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeq"); in phDnldNfc_LoadFW()
993 pImageInfoLen = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeqSz"); in phDnldNfc_LoadFW()
1029 if (pFwHandle != NULL) { in phDnldNfc_LoadBinFW()
1031 pFwHandle = NULL; in phDnldNfc_LoadBinFW()
1057 pFwHandle = (void*)malloc(sizeof(uint8_t) * fileSize); in phDnldNfc_LoadBinFW()
1060 if (NULL == pFwHandle) { in phDnldNfc_LoadBinFW()
1068 (uint32_t)fread(pFwHandle, sizeof(uint8_t), (size_t)fileSize, pFile); in phDnldNfc_LoadBinFW()
1072 free(pFwHandle); in phDnldNfc_LoadBinFW()
1073 pFwHandle = NULL; in phDnldNfc_LoadBinFW()
1078 *pImgInfo = (uint8_t*)pFwHandle; in phDnldNfc_LoadBinFW()
1105 if (pFwHandle != NULL) { in phDnldNfc_LoadRecoveryFW()
1107 pFwHandle = NULL; in phDnldNfc_LoadRecoveryFW()
1110 pFwHandle = dlopen(nfcFL._FW_LIB_PATH.c_str(), RTLD_LAZY); in phDnldNfc_LoadRecoveryFW()
1114 if (pFwHandle == NULL) { in phDnldNfc_LoadRecoveryFW()
1123 pImageInfo = (void*)dlsym(pFwHandle, "gphDnldNfc_DummyDlSeq"); in phDnldNfc_LoadRecoveryFW()
1131 pImageInfoLen = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeqDummyFwSz"); in phDnldNfc_LoadRecoveryFW()
1158 if (pFwHandle != NULL) { in phDnldNfc_UnloadFW()
1159 status = dlclose(pFwHandle); in phDnldNfc_UnloadFW()
1160 pFwHandle = NULL; in phDnldNfc_UnloadFW()