Lines Matching refs:wStatus

194     NFCSTATUS wStatus = NFCSTATUS_SUCCESS;  in phDnldNfc_ProcessSeqState()  local
202 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessSeqState()
219 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessSeqState()
220 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
235 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessSeqState()
237 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessSeqState()
241 wStatus = phTmlNfc_Write( (pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessSeqState()
246 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
251 wStatus = phDnldNfc_ProcessRecvInfo(pContext,pInfo); in phDnldNfc_ProcessSeqState()
253 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessSeqState()
255 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessSeqState()
260 if (NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessSeqState()
272 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessSeqState()
279 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
304 wStatus = phDnldNfc_ProcessFrame(pContext,pInfo); in phDnldNfc_ProcessSeqState()
310 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessSeqState()
314 wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessSeqState()
340 pDlCtxt->UserCb((pDlCtxt->UserCtxt),wStatus,&(pDlCtxt->tRspBuffInfo)); in phDnldNfc_ProcessSeqState()
370 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRWSeqState() local
371 NFCSTATUS wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
378 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessRWSeqState()
393 wStatus = NFCSTATUS_INSUFFICIENT_RESOURCES; in phDnldNfc_ProcessRWSeqState()
409 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
416 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRWSeqState()
420 wStatus = phTmlNfc_Write((pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessRWSeqState()
425 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
430 wStatus = phDnldNfc_ProcessRecvInfo(pContext,pInfo); in phDnldNfc_ProcessRWSeqState()
432 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRWSeqState()
435 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessRWSeqState()
440 if (NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRWSeqState()
453 wStatus = phTmlNfc_Read( in phDnldNfc_ProcessRWSeqState()
460 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
485 wStatus = phDnldNfc_ProcessFrame(pContext,pInfo); in phDnldNfc_ProcessRWSeqState()
487 if(NFCSTATUS_BUSY == wStatus) in phDnldNfc_ProcessRWSeqState()
490 wIntStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
493 wStatus = phDnldNfc_SetupResendTimer(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
495 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRWSeqState()
498 wStatus = wIntStatus; in phDnldNfc_ProcessRWSeqState()
504 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessRWSeqState()
508 if((0 != (pDlCtxt->tRWInfo.wRemBytes)) && (NFCSTATUS_SUCCESS == wStatus)) in phDnldNfc_ProcessRWSeqState()
518 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
520 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRWSeqState()
523 wStatus = phTmlNfc_Write((pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessRWSeqState()
532 else if(NFCSTATUS_BUSY == wStatus) in phDnldNfc_ProcessRWSeqState()
560 pDlCtxt->UserCb((pDlCtxt->UserCtxt),wStatus,&(pDlCtxt->tRspBuffInfo)); in phDnldNfc_ProcessRWSeqState()
590 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_BuildFramePkt() local
598 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
607 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
623 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
650 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_BuildFramePkt()
657 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_BuildFramePkt()
659 wStatus = phDnldNfc_CreateFramePld(pDlContext); in phDnldNfc_BuildFramePkt()
662 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_BuildFramePkt()
722 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_BuildFramePkt()
726 return wStatus; in phDnldNfc_BuildFramePkt()
742 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_CreateFramePld() local
750 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
867 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_CreateFramePld()
882 return wStatus; in phDnldNfc_CreateFramePld()
900 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessFrame() local
909 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_ProcessFrame()
913 if((PH_DL_STATUS_OK != pInfo->wStatus) || in phDnldNfc_ProcessFrame()
918 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
955 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
959 wStatus = phDnldNfc_UpdateRsp(pDlCtxt,pInfo,(wPldLen - 1)); in phDnldNfc_ProcessFrame()
965 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessFrame()
971 return wStatus; in phDnldNfc_ProcessFrame()
989 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_ProcessRecvInfo() local
996 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
1000 wStatus = PHNFCSTATUS(pInfo->wStatus); in phDnldNfc_ProcessRecvInfo()
1002 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_ProcessRecvInfo()
1008 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
1015 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_FAILED); in phDnldNfc_ProcessRecvInfo()
1018 return wStatus; in phDnldNfc_ProcessRecvInfo()
1034 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_SetupResendTimer() local
1036 wStatus = phOsalNfc_Timer_Start((pDlContext->TimerInfo.dwRspTimerId), in phDnldNfc_SetupResendTimer()
1041 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_SetupResendTimer()
1055 return wStatus; in phDnldNfc_SetupResendTimer()
1171 NFCSTATUS wStatus = NFCSTATUS_SUCCESS; in phDnldNfc_UpdateRsp() local
1177 wStatus = PHNFCSTVAL(CID_NFC_DNLD,NFCSTATUS_INVALID_PARAMETER); in phDnldNfc_UpdateRsp()
1203 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1207 if(NFCSTATUS_SUCCESS == wStatus) in phDnldNfc_UpdateRsp()
1244 wStatus = NFCSTATUS_FW_VERSION_ERROR; in phDnldNfc_UpdateRsp()
1250 wStatus = NFCSTATUS_WRITE_FAILED; in phDnldNfc_UpdateRsp()
1257 wStatus = NFCSTATUS_REJECTED; in phDnldNfc_UpdateRsp()
1263 wStatus = NFCSTATUS_BUSY; in phDnldNfc_UpdateRsp()
1268 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1281 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1301 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1320 wStatus = PHNFCSTVAL(CID_NFC_DNLD, NFCSTATUS_FAILED); in phDnldNfc_UpdateRsp()
1325 return wStatus; in phDnldNfc_UpdateRsp()