• Home
  • Raw
  • Download

Lines Matching refs:Hal4Ctxt

69     phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;  in phHal4Nfc_Send()  local
98 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_Send()
99 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Send()
104 else if(NFC_EVT_ACTIVATED == Hal4Ctxt->sTgtConnectInfo.EmulationState) in phHal4Nfc_Send()
106 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext; in phHal4Nfc_Send()
108 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = pSendCallback; in phHal4Nfc_Send()
111 if (NULL == Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData) in phHal4Nfc_Send()
113 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData = (phNfc_sData_t *) in phHal4Nfc_Send()
115 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData) in phHal4Nfc_Send()
117 (void)memset(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData, 0, in phHal4Nfc_Send()
119 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Send()
124 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer in phHal4Nfc_Send()
126 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length in phHal4Nfc_Send()
130 … if(Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength >= sTransferData.length) in phHal4Nfc_Send()
132 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Send()
134 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_Send()
136 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_Send()
141 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Send()
143 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_Send()
144 = Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength; in phHal4Nfc_Send()
145 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_Send()
147 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent in phHal4Nfc_Send()
148 += Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength; in phHal4Nfc_Send()
152 Hal4Ctxt->psHciHandle, in phHal4Nfc_Send()
155 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo) in phHal4Nfc_Send()
162 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE; in phHal4Nfc_Send()
163 Hal4Ctxt->Hal4NextState = eHal4StateTransaction; in phHal4Nfc_Send()
165 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length in phHal4Nfc_Send()
166 -= Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length; in phHal4Nfc_Send()
191 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL; in phHal4Nfc_Receive() local
213 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_Receive()
214 if(NFC_EVT_ACTIVATED == Hal4Ctxt->sTgtConnectInfo.EmulationState) in phHal4Nfc_Receive()
218 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Receive()
220 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t) in phHal4Nfc_Receive()
223 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Receive()
225 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0, in phHal4Nfc_Receive()
227 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Receive()
229 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING; in phHal4Nfc_Receive()
232 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Receive()
240 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext; in phHal4Nfc_Receive()
242 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL; in phHal4Nfc_Receive()
243 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = pReceiveCallback; in phHal4Nfc_Receive()
245 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus) in phHal4Nfc_Receive()
248 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Receive()
252 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Receive()
255 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Receive()
264 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId, in phHal4Nfc_Receive()
286 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)( in phHal4Nfc_P2PRecvTimerCb() local
294 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_P2PRecvTimerCb()
296 RecvDataBufferStatus = Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus; in phHal4Nfc_P2PRecvTimerCb()
297 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus = NFCSTATUS_PENDING; in phHal4Nfc_P2PRecvTimerCb()
299 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_P2PRecvTimerCb()
302 Hal4Ctxt->Hal4NextState = (eHal4StateTransaction in phHal4Nfc_P2PRecvTimerCb()
303 == Hal4Ctxt->Hal4NextState?eHal4StateInvalid:Hal4Ctxt->Hal4NextState); in phHal4Nfc_P2PRecvTimerCb()
305 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_P2PRecvTimerCb()
306 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData); in phHal4Nfc_P2PRecvTimerCb()
308 if(Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb != NULL) in phHal4Nfc_P2PRecvTimerCb()
310 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb; in phHal4Nfc_P2PRecvTimerCb()
311 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL; in phHal4Nfc_P2PRecvTimerCb()
313 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_P2PRecvTimerCb()
314 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData, in phHal4Nfc_P2PRecvTimerCb()
323 void phHal4Nfc_SendCompleteHandler(phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt,void *pInfo) in phHal4Nfc_SendCompleteHandler() argument
329 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = FALSE; in phHal4Nfc_SendCompleteHandler()
332 ||(NFC_INVALID_RELEASE_TYPE != Hal4Ctxt->sTgtConnectInfo.ReleaseType)) in phHal4Nfc_SendCompleteHandler()
334 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_SendCompleteHandler()
337 Hal4Ctxt->sTgtConnectInfo.ReleaseType?NFCSTATUS_RELEASED:SendStatus); in phHal4Nfc_SendCompleteHandler()
339 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb) in phHal4Nfc_SendCompleteHandler()
341 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb; in phHal4Nfc_SendCompleteHandler()
342 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL; in phHal4Nfc_SendCompleteHandler()
344 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_SendCompleteHandler()
350 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb) in phHal4Nfc_SendCompleteHandler()
352 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length = 0; in phHal4Nfc_SendCompleteHandler()
353 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb; in phHal4Nfc_SendCompleteHandler()
354 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL; in phHal4Nfc_SendCompleteHandler()
356 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_SendCompleteHandler()
357 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_SendCompleteHandler()
358 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData, in phHal4Nfc_SendCompleteHandler()
364 if(NFC_INVALID_RELEASE_TYPE != Hal4Ctxt->sTgtConnectInfo.ReleaseType) in phHal4Nfc_SendCompleteHandler()
368 (NULL != Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb)) in phHal4Nfc_SendCompleteHandler()
371 Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb; in phHal4Nfc_SendCompleteHandler()
372 Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb = NULL; in phHal4Nfc_SendCompleteHandler()
374 Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt, in phHal4Nfc_SendCompleteHandler()
375 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_SendCompleteHandler()
385 if(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length in phHal4Nfc_SendCompleteHandler()
386 … > Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength) in phHal4Nfc_SendCompleteHandler()
389 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_SendCompleteHandler()
393 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_SendCompleteHandler()
394 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer in phHal4Nfc_SendCompleteHandler()
395 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent); in phHal4Nfc_SendCompleteHandler()
396 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_SendCompleteHandler()
397 = Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength; in phHal4Nfc_SendCompleteHandler()
398 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent in phHal4Nfc_SendCompleteHandler()
399 += Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength; in phHal4Nfc_SendCompleteHandler()
400 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length in phHal4Nfc_SendCompleteHandler()
401 -= Hal4Ctxt->rem_dev_list[0]->RemoteDevInfo.NfcIP_Info.MaxFrameLength; in phHal4Nfc_SendCompleteHandler()
404 Hal4Ctxt->psHciHandle, in phHal4Nfc_SendCompleteHandler()
406 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_SendCompleteHandler()
407 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo) in phHal4Nfc_SendCompleteHandler()
411 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE; in phHal4Nfc_SendCompleteHandler()
415 else if(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length > 0) in phHal4Nfc_SendCompleteHandler()
417 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_SendCompleteHandler()
419 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_SendCompleteHandler()
420 = (uint8_t)Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length; in phHal4Nfc_SendCompleteHandler()
421 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_SendCompleteHandler()
422 = (Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer in phHal4Nfc_SendCompleteHandler()
423 + Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent); in phHal4Nfc_SendCompleteHandler()
424 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0; in phHal4Nfc_SendCompleteHandler()
426 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length = 0; in phHal4Nfc_SendCompleteHandler()
429 Hal4Ctxt->psHciHandle, in phHal4Nfc_SendCompleteHandler()
431 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_SendCompleteHandler()
432 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo) in phHal4Nfc_SendCompleteHandler()
437 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent = 0; in phHal4Nfc_SendCompleteHandler()
439 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb) in phHal4Nfc_SendCompleteHandler()
441 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb; in phHal4Nfc_SendCompleteHandler()
442 Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb = NULL; in phHal4Nfc_SendCompleteHandler()
444 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_SendCompleteHandler()
453 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId, in phHal4Nfc_SendCompleteHandler()
465 void phHal4Nfc_RecvCompleteHandler(phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt,void *pInfo) in phHal4Nfc_RecvCompleteHandler() argument
472 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_RecvCompleteHandler()
474 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t) in phHal4Nfc_RecvCompleteHandler()
477 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_RecvCompleteHandler()
479 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0, in phHal4Nfc_RecvCompleteHandler()
481 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_RecvCompleteHandler()
483 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus in phHal4Nfc_RecvCompleteHandler()
487 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_RecvCompleteHandler()
496 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer) in phHal4Nfc_RecvCompleteHandler()
498 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer in phHal4Nfc_RecvCompleteHandler()
502 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer) in phHal4Nfc_RecvCompleteHandler()
511 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer, in phHal4Nfc_RecvCompleteHandler()
522 (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer in phHal4Nfc_RecvCompleteHandler()
523 + Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength), in phHal4Nfc_RecvCompleteHandler()
529 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength in phHal4Nfc_RecvCompleteHandler()
531 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length in phHal4Nfc_RecvCompleteHandler()
532 = Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength; in phHal4Nfc_RecvCompleteHandler()
537 Hal4Ctxt->psTrcvCtxtInfo->P2PRecvLength = 0; in phHal4Nfc_RecvCompleteHandler()
538 Hal4Ctxt->Hal4NextState = (eHal4StateTransaction in phHal4Nfc_RecvCompleteHandler()
539 == Hal4Ctxt->Hal4NextState?eHal4StateInvalid:Hal4Ctxt->Hal4NextState); in phHal4Nfc_RecvCompleteHandler()
540 if(NFCSTATUS_PENDING == Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus) in phHal4Nfc_RecvCompleteHandler()
543 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb) in phHal4Nfc_RecvCompleteHandler()
547 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb; in phHal4Nfc_RecvCompleteHandler()
548 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL; in phHal4Nfc_RecvCompleteHandler()
549 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_RecvCompleteHandler()
550 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData); in phHal4Nfc_RecvCompleteHandler()
552 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_RecvCompleteHandler()
553 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_RecvCompleteHandler()
554 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData, in phHal4Nfc_RecvCompleteHandler()
559 else if(NULL != Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb) in phHal4Nfc_RecvCompleteHandler()
561 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb; in phHal4Nfc_RecvCompleteHandler()
562 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL; in phHal4Nfc_RecvCompleteHandler()
563 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_RecvCompleteHandler()
564 = &(Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData); in phHal4Nfc_RecvCompleteHandler()
566 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_RecvCompleteHandler()
567 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData, in phHal4Nfc_RecvCompleteHandler()
575 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus in phHal4Nfc_RecvCompleteHandler()
586 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_P2PActivateComplete() argument
595 Hal4Ctxt->sTgtConnectInfo.EmulationState = NFC_EVT_ACTIVATED; in phHal4Nfc_P2PActivateComplete()
597 if( NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification) in phHal4Nfc_P2PActivateComplete()
601 if(NULL == Hal4Ctxt->rem_dev_list[0]) in phHal4Nfc_P2PActivateComplete()
603 Hal4Ctxt->rem_dev_list[0] in phHal4Nfc_P2PActivateComplete()
609 if(NULL == Hal4Ctxt->rem_dev_list[0]) in phHal4Nfc_P2PActivateComplete()
617 (void)memset((void *)Hal4Ctxt->rem_dev_list[0], in phHal4Nfc_P2PActivateComplete()
620 (void)memcpy(Hal4Ctxt->rem_dev_list[0], in phHal4Nfc_P2PActivateComplete()
625 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_P2PActivateComplete()
627 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t) in phHal4Nfc_P2PActivateComplete()
630 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_P2PActivateComplete()
632 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0, in phHal4Nfc_P2PActivateComplete()
634 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus in phHal4Nfc_P2PActivateComplete()
636 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_P2PActivateComplete()
640 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_P2PActivateComplete()
649 Hal4Ctxt->Hal4CurrentState = eHal4StateEmulation; in phHal4Nfc_P2PActivateComplete()
650 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_P2PActivateComplete()
652 = Hal4Ctxt->rem_dev_list; in phHal4Nfc_P2PActivateComplete()
655 Hal4Ctxt->rem_dev_list[0]->SessionOpened = TRUE; in phHal4Nfc_P2PActivateComplete()
656 (*Hal4Ctxt->sUpperLayerInfo.pP2PNotification)( in phHal4Nfc_P2PActivateComplete()
657 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt, in phHal4Nfc_P2PActivateComplete()
670 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_HandleP2PDeActivate() argument
679 if(NULL != Hal4Ctxt->rem_dev_list[0]) in phHal4Nfc_HandleP2PDeActivate()
681 Hal4Ctxt->rem_dev_list[0]->SessionOpened = FALSE; in phHal4Nfc_HandleP2PDeActivate()
682 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0; in phHal4Nfc_HandleP2PDeActivate()
684 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice = NULL; in phHal4Nfc_HandleP2PDeActivate()
686 Hal4Ctxt->Hal4CurrentState = eHal4StateOpenAndReady; in phHal4Nfc_HandleP2PDeActivate()
687 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_HandleP2PDeActivate()
688 Hal4Ctxt->sTgtConnectInfo.EmulationState = NFC_EVT_DEACTIVATED; in phHal4Nfc_HandleP2PDeActivate()
690 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_HandleP2PDeActivate()
693 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId) in phHal4Nfc_HandleP2PDeActivate()
695 phOsalNfc_Timer_Stop(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId); in phHal4Nfc_HandleP2PDeActivate()
696 phOsalNfc_Timer_Delete(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId); in phHal4Nfc_HandleP2PDeActivate()
698 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb; in phHal4Nfc_HandleP2PDeActivate()
699 pUpperSendCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PSendCb; in phHal4Nfc_HandleP2PDeActivate()
701 if (NULL != Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer) in phHal4Nfc_HandleP2PDeActivate()
703 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_HandleP2PDeActivate()
706 if((NULL == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_HandleP2PDeActivate()
707 && (NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData)) in phHal4Nfc_HandleP2PDeActivate()
709 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData); in phHal4Nfc_HandleP2PDeActivate()
711 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo); in phHal4Nfc_HandleP2PDeActivate()
712 Hal4Ctxt->psTrcvCtxtInfo = NULL; in phHal4Nfc_HandleP2PDeActivate()
718 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_HandleP2PDeActivate()
727 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_HandleP2PDeActivate()
732 else if(NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification) in phHal4Nfc_HandleP2PDeActivate()
734 (*Hal4Ctxt->sUpperLayerInfo.pP2PNotification)( in phHal4Nfc_HandleP2PDeActivate()
735 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt, in phHal4Nfc_HandleP2PDeActivate()
743 if(NULL != Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler) in phHal4Nfc_HandleP2PDeActivate()
745 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler( in phHal4Nfc_HandleP2PDeActivate()
746 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt, in phHal4Nfc_HandleP2PDeActivate()