Lines Matching refs:wStatus
192 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessSeqState() local
199 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessSeqState()
204 wStatus = phTmlNfc_UpdateReadCompleteCallback ( in phDnldNfc_ProcessSeqState()
206 if (NFCSTATUS_SUCCESS != wStatus) { in phDnldNfc_ProcessSeqState()
216 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessSeqState()
217 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
230 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessSeqState()
232 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
235 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessSeqState()
241 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
245 wStatus = phDnldNfc_ProcessRecvInfo(pContext, pInfo); in phDnldNfc_ProcessSeqState()
247 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
248 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessSeqState()
252 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
261 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessSeqState()
268 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
291 wStatus = phDnldNfc_ProcessFrame(pContext, pInfo); in phDnldNfc_ProcessSeqState()
294 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessSeqState()
296 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessSeqState()
320 pDlCtxt->UserCb((pDlCtxt->UserCtxt), wStatus, in phDnldNfc_ProcessSeqState()
351 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRWSeqState() local
352 NFCSTATUS wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
358 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessRWSeqState()
367 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessRWSeqState()
380 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
385 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
388 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessRWSeqState()
394 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
398 wStatus = phDnldNfc_ProcessRecvInfo(pContext, pInfo); in phDnldNfc_ProcessRWSeqState()
400 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
402 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessRWSeqState()
406 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
416 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessRWSeqState()
423 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
446 wStatus = phDnldNfc_ProcessFrame(pContext, pInfo); in phDnldNfc_ProcessRWSeqState()
448 if (NFCSTATUS_BUSY == wStatus) { in phDnldNfc_ProcessRWSeqState()
450 wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
453 wStatus = phDnldNfc_SetupResendTimer(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
455 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
458 wStatus = wIntStatus; in phDnldNfc_ProcessRWSeqState()
462 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessRWSeqState()
467 (NFCSTATUS_SUCCESS == wStatus)) { in phDnldNfc_ProcessRWSeqState()
475 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
477 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
479 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessRWSeqState()
489 } else if (NFCSTATUS_BUSY == wStatus) { in phDnldNfc_ProcessRWSeqState()
513 pDlCtxt->UserCb((pDlCtxt->UserCtxt), wStatus, in phDnldNfc_ProcessRWSeqState()
542 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_BuildFramePkt() local
549 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
555 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
566 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
588 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
593 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_BuildFramePkt()
594 wStatus = phDnldNfc_CreateFramePld(pDlContext); in phDnldNfc_BuildFramePkt()
597 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_BuildFramePkt()
661 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_BuildFramePkt()
665 return wStatus; in phDnldNfc_BuildFramePkt()
680 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CreateFramePld() local
687 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
801 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
813 return wStatus; in phDnldNfc_CreateFramePld()
832 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessFrame() local
838 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessFrame()
840 if ((PH_DL_STATUS_OK != pInfo->wStatus) || (0 == pInfo->wLength) || in phDnldNfc_ProcessFrame()
843 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
874 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
876 wStatus = phDnldNfc_UpdateRsp(pDlCtxt, pInfo, (wPldLen - 1)); in phDnldNfc_ProcessFrame()
880 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
886 return wStatus; in phDnldNfc_ProcessFrame()
905 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRecvInfo() local
910 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
912 wStatus = PHNFCSTATUS(pInfo->wStatus); in phDnldNfc_ProcessRecvInfo()
914 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRecvInfo()
918 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
923 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
926 return wStatus; in phDnldNfc_ProcessRecvInfo()
941 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_SetupResendTimer() local
943 wStatus = phOsalNfc_Timer_Start((pDlContext->TimerInfo.dwRspTimerId), in phDnldNfc_SetupResendTimer()
947 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_SetupResendTimer()
958 return wStatus; in phDnldNfc_SetupResendTimer()
1069 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UpdateRsp() local
1074 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_UpdateRsp()
1092 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1096 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_UpdateRsp()
1136 wStatus = NFCSTATUS_FW_VERSION_ERROR; in phDnldNfc_UpdateRsp()
1141 wStatus = NFCSTATUS_WRITE_FAILED; in phDnldNfc_UpdateRsp()
1148 wStatus = NFCSTATUS_REJECTED; in phDnldNfc_UpdateRsp()
1153 wStatus = NFCSTATUS_BUSY; in phDnldNfc_UpdateRsp()
1156 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1166 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1185 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1198 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1203 return wStatus; in phDnldNfc_UpdateRsp()