Lines Matching refs:wStatus

60     NFCSTATUS   wStatus = NFCSTATUS_SUCCESS;  in phDnldNfc_Reset()  local
67 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Reset()
74 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Reset()
87 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventReset); in phDnldNfc_Reset()
89 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_Reset()
100 return wStatus; in phDnldNfc_Reset()
123 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetVersion() local
130 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
137 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetVersion()
152 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventGetVer); in phDnldNfc_GetVersion()
154 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_GetVersion()
166 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetVersion()
171 return wStatus; in phDnldNfc_GetVersion()
193 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_GetSessionState() local
200 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
207 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_GetSessionState()
222 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventGetSesnSt); in phDnldNfc_GetSessionState()
224 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_GetSessionState()
236 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_GetSessionState()
241 return wStatus; in phDnldNfc_GetSessionState()
267 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CheckIntegrity() local
274 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
281 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_CheckIntegrity()
305 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventIntegChk); in phDnldNfc_CheckIntegrity()
307 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_CheckIntegrity()
319 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CheckIntegrity()
324 return wStatus; in phDnldNfc_CheckIntegrity()
345 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadLog() local
352 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
359 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_ReadLog()
377 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventRead); in phDnldNfc_ReadLog()
379 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_ReadLog()
391 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadLog()
396 return wStatus; in phDnldNfc_ReadLog()
419 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Write() local
427 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Write()
434 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Write()
456 wStatus = phDnldNfc_LoadRecInfo(); in phDnldNfc_Write()
460 wStatus = phDnldNfc_LoadPKInfo(); in phDnldNfc_Write()
466 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_Write()
498 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventWrite); in phDnldNfc_Write()
500 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_Write()
512 wStatus = NFCSTATUS_FAILED; in phDnldNfc_Write()
517 return wStatus; in phDnldNfc_Write()
539 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Log() local
546 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
553 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Log()
570 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventLog); in phDnldNfc_Log()
572 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_Log()
584 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Log()
589 return wStatus; in phDnldNfc_Log()
612 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Force() local
619 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Force()
626 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Force()
700 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventForce); in phDnldNfc_Force()
702 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_Force()
713 return wStatus; in phDnldNfc_Force()
800 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_RawReq() local
807 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
814 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_RawReq()
831 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventRaw); in phDnldNfc_RawReq()
833 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_RawReq()
845 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_RawReq()
850 return wStatus; in phDnldNfc_RawReq()
867 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo() local
877 wStatus = phDnldNfc_LoadRecoveryFW (FW_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
880 wStatus = phDnldNfc_LoadFW (FW_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_InitImgInfo()
888 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
891 if (wStatus != NFCSTATUS_SUCCESS) in phDnldNfc_InitImgInfo()
897 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_InitImgInfo()
904 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_InitImgInfo()
917 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_InitImgInfo()
922 wStatus = NFCSTATUS_FAILED; in phDnldNfc_InitImgInfo()
926 return wStatus; in phDnldNfc_InitImgInfo()
944 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo() local
952 wStatus = phDnldNfc_LoadRecoveryFW (PLATFORM_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadRecInfo()
955 wStatus = phDnldNfc_LoadFW (PLATFORM_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadRecInfo()
959 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
963 if (wStatus != NFCSTATUS_SUCCESS) in phDnldNfc_LoadRecInfo()
968 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_LoadRecInfo()
977 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadRecInfo()
982 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadRecInfo()
986 return wStatus; in phDnldNfc_LoadRecInfo()
1003 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo() local
1013 wStatus = phDnldNfc_LoadRecoveryFW (PKU_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadPKInfo()
1016 wStatus = phDnldNfc_LoadFW (PKU_LIB_PATH, &pImageInfo, &ImageInfoLen); in phDnldNfc_LoadPKInfo()
1020 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
1023 if (wStatus != NFCSTATUS_SUCCESS) in phDnldNfc_LoadPKInfo()
1028 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_LoadPKInfo()
1038 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_LoadPKInfo()
1043 wStatus = NFCSTATUS_FAILED; in phDnldNfc_LoadPKInfo()
1047 return wStatus; in phDnldNfc_LoadPKInfo()
1064 NFCSTATUS wStatus; in phDnldNfc_CloseFwLibHandle() local
1066 wStatus = phDnldNfc_UnloadFW(); in phDnldNfc_CloseFwLibHandle()
1067 if(wStatus != NFCSTATUS_SUCCESS) in phDnldNfc_CloseFwLibHandle()
1233 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UnloadFW() local
1245 wStatus = NFCSTATUS_FAILED; in phDnldNfc_UnloadFW()
1250 return wStatus; in phDnldNfc_UnloadFW()
1273 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadMem() local
1283 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ReadMem()
1288 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableDownloadMode); in phDnldNfc_ReadMem()
1290 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ReadMem()
1297 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1300 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ReadMem()
1317wStatus = phDnldNfc_Read(&Data, wRdAddr,(pphDnldNfc_RspCb_t)phDnldNfc_ReadComplete,gpphDnldContext… in phDnldNfc_ReadMem()
1323 wStatus = NFCSTATUS_FAILED; in phDnldNfc_ReadMem()
1326 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_ReadMem()
1336 return wStatus; in phDnldNfc_ReadMem()
1354 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ReadComplete() local
1358 wStatus = phTmlNfc_IoCtl(phTmlNfc_e_EnableNormalMode); in phDnldNfc_ReadComplete()
1360 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ReadComplete()
1390 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_Read() local
1397 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1404 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_BUSY); in phDnldNfc_Read()
1422 wStatus = phDnldNfc_CmdHandler(gpphDnldContext,phDnldNfc_EventRead); in phDnldNfc_Read()
1424 if(NFCSTATUS_PENDING == wStatus) in phDnldNfc_Read()
1436 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_Read()
1441 return wStatus; in phDnldNfc_Read()