• Home
  • Raw
  • Download

Lines Matching refs:pDlCtxt

111     pphDnldNfc_DlContext_t  pDlCtxt = (pphDnldNfc_DlContext_t)pContext;  in phDnldNfc_CmdHandler()  local
113 if(NULL == pDlCtxt) in phDnldNfc_CmdHandler()
128 if(phDnldNfc_EventInvalid == (pDlCtxt->tCurrEvent)) in phDnldNfc_CmdHandler()
131 pDlCtxt->tCurrEvent = TrigEvent; in phDnldNfc_CmdHandler()
132 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionBusy; in phDnldNfc_CmdHandler()
134 phDnldNfc_ProcessSeqState(pDlCtxt,NULL); in phDnldNfc_CmdHandler()
136 status = pDlCtxt->wCmdSendStatus; in phDnldNfc_CmdHandler()
150 if(phDnldNfc_EventInvalid == (pDlCtxt->tCurrEvent)) in phDnldNfc_CmdHandler()
153 pDlCtxt->tCurrEvent = TrigEvent; in phDnldNfc_CmdHandler()
154 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionBusy; in phDnldNfc_CmdHandler()
156 phDnldNfc_ProcessRWSeqState(pDlCtxt,NULL); in phDnldNfc_CmdHandler()
158 status = pDlCtxt->wCmdSendStatus; in phDnldNfc_CmdHandler()
197 pphDnldNfc_DlContext_t pDlCtxt = (pphDnldNfc_DlContext_t)pContext; in phDnldNfc_ProcessSeqState() local
199 if(NULL == pDlCtxt) in phDnldNfc_ProcessSeqState()
206 switch(pDlCtxt->tCurrState) in phDnldNfc_ProcessSeqState()
212 if(0 == (pDlCtxt->TimerInfo.dwRspTimerId)) in phDnldNfc_ProcessSeqState()
220 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
226 (pDlCtxt->TimerInfo.dwRspTimerId) = TimerId; in phDnldNfc_ProcessSeqState()
227 (pDlCtxt->TimerInfo.TimerStatus) = 0; in phDnldNfc_ProcessSeqState()
228 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessSeqState()
231 pDlCtxt->tCurrState = phDnldNfc_StateSend; in phDnldNfc_ProcessSeqState()
235 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessSeqState()
239 pDlCtxt->tCurrState = phDnldNfc_StateRecv; in phDnldNfc_ProcessSeqState()
241 wStatus = phTmlNfc_Write( (pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessSeqState()
242 (uint16_t)(pDlCtxt->tCmdRspFrameInfo.dwSendlength), in phDnldNfc_ProcessSeqState()
244 pDlCtxt); in phDnldNfc_ProcessSeqState()
246 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
255 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessSeqState()
258 pDlCtxt); in phDnldNfc_ProcessSeqState()
263 pDlCtxt->TimerInfo.TimerStatus = 1; in phDnldNfc_ProcessSeqState()
264 pDlCtxt->tCurrState = phDnldNfc_StateTimer; in phDnldNfc_ProcessSeqState()
269 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessSeqState()
273 pDlCtxt->tCmdRspFrameInfo.aFrameBuff, in phDnldNfc_ProcessSeqState()
276 (void *)pDlCtxt); in phDnldNfc_ProcessSeqState()
279 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessSeqState()
285 (pDlCtxt->TimerInfo.wTimerExpStatus) = NFCSTATUS_RF_TIMEOUT; in phDnldNfc_ProcessSeqState()
286 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessSeqState()
291 if (1 == (pDlCtxt->TimerInfo.TimerStatus)) /*Is Timer Running*/ in phDnldNfc_ProcessSeqState()
294 (void)phOsalNfc_Timer_Stop(pDlCtxt->TimerInfo.dwRspTimerId); in phDnldNfc_ProcessSeqState()
295 (pDlCtxt->TimerInfo.TimerStatus) = 0; /*timer stopped*/ in phDnldNfc_ProcessSeqState()
297 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessSeqState()
301 if(NFCSTATUS_RF_TIMEOUT != (pDlCtxt->TimerInfo.wTimerExpStatus)) in phDnldNfc_ProcessSeqState()
308 if(phDnldNfc_EventReset != pDlCtxt->tCurrEvent) in phDnldNfc_ProcessSeqState()
310 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessSeqState()
316 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessSeqState()
328 pDlCtxt->tCurrEvent = phDnldNfc_EventInvalid; in phDnldNfc_ProcessSeqState()
329 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionIdle; in phDnldNfc_ProcessSeqState()
330 pDlCtxt->tCurrState = phDnldNfc_StateInit; in phDnldNfc_ProcessSeqState()
333 (void)phOsalNfc_Timer_Delete(pDlCtxt->TimerInfo.dwRspTimerId); in phDnldNfc_ProcessSeqState()
334 (pDlCtxt->TimerInfo.dwRspTimerId) = 0; in phDnldNfc_ProcessSeqState()
335 (pDlCtxt->TimerInfo.TimerStatus) = 0; in phDnldNfc_ProcessSeqState()
336 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessSeqState()
338 if((NULL != (pDlCtxt->UserCb)) && (NULL != (pDlCtxt->UserCtxt))) in phDnldNfc_ProcessSeqState()
340 pDlCtxt->UserCb((pDlCtxt->UserCtxt),wStatus,&(pDlCtxt->tRspBuffInfo)); in phDnldNfc_ProcessSeqState()
346 pDlCtxt->tCurrEvent = phDnldNfc_EventInvalid; in phDnldNfc_ProcessSeqState()
347 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionIdle; in phDnldNfc_ProcessSeqState()
373 pphDnldNfc_DlContext_t pDlCtxt = (pphDnldNfc_DlContext_t)pContext; in phDnldNfc_ProcessRWSeqState() local
375 if(NULL == pDlCtxt) in phDnldNfc_ProcessRWSeqState()
382 switch(pDlCtxt->tCurrState) in phDnldNfc_ProcessRWSeqState()
386 if(0 == (pDlCtxt->TimerInfo.dwRspTimerId)) in phDnldNfc_ProcessRWSeqState()
398 (pDlCtxt->TimerInfo.dwRspTimerId) = TimerId; in phDnldNfc_ProcessRWSeqState()
399 (pDlCtxt->TimerInfo.TimerStatus) = 0; in phDnldNfc_ProcessRWSeqState()
400 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessRWSeqState()
403 pDlCtxt->tCurrState = phDnldNfc_StateSend; in phDnldNfc_ProcessRWSeqState()
407 if(FALSE == pDlCtxt->bResendLastFrame) in phDnldNfc_ProcessRWSeqState()
409 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
413 pDlCtxt->bResendLastFrame = FALSE; in phDnldNfc_ProcessRWSeqState()
418 pDlCtxt->tCurrState = phDnldNfc_StateRecv; in phDnldNfc_ProcessRWSeqState()
420 wStatus = phTmlNfc_Write((pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessRWSeqState()
421 (uint16_t)(pDlCtxt->tCmdRspFrameInfo.dwSendlength), in phDnldNfc_ProcessRWSeqState()
423 pDlCtxt); in phDnldNfc_ProcessRWSeqState()
425 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
435 wStatus = phOsalNfc_Timer_Start((pDlCtxt->TimerInfo.dwRspTimerId), in phDnldNfc_ProcessRWSeqState()
438 pDlCtxt); in phDnldNfc_ProcessRWSeqState()
443 pDlCtxt->TimerInfo.TimerStatus = 1; in phDnldNfc_ProcessRWSeqState()
444 pDlCtxt->tCurrState = phDnldNfc_StateTimer; in phDnldNfc_ProcessRWSeqState()
449 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessRWSeqState()
454 pDlCtxt->tCmdRspFrameInfo.aFrameBuff, in phDnldNfc_ProcessRWSeqState()
457 (void *)pDlCtxt); in phDnldNfc_ProcessRWSeqState()
460 pDlCtxt->wCmdSendStatus = wStatus; in phDnldNfc_ProcessRWSeqState()
466 (pDlCtxt->TimerInfo.wTimerExpStatus) = NFCSTATUS_RF_TIMEOUT; in phDnldNfc_ProcessRWSeqState()
467 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessRWSeqState()
472 if (1 == (pDlCtxt->TimerInfo.TimerStatus)) /*Is Timer Running*/ in phDnldNfc_ProcessRWSeqState()
475 (void)phOsalNfc_Timer_Stop(pDlCtxt->TimerInfo.dwRspTimerId); in phDnldNfc_ProcessRWSeqState()
476 (pDlCtxt->TimerInfo.TimerStatus) = 0; /*timer stopped*/ in phDnldNfc_ProcessRWSeqState()
478 pDlCtxt->tCurrState = phDnldNfc_StateResponse; in phDnldNfc_ProcessRWSeqState()
482 if(NFCSTATUS_RF_TIMEOUT != (pDlCtxt->TimerInfo.wTimerExpStatus)) in phDnldNfc_ProcessRWSeqState()
493 wStatus = phDnldNfc_SetupResendTimer(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
504 wStatus = (pDlCtxt->TimerInfo.wTimerExpStatus); in phDnldNfc_ProcessRWSeqState()
505 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessRWSeqState()
508 if((0 != (pDlCtxt->tRWInfo.wRemBytes)) && (NFCSTATUS_SUCCESS == wStatus)) in phDnldNfc_ProcessRWSeqState()
518 wStatus = phDnldNfc_BuildFramePkt(pDlCtxt); in phDnldNfc_ProcessRWSeqState()
522 pDlCtxt->tCurrState = phDnldNfc_StateRecv; in phDnldNfc_ProcessRWSeqState()
523 wStatus = phTmlNfc_Write((pDlCtxt->tCmdRspFrameInfo.aFrameBuff), in phDnldNfc_ProcessRWSeqState()
524 (uint16_t)(pDlCtxt->tCmdRspFrameInfo.dwSendlength), in phDnldNfc_ProcessRWSeqState()
526 pDlCtxt); in phDnldNfc_ProcessRWSeqState()
538 (pDlCtxt->tRWInfo.bFramesSegmented) = FALSE; in phDnldNfc_ProcessRWSeqState()
547 pDlCtxt->tCurrEvent = phDnldNfc_EventInvalid; in phDnldNfc_ProcessRWSeqState()
548 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionIdle; in phDnldNfc_ProcessRWSeqState()
549 pDlCtxt->tCurrState = phDnldNfc_StateInit; in phDnldNfc_ProcessRWSeqState()
550 pDlCtxt->bResendLastFrame = FALSE; in phDnldNfc_ProcessRWSeqState()
553 (void)phOsalNfc_Timer_Delete(pDlCtxt->TimerInfo.dwRspTimerId); in phDnldNfc_ProcessRWSeqState()
554 (pDlCtxt->TimerInfo.dwRspTimerId) = 0; in phDnldNfc_ProcessRWSeqState()
555 (pDlCtxt->TimerInfo.TimerStatus) = 0; in phDnldNfc_ProcessRWSeqState()
556 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ProcessRWSeqState()
558 if((NULL != (pDlCtxt->UserCb)) && (NULL != (pDlCtxt->UserCtxt))) in phDnldNfc_ProcessRWSeqState()
560 pDlCtxt->UserCb((pDlCtxt->UserCtxt),wStatus,&(pDlCtxt->tRspBuffInfo)); in phDnldNfc_ProcessRWSeqState()
567 pDlCtxt->tCurrEvent = phDnldNfc_EventInvalid; in phDnldNfc_ProcessRWSeqState()
568 pDlCtxt->tDnldInProgress = phDnldNfc_TransitionIdle; in phDnldNfc_ProcessRWSeqState()
902 pphDnldNfc_DlContext_t pDlCtxt = (pphDnldNfc_DlContext_t)pContext; in phDnldNfc_ProcessFrame() local
904 if((NULL == pDlCtxt) || in phDnldNfc_ProcessFrame()
922 if(phDnldNfc_FTRaw == (pDlCtxt->FrameInp.Type)) in phDnldNfc_ProcessFrame()
924 if((0 != (pDlCtxt->tRspBuffInfo.wLen)) && in phDnldNfc_ProcessFrame()
925 (NULL != (pDlCtxt->tRspBuffInfo.pBuff))) in phDnldNfc_ProcessFrame()
927 memcpy((pDlCtxt->tRspBuffInfo.pBuff),(pInfo->pBuff),(pInfo->wLength)); in phDnldNfc_ProcessFrame()
929 (pDlCtxt->tRspBuffInfo.wLen) = (pInfo->wLength); in phDnldNfc_ProcessFrame()
959 wStatus = phDnldNfc_UpdateRsp(pDlCtxt,pInfo,(wPldLen - 1)); in phDnldNfc_ProcessFrame()
1076 pphDnldNfc_DlContext_t pDlCtxt = (pphDnldNfc_DlContext_t)pContext; in phDnldNfc_RspTimeOutCb() local
1078 if (NULL != pDlCtxt) in phDnldNfc_RspTimeOutCb()
1082 if(1 == pDlCtxt->TimerInfo.TimerStatus) in phDnldNfc_RspTimeOutCb()
1085 pDlCtxt->TimerInfo.TimerStatus = 0; /* Reset timer status flag */ in phDnldNfc_RspTimeOutCb()
1087 NXPLOG_FWDNLD_D("%x",pDlCtxt->tLastStatus); in phDnldNfc_RspTimeOutCb()
1090 if ( PH_DL_STATUS_SIGNATURE_ERROR == pDlCtxt->tLastStatus ) { in phDnldNfc_RspTimeOutCb()
1100 (pDlCtxt->TimerInfo.wTimerExpStatus) = NFCSTATUS_RF_TIMEOUT; in phDnldNfc_RspTimeOutCb()
1102 … if((phDnldNfc_EventRead == pDlCtxt->tCurrEvent) || (phDnldNfc_EventWrite == pDlCtxt->tCurrEvent)) in phDnldNfc_RspTimeOutCb()
1104 phDnldNfc_ProcessRWSeqState(pDlCtxt,NULL); in phDnldNfc_RspTimeOutCb()
1108 phDnldNfc_ProcessSeqState(pDlCtxt,NULL); in phDnldNfc_RspTimeOutCb()
1130 pphDnldNfc_DlContext_t pDlCtxt = (pphDnldNfc_DlContext_t)pContext; in phDnldNfc_ResendTimeOutCb() local
1132 if (NULL != pDlCtxt) in phDnldNfc_ResendTimeOutCb()
1136 if(1 == pDlCtxt->TimerInfo.TimerStatus) in phDnldNfc_ResendTimeOutCb()
1139 pDlCtxt->TimerInfo.TimerStatus = 0; /* Reset timer status flag */ in phDnldNfc_ResendTimeOutCb()
1141 (pDlCtxt->TimerInfo.wTimerExpStatus) = 0; in phDnldNfc_ResendTimeOutCb()
1143 pDlCtxt->tCurrState = phDnldNfc_StateSend; in phDnldNfc_ResendTimeOutCb()
1146 pDlCtxt->bResendLastFrame = TRUE; in phDnldNfc_ResendTimeOutCb()
1148 phDnldNfc_ProcessRWSeqState(pDlCtxt,NULL); in phDnldNfc_ResendTimeOutCb()