Home | History | Annotate | Download | only in src

Lines Matching refs:psTrcvCtxtInfo

97         if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
106 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = pSendCallback;
109 if (NULL == Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData)
111 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData = (phNfc_sData_t *)
113 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData)
115 (void)memset(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData, 0,
117 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
122 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
124 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
129 Hal4Ctxt->psTrcvCtxtInfo->
131 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
133 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
138 Hal4Ctxt->psTrcvCtxtInfo->
140 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
142 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
144 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent
152 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
159 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE;
162 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
163 -= Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length;
215 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
217 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
220 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
222 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
224 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
226 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING;
229 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
239 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
240 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = pReceiveCallback;
242 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus)
245 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
249 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
252 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
261 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId,
291 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
293 RecvDataBufferStatus = Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus;
294 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING;
296 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
302 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
303 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
305 if(Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb != NULL)
307 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
308 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL;
311 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
326 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = FALSE;
336 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb)
338 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
339 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL;
347 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb)
349 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length = 0;
350 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb;
351 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
355 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
382 if(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
386 Hal4Ctxt->psTrcvCtxtInfo->
390 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
391 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
392 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent);
393 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
395 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent
397 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length
404 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
408 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE;
412 else if(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length > 0)
414 Hal4Ctxt->psTrcvCtxtInfo->
416 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length
417 = (uint8_t)Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length;
418 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer
419 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer
420 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent);
421 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0;
423 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length = 0;
429 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo)
434 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0;
436 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb)
438 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
439 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL;
450 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId,
469 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
471 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
474 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
476 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
478 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
480 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
484 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
493 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
495 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer
499 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
508 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer,
519 (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer
520 + Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength),
526 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength
528 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length
529 = Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength;
534 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength = 0;
537 if(NFCSTATUS_PENDING == Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus)
540 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb)
544 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb;
545 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL;
546 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
547 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
551 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
556 else if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb)
558 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
559 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL;
560 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData
561 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData);
564 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData,
572 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
622 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
624 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t)
627 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
629 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0,
631 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus
633 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId
637 if(NULL == Hal4Ctxt->psTrcvCtxtInfo)
687 if(NULL != Hal4Ctxt->psTrcvCtxtInfo)
690 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId)
692 phOsalNfc_Timer_Stop(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId);
693 phOsalNfc_Timer_Delete(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId);
695 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb;
696 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb;
698 if (NULL != Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer)
700 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo->
704 && (NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData))
706 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData);
708 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo);
709 Hal4Ctxt->psTrcvCtxtInfo = NULL;