Lines Matching refs:psTrcvCtxtInfo
99 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
108 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = pSendCallback;
111 if (NULL == Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData)
113 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData = (phNfc_sData_t *)
115 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData)
117 (void)memset(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData, 0,
119 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
124 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
126 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
132 Hal4Ctxt->psTrcvCtxtInfo->
134 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
136 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
141 Hal4Ctxt->psTrcvCtxtInfo->
143 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
145 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
147 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent
155 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
162 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE;
165 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
166 -= Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length;
218 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
220 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
223 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
225 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
227 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
229 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING;
232 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
242 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
243 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = pReceiveCallback;
245 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus)
248 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
252 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
255 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
264 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId,
294 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
296 RecvDataBufferStatus = Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus;
297 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING;
299 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
305 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
306 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
308 if(Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb != NULL)
310 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
311 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL;
314 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
329 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = FALSE;
339 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb)
341 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
342 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL;
350 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb)
352 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length = 0;
353 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb;
354 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
358 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
385 psTrcvCtxtInfo->psUpperSendData->length
389 Hal4Ctxt->psTrcvCtxtInfo->
393 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
394 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
395 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent);
396 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
398 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent
400 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
407 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
411 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE;
415 else if(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length > 0)
417 Hal4Ctxt->psTrcvCtxtInfo->
419 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
420 = (uint8_t)Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length;
421 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
422 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
423 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent);
424 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0;
426 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length = 0;
432 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
437 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0;
439 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb)
441 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
442 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL;
453 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId,
472 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
474 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
477 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
479 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
481 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
483 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
487 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
496 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
498 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer
502 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
511 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer,
522 (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer
523 + Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength),
529 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength
531 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length
532 = Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength;
537 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength = 0;
540 if(NFCSTATUS_PENDING == Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus)
543 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb)
547 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb;
548 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
549 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
550 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
554 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
559 else if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb)
561 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
562 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL;
563 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
564 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
567 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
575 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
625 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
627 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
630 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
632 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
634 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
636 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
640 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
690 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
693 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId)
695 phOsalNfc_Timer_Stop(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId);
696 phOsalNfc_Timer_Delete(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId);
698 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
699 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
701 if (NULL != Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
703 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo->
707 && (NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData))
709 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData);
711 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo);
712 Hal4Ctxt->psTrcvCtxtInfo = NULL;