Lines Matching refs:wStatus
221 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessSeqState() local
228 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessSeqState()
239 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessSeqState()
240 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
252 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessSeqState()
254 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
257 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessSeqState()
263 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
267 wStatus = phDnldNfc_ProcessRecvInfo(pContext, pInfo); in phDnldNfc_ProcessSeqState()
269 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
270 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessSeqState()
274 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessSeqState()
283 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessSeqState()
290 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
311 wStatus = phDnldNfc_ProcessFrame(pContext, pInfo); in phDnldNfc_ProcessSeqState()
314 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessSeqState()
316 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessSeqState()
340 pDlCtxt->UserCb((pDlCtxt->UserCtxt), wStatus, in phDnldNfc_ProcessSeqState()
371 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRWSeqState() local
372 NFCSTATUS wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
378 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessRWSeqState()
387 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessRWSeqState()
399 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
404 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
407 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessRWSeqState()
413 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
417 wStatus = phDnldNfc_ProcessRecvInfo(pContext, pInfo); in phDnldNfc_ProcessRWSeqState()
419 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
421 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessRWSeqState()
425 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
435 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessRWSeqState()
442 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
463 wStatus = phDnldNfc_ProcessFrame(pContext, pInfo); in phDnldNfc_ProcessRWSeqState()
465 if (NFCSTATUS_BUSY == wStatus) { in phDnldNfc_ProcessRWSeqState()
467 wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
470 wStatus = phDnldNfc_SetupResendTimer(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
472 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
475 wStatus = wIntStatus; in phDnldNfc_ProcessRWSeqState()
479 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessRWSeqState()
484 (NFCSTATUS_SUCCESS == wStatus)) { in phDnldNfc_ProcessRWSeqState()
492 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
494 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRWSeqState()
496 wStatus = phTmlNfc_Write( in phDnldNfc_ProcessRWSeqState()
506 } else if (NFCSTATUS_BUSY == wStatus) { in phDnldNfc_ProcessRWSeqState()
530 pDlCtxt->UserCb((pDlCtxt->UserCtxt), wStatus, in phDnldNfc_ProcessRWSeqState()
559 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_BuildFramePkt() local
566 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
572 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
583 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
605 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
610 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_BuildFramePkt()
611 wStatus = phDnldNfc_CreateFramePld(pDlContext); in phDnldNfc_BuildFramePkt()
614 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_BuildFramePkt()
673 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_BuildFramePkt()
677 return wStatus; in phDnldNfc_BuildFramePkt()
692 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CreateFramePld() local
699 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
812 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
824 return wStatus; in phDnldNfc_CreateFramePld()
843 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessFrame() local
849 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessFrame()
851 if ((PH_DL_STATUS_OK != pInfo->wStatus) || (0 == pInfo->wLength) || in phDnldNfc_ProcessFrame()
854 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
885 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
887 wStatus = phDnldNfc_UpdateRsp(pDlCtxt, pInfo, (wPldLen - 1)); in phDnldNfc_ProcessFrame()
891 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
897 return wStatus; in phDnldNfc_ProcessFrame()
916 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRecvInfo() local
921 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
923 wStatus = PHNFCSTATUS(pInfo->wStatus); in phDnldNfc_ProcessRecvInfo()
925 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_ProcessRecvInfo()
929 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
934 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
937 return wStatus; in phDnldNfc_ProcessRecvInfo()
952 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_SetupResendTimer() local
954 wStatus = phOsalNfc_Timer_Start((pDlContext->TimerInfo.dwRspTimerId), in phDnldNfc_SetupResendTimer()
958 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_SetupResendTimer()
969 return wStatus; in phDnldNfc_SetupResendTimer()
1080 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UpdateRsp() local
1085 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_UpdateRsp()
1103 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1107 if (NFCSTATUS_SUCCESS == wStatus) { in phDnldNfc_UpdateRsp()
1147 wStatus = NFCSTATUS_FW_VERSION_ERROR; in phDnldNfc_UpdateRsp()
1152 wStatus = NFCSTATUS_WRITE_FAILED; in phDnldNfc_UpdateRsp()
1159 wStatus = NFCSTATUS_REJECTED; in phDnldNfc_UpdateRsp()
1164 wStatus = NFCSTATUS_BUSY; in phDnldNfc_UpdateRsp()
1167 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1177 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1196 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1209 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1214 return wStatus; in phDnldNfc_UpdateRsp()