Lines Matching refs:wStatus
54 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Reset() local
58 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Reset()
62 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Reset()
73 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventReset); in phDnldNfc_Reset()
75 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Reset()
83 return wStatus; in phDnldNfc_Reset()
109 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetVersion() local
113 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
117 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetVersion()
129 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventGetVer); in phDnldNfc_GetVersion()
131 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_GetVersion()
138 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
143 return wStatus; in phDnldNfc_GetVersion()
169 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetSessionState() local
173 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
177 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetSessionState()
189 wStatus = in phDnldNfc_GetSessionState()
192 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_GetSessionState()
199 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
204 return wStatus; in phDnldNfc_GetSessionState()
234 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CheckIntegrity() local
238 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
242 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_CheckIntegrity()
266 wStatus = in phDnldNfc_CheckIntegrity()
269 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_CheckIntegrity()
276 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
281 return wStatus; in phDnldNfc_CheckIntegrity()
303 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadLog() local
307 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
311 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_ReadLog()
327 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRead); in phDnldNfc_ReadLog()
329 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_ReadLog()
336 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
341 return wStatus; in phDnldNfc_ReadLog()
367 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Write() local
374 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Write()
378 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Write()
390 wStatus = phDnldNfc_LoadRecInfo(); in phDnldNfc_Write()
393 wStatus = phDnldNfc_LoadPKInfo(); in phDnldNfc_Write()
397 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_Write()
426 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventWrite); in phDnldNfc_Write()
428 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Write()
435 wStatus = NFCSTATUS_FAILED; in phDnldNfc_Write()
440 return wStatus; in phDnldNfc_Write()
463 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Log() local
467 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
471 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Log()
487 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventLog); in phDnldNfc_Log()
489 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Log()
496 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
501 return wStatus; in phDnldNfc_Log()
527 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Force() local
534 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Force()
538 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Force()
588 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventForce); in phDnldNfc_Force()
590 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Force()
598 return wStatus; in phDnldNfc_Force()
679 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_RawReq() local
684 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
688 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_RawReq()
701 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRaw); in phDnldNfc_RawReq()
703 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_RawReq()
710 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
715 return wStatus; in phDnldNfc_RawReq()
731 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo() local
751 wStatus = phDnldNfc_LoadBinFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
755 wStatus = phDnldNfc_LoadRecoveryFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
757 wStatus = phDnldNfc_LoadFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
770 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
773 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_InitImgInfo()
778 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_InitImgInfo()
784 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_InitImgInfo()
799 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo()
802 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
806 return wStatus; in phDnldNfc_InitImgInfo()
823 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo() local
831 wStatus = phDnldNfc_LoadRecoveryFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_LoadRecInfo()
833 wStatus = phDnldNfc_LoadFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_LoadRecInfo()
838 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
842 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_LoadRecInfo()
846 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_LoadRecInfo()
854 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo()
857 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
861 return wStatus; in phDnldNfc_LoadRecInfo()
878 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo() local
887 wStatus = phDnldNfc_LoadRecoveryFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_LoadPKInfo()
889 wStatus = phDnldNfc_LoadFW(&pImageInfo, &ImageInfoLen); in phDnldNfc_LoadPKInfo()
893 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
896 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_LoadPKInfo()
900 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_LoadPKInfo()
909 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo()
912 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
916 return wStatus; in phDnldNfc_LoadPKInfo()
932 NFCSTATUS wStatus = NFCSTATUS_FAILED; in phDnldNfc_CloseFwLibHandle() local
934 wStatus = phDnldNfc_UnloadFW(); in phDnldNfc_CloseFwLibHandle()
935 if (wStatus != NFCSTATUS_SUCCESS) { in phDnldNfc_CloseFwLibHandle()
1154 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UnloadFW() local
1164 wStatus = NFCSTATUS_FAILED; in phDnldNfc_UnloadFW()
1169 return wStatus; in phDnldNfc_UnloadFW()
1199 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadMem() local
1208 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadMem()
1211 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableDownloadMode); in phDnldNfc_ReadMem()
1213 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadMem()
1217 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1220 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadMem()
1236 wStatus = phDnldNfc_Read(&Data, wRdAddr, in phDnldNfc_ReadMem()
1242 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1245 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_ReadMem()
1252 return wStatus; in phDnldNfc_ReadMem()
1270 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadComplete() local
1274 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableNormalMode); in phDnldNfc_ReadComplete()
1276 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ReadComplete()
1307 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Read() local
1311 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1315 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Read()
1331 wStatus = phDnldNfc_CmdHandler(gpphDnldContext, phDnldNfc_EventRead); in phDnldNfc_Read()
1333 if (NFCSTATUS_PENDING == wStatus) { in phDnldNfc_Read()
1340 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1345 return wStatus; in phDnldNfc_Read()