Lines Matching refs:wStatus
62 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Reset() local
66 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Reset()
70 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Reset()
81 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventReset); in phDnldNfc_Reset()
83 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Reset()
91 return wStatus; in phDnldNfc_Reset()
117 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetVersion() local
121 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
125 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetVersion()
137 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventGetVer); in phDnldNfc_GetVersion()
139 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_GetVersion()
146 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
151 return wStatus; in phDnldNfc_GetVersion()
177 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetSessionState() local
181 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
185 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetSessionState()
197 wStatus = in phDnldNfc_GetSessionState()
200 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_GetSessionState()
207 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
212 return wStatus; in phDnldNfc_GetSessionState()
242 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CheckIntegrity() local
246 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
250 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_CheckIntegrity()
277 wStatus = in phDnldNfc_CheckIntegrity()
280 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_CheckIntegrity()
287 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
292 return wStatus; in phDnldNfc_CheckIntegrity()
314 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadLog() local
318 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
322 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_ReadLog()
338 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRead); in phDnldNfc_ReadLog()
340 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_ReadLog()
347 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
352 return wStatus; in phDnldNfc_ReadLog()
378 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Write() local
385 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Write()
389 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Write()
401 wStatus = phDnldNfc_LoadRecInfo(); in phDnldNfc_Write()
404 wStatus = phDnldNfc_LoadPKInfo(); in phDnldNfc_Write()
408 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_Write()
437 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventWrite); in phDnldNfc_Write()
439 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Write()
446 wStatus = NFCSTATUS_FAILED; in phDnldNfc_Write()
451 return wStatus; in phDnldNfc_Write()
474 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Log() local
478 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
482 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Log()
498 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventLog); in phDnldNfc_Log()
500 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Log()
507 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
512 return wStatus; in phDnldNfc_Log()
538 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Force() local
545 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Force()
549 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Force()
599 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventForce); in phDnldNfc_Force()
601 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Force()
609 return wStatus; in phDnldNfc_Force()
690 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_RawReq() local
695 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
699 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_RawReq()
712 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRaw); in phDnldNfc_RawReq()
714 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_RawReq()
721 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
726 return wStatus; in phDnldNfc_RawReq()
742 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo() local
764 wStatus = phDnldNfc_LoadRecoveryFW(pathName, &pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
767 wStatus = phDnldNfc_LoadFW(pathName, &pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
775 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
778 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_InitImgInfo()
783 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_InitImgInfo()
789 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_InitImgInfo()
804 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo()
807 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
811 return wStatus; in phDnldNfc_InitImgInfo()
828 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo() local
837 wStatus = in phDnldNfc_LoadRecInfo()
841 wStatus = phDnldNfc_LoadFW(PLATFORM_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadRecInfo()
845 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
849 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_LoadRecInfo()
853 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_LoadRecInfo()
861 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo()
864 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
868 return wStatus; in phDnldNfc_LoadRecInfo()
885 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo() local
896 wStatus = in phDnldNfc_LoadPKInfo()
900 wStatus = phDnldNfc_LoadFW(PKU_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadPKInfo()
904 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
907 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_LoadPKInfo()
911 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_LoadPKInfo()
920 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo()
923 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
927 return wStatus; in phDnldNfc_LoadPKInfo()
943 NFCSTATUS wStatus; in phDnldNfc_CloseFwLibHandle() local
945 wStatus = phDnldNfc_UnloadFW(); in phDnldNfc_CloseFwLibHandle()
946 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_CloseFwLibHandle()
1105 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UnloadFW() local
1115 wStatus = NFCSTATUS_FAILED; in phDnldNfc_UnloadFW()
1120 return wStatus; in phDnldNfc_UnloadFW()
1144 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadMem() local
1153 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadMem()
1156 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableDownloadMode); in phDnldNfc_ReadMem()
1158 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadMem()
1162 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1165 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadMem()
1181 wStatus = phDnldNfc_Read(&Data, wRdAddr, in phDnldNfc_ReadMem()
1187 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1190 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_ReadMem()
1197 return wStatus; in phDnldNfc_ReadMem()
1215 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadComplete() local
1219 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableNormalMode); in phDnldNfc_ReadComplete()
1221 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadComplete()
1252 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Read() local
1256 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1260 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Read()
1276 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRead); in phDnldNfc_Read()
1278 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Read()
1285 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1290 return wStatus; in phDnldNfc_Read()