Lines Matching refs:pFwHandle
28 static void* pFwHandle; /* Global firmware handle*/ variable
962 if (pFwHandle != NULL) { in phDnldNfc_CloseFwLibHandle()
963 free(pFwHandle); in phDnldNfc_CloseFwLibHandle()
964 pFwHandle = NULL; in phDnldNfc_CloseFwLibHandle()
992 if (pFwHandle != NULL) { in phDnldNfc_LoadFW()
994 pFwHandle = NULL; in phDnldNfc_LoadFW()
998 pFwHandle = dlopen(pathName, RTLD_LAZY); in phDnldNfc_LoadFW()
1002 if (pFwHandle == NULL) { in phDnldNfc_LoadFW()
1011 pImageInfo = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeq"); in phDnldNfc_LoadFW()
1019 pImageInfoLen = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeqSz"); in phDnldNfc_LoadFW()
1054 if (pFwHandle != NULL) { in phDnldNfc_LoadBinFW()
1056 pFwHandle = NULL; in phDnldNfc_LoadBinFW()
1082 pFwHandle = (void*)malloc(sizeof(uint8_t) * fileSize); in phDnldNfc_LoadBinFW()
1085 if (NULL == pFwHandle) { in phDnldNfc_LoadBinFW()
1093 (uint32_t)fread(pFwHandle, sizeof(uint8_t), (size_t)fileSize, pFile); in phDnldNfc_LoadBinFW()
1097 free(pFwHandle); in phDnldNfc_LoadBinFW()
1098 pFwHandle = NULL; in phDnldNfc_LoadBinFW()
1103 *pImgInfo = (uint8_t*)pFwHandle; in phDnldNfc_LoadBinFW()
1135 if (pFwHandle != NULL) { in phDnldNfc_LoadRecoveryFW()
1137 pFwHandle = NULL; in phDnldNfc_LoadRecoveryFW()
1140 pFwHandle = dlopen(pathName, RTLD_LAZY); in phDnldNfc_LoadRecoveryFW()
1144 if (pFwHandle == NULL) { in phDnldNfc_LoadRecoveryFW()
1153 pImageInfo = (void*)dlsym(pFwHandle, "gphDnldNfc_DummyDlSeq"); in phDnldNfc_LoadRecoveryFW()
1161 pImageInfoLen = (void*)dlsym(pFwHandle, "gphDnldNfc_DlSeqDummyFwSz"); in phDnldNfc_LoadRecoveryFW()
1188 if (pFwHandle != NULL) { in phDnldNfc_UnloadFW()
1189 status = dlclose(pFwHandle); in phDnldNfc_UnloadFW()
1190 pFwHandle = NULL; in phDnldNfc_UnloadFW()