• Home
  • Raw
  • Download

Lines Matching refs:Hal4Ctxt

60                         phHal4Nfc_Hal4Ctxt_t      *Hal4Ctxt
66 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt
78 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL; in phHal4Nfc_Connect() local
111 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_Connect()
113 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext; in phHal4Nfc_Connect()
115 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = pNotifyConnectCb; in phHal4Nfc_Connect()
117 if((eHal4StateTargetDiscovered == Hal4Ctxt->Hal4CurrentState) in phHal4Nfc_Connect()
118 && (NULL == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice)) in phHal4Nfc_Connect()
120 RemoteDevCount = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices; in phHal4Nfc_Connect()
127 == (Hal4Ctxt->rem_dev_list[RemoteDevCount])) in phHal4Nfc_Connect()
130 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice in phHal4Nfc_Connect()
131 = Hal4Ctxt->rem_dev_list[RemoteDevCount]; in phHal4Nfc_Connect()
136 if(NULL == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Connect()
146 (void *)&(Hal4Ctxt->rem_dev_list[Hal4Ctxt in phHal4Nfc_Connect()
153 RetStatus = phHciNfc_Connect(Hal4Ctxt->psHciHandle, in phHal4Nfc_Connect()
155 Hal4Ctxt->rem_dev_list[RemoteDevCount]); in phHal4Nfc_Connect()
158 Hal4Ctxt->Hal4NextState = eHal4StateTargetConnected; in phHal4Nfc_Connect()
165 Hal4Ctxt->psHciHandle, in phHal4Nfc_Connect()
167 Hal4Ctxt->rem_dev_list[RemoteDevCount] in phHal4Nfc_Connect()
169 Hal4Ctxt->Hal4NextState = eHal4StateTargetActivate; in phHal4Nfc_Connect()
174 Hal4Ctxt->Hal4CurrentState = eHal4StateOpenAndReady; in phHal4Nfc_Connect()
175 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice = NULL; in phHal4Nfc_Connect()
176 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = NULL; in phHal4Nfc_Connect()
177 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL; in phHal4Nfc_Connect()
183 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Connect()
186 Hal4Ctxt->psHciHandle, in phHal4Nfc_Connect()
190 Hal4Ctxt->Hal4NextState = eHal4StateTargetActivate; in phHal4Nfc_Connect()
194 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Connect()
197 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice; in phHal4Nfc_Connect()
199 RemoteDevCount = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices; in phHal4Nfc_Connect()
206 if(psRemoteDevInfo == (Hal4Ctxt->rem_dev_list[RemoteDevCount])) in phHal4Nfc_Connect()
213 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Connect()
215 RetStatus = phHciNfc_Reactivate (Hal4Ctxt->psHciHandle, in phHal4Nfc_Connect()
221 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice = in phHal4Nfc_Connect()
222 Hal4Ctxt->rem_dev_list[RemoteDevCount]; in phHal4Nfc_Connect()
223 Hal4Ctxt->Hal4NextState = eHal4StateTargetActivate; in phHal4Nfc_Connect()
228 else if(NULL == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Connect()
242 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = NULL; in phHal4Nfc_Connect()
243 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL; in phHal4Nfc_Connect()
251 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt in phHal4Nfc_Iso_3A_Transceive() argument
257 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type in phHal4Nfc_Iso_3A_Transceive()
262 if (Hal4Ctxt->SelectSectorFlag == PH_HAL4NFC_FLAG_0) in phHal4Nfc_Iso_3A_Transceive()
268 Hal4Ctxt->SelectSectorFlag++; in phHal4Nfc_Iso_3A_Transceive()
281 Hal4Ctxt->SelectSectorFlag = 0; in phHal4Nfc_Iso_3A_Transceive()
284 else if (Hal4Ctxt->SelectSectorFlag == PH_HAL4NFC_FLAG_1) in phHal4Nfc_Iso_3A_Transceive()
291 Hal4Ctxt->SelectSectorFlag++; in phHal4Nfc_Iso_3A_Transceive()
304 Hal4Ctxt->SelectSectorFlag = 0; in phHal4Nfc_Iso_3A_Transceive()
309 Hal4Ctxt->SelectSectorFlag = 0; in phHal4Nfc_Iso_3A_Transceive()
321 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type = in phHal4Nfc_Iso_3A_Transceive()
324 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.addr = in phHal4Nfc_Iso_3A_Transceive()
340 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type in phHal4Nfc_Iso_3A_Transceive()
351 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt in phHal4Nfc_MifareTransceive() argument
365 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type in phHal4Nfc_MifareTransceive()
377 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type = in phHal4Nfc_MifareTransceive()
380 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.addr = in phHal4Nfc_MifareTransceive()
397 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.cmd_type in phHal4Nfc_MifareTransceive()
415 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)pContext; in phHal4Nfc_Transceive() local
448 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_Transceive()
450 if((eHal4StateTargetConnected != Hal4Ctxt->Hal4CurrentState) in phHal4Nfc_Transceive()
451 ||(eHal4StateInvalid != Hal4Ctxt->Hal4NextState)) in phHal4Nfc_Transceive()
457 else if(psRemoteDevInfo != Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_Transceive()
465 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Transceive()
467 Hal4Ctxt->psTrcvCtxtInfo= (pphHal4Nfc_TrcvCtxtInfo_t) in phHal4Nfc_Transceive()
469 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Transceive()
471 (void)memset(Hal4Ctxt->psTrcvCtxtInfo,0, in phHal4Nfc_Transceive()
473 Hal4Ctxt->psTrcvCtxtInfo->RecvDataBufferStatus in phHal4Nfc_Transceive()
475 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
479 if(NULL == Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Transceive()
488 switch(Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemDevType) in phHal4Nfc_Transceive()
493 Hal4Ctxt in phHal4Nfc_Transceive()
501 Hal4Ctxt in phHal4Nfc_Transceive()
505 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
513 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
519 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
526 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData in phHal4Nfc_Transceive()
528 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData = in phHal4Nfc_Transceive()
534 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
540 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
561 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemDevType) in phHal4Nfc_Transceive()
563 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext; in phHal4Nfc_Transceive()
565Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = pTrcvCallback; in phHal4Nfc_Transceive()
569 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
571 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_Transceive()
573 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_Transceive()
576 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length = 0; in phHal4Nfc_Transceive()
580 Hal4Ctxt->psTrcvCtxtInfo-> in phHal4Nfc_Transceive()
582 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_Transceive()
583 = Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer; in phHal4Nfc_Transceive()
584 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_Transceive()
587 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->buffer in phHal4Nfc_Transceive()
590 Hal4Ctxt->psTrcvCtxtInfo->NumberOfBytesSent in phHal4Nfc_Transceive()
594 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData->length in phHal4Nfc_Transceive()
597 Hal4Ctxt->Hal4NextState = eHal4StateTransaction; in phHal4Nfc_Transceive()
600 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
604 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
607 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
618 Hal4Ctxt->psHciHandle, in phHal4Nfc_Transceive()
620 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_Transceive()
621 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo) in phHal4Nfc_Transceive()
625 Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress = TRUE; in phHal4Nfc_Transceive()
634 … && (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length != 0)) in phHal4Nfc_Transceive()
637 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_Transceive()
641 if(Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length in phHal4Nfc_Transceive()
642 < Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length) in phHal4Nfc_Transceive()
644 (void)memcpy(Hal4Ctxt->psTrcvCtxtInfo in phHal4Nfc_Transceive()
646 (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer in phHal4Nfc_Transceive()
647 + Hal4Ctxt->psTrcvCtxtInfo->LowerRecvBufferOffset) in phHal4Nfc_Transceive()
648 ,Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length); in phHal4Nfc_Transceive()
649 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length -= in phHal4Nfc_Transceive()
650 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length; in phHal4Nfc_Transceive()
651 Hal4Ctxt->psTrcvCtxtInfo->LowerRecvBufferOffset in phHal4Nfc_Transceive()
652 += Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length; in phHal4Nfc_Transceive()
659 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length in phHal4Nfc_Transceive()
660 = Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length; in phHal4Nfc_Transceive()
661 (void)memcpy(Hal4Ctxt->psTrcvCtxtInfo in phHal4Nfc_Transceive()
664 (Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer in phHal4Nfc_Transceive()
665 + Hal4Ctxt->psTrcvCtxtInfo->LowerRecvBufferOffset) in phHal4Nfc_Transceive()
666 ,Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length); in phHal4Nfc_Transceive()
667 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo in phHal4Nfc_Transceive()
669 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer = NULL; in phHal4Nfc_Transceive()
670 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length = 0; in phHal4Nfc_Transceive()
671 Hal4Ctxt->psTrcvCtxtInfo->LowerRecvBufferOffset = 0; in phHal4Nfc_Transceive()
678 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext; in phHal4Nfc_Transceive()
680 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = pTrcvCallback; in phHal4Nfc_Transceive()
681 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params.tag_info.addr in phHal4Nfc_Transceive()
683 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_length in phHal4Nfc_Transceive()
685 Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.tx_buffer in phHal4Nfc_Transceive()
687 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_Transceive()
691 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
695 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
698 if(Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId in phHal4Nfc_Transceive()
709 Hal4Ctxt->psHciHandle, in phHal4Nfc_Transceive()
711 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_Transceive()
712 &(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo) in phHal4Nfc_Transceive()
717 Hal4Ctxt->Hal4NextState = eHal4StateTransaction; in phHal4Nfc_Transceive()
721 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId, in phHal4Nfc_Transceive()
729 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_Transceive()
742 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = gpphHal4Nfc_Hwref->hal_context; in phHal4Nfc_TrcvTimeoutHandler() local
747 Hal4Ctxt->psTrcvCtxtInfo->TransactionTimerId = PH_OSALNFC_INVALID_TIMER_ID; in phHal4Nfc_TrcvTimeoutHandler()
748 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_TrcvTimeoutHandler()
750 if(Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb != NULL) in phHal4Nfc_TrcvTimeoutHandler()
752 pUpperRecvCb = Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb; in phHal4Nfc_TrcvTimeoutHandler()
753 Hal4Ctxt->psTrcvCtxtInfo->pP2PRecvCb = NULL; in phHal4Nfc_TrcvTimeoutHandler()
755 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_TrcvTimeoutHandler()
763 if(Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb != NULL) in phHal4Nfc_TrcvTimeoutHandler()
765 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb; in phHal4Nfc_TrcvTimeoutHandler()
766 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL; in phHal4Nfc_TrcvTimeoutHandler()
768 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_TrcvTimeoutHandler()
769 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_TrcvTimeoutHandler()
789 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL; in phHal4Nfc_Disconnect() local
818 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_Disconnect()
819 if((Hal4Ctxt->sTgtConnectInfo.psConnectedDevice == NULL) in phHal4Nfc_Disconnect()
820 || (psRemoteDevInfo != Hal4Ctxt->sTgtConnectInfo.psConnectedDevice)) in phHal4Nfc_Disconnect()
828 Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt = pContext; in phHal4Nfc_Disconnect()
830 Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb = pDscntCallback; in phHal4Nfc_Disconnect()
832 Hal4Ctxt->sTgtConnectInfo.ReleaseType = ReleaseType; in phHal4Nfc_Disconnect()
833 if((eHal4StateTransaction == Hal4Ctxt->Hal4NextState) in phHal4Nfc_Disconnect()
838 Hal4Ctxt->sTgtConnectInfo.ReleaseType in phHal4Nfc_Disconnect()
843 else if((eHal4StateTransaction == Hal4Ctxt->Hal4NextState) in phHal4Nfc_Disconnect()
844 &&(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_Disconnect()
845 &&(TRUE == Hal4Ctxt->psTrcvCtxtInfo->P2P_Send_In_Progress)) in phHal4Nfc_Disconnect()
866 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = in phHal4Nfc_Disconnect_Execute() local
870 switch(Hal4Ctxt->sTgtConnectInfo.ReleaseType) in phHal4Nfc_Disconnect_Execute()
876 Hal4Ctxt->psHciHandle, in phHal4Nfc_Disconnect_Execute()
879 &(Hal4Ctxt->psADDCtxtInfo->sADDCfg) in phHal4Nfc_Disconnect_Execute()
886 Hal4Ctxt->psHciHandle, in phHal4Nfc_Disconnect_Execute()
894 (void *)Hal4Ctxt->psHciHandle, in phHal4Nfc_Disconnect_Execute()
908 Hal4Ctxt->psHciHandle, in phHal4Nfc_Disconnect_Execute()
918 Hal4Ctxt->sTgtConnectInfo.ReleaseType = NFC_INVALID_RELEASE_TYPE; in phHal4Nfc_Disconnect_Execute()
920 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == RetStatus? in phHal4Nfc_Disconnect_Execute()
921 eHal4StateOpenAndReady:Hal4Ctxt->Hal4NextState); in phHal4Nfc_Disconnect_Execute()
934 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL; in phHal4Nfc_PresenceCheck() local
967 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context; in phHal4Nfc_PresenceCheck()
969 if (eHal4StatePresenceCheck != Hal4Ctxt->Hal4NextState) in phHal4Nfc_PresenceCheck()
972 if (Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemDevType == in phHal4Nfc_PresenceCheck()
978 (void) memcpy(Hal4Ctxt->FelicaIDm, in phHal4Nfc_PresenceCheck()
979Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDm, in phHal4Nfc_PresenceCheck()
980Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDmLength); in phHal4Nfc_PresenceCheck()
982 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = context; in phHal4Nfc_PresenceCheck()
983 Hal4Ctxt->sTgtConnectInfo.pPresenceChkCb = pPresenceChkCb; in phHal4Nfc_PresenceCheck()
984 RetStatus = phHciNfc_Presence_Check(Hal4Ctxt->psHciHandle, in phHal4Nfc_PresenceCheck()
987 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == RetStatus? in phHal4Nfc_PresenceCheck()
988 eHal4StatePresenceCheck:Hal4Ctxt->Hal4NextState); in phHal4Nfc_PresenceCheck()
999 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_PresenceChkComplete() argument
1004 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_PresenceChkComplete()
1006 if(NULL != Hal4Ctxt->sTgtConnectInfo.pPresenceChkCb) in phHal4Nfc_PresenceChkComplete()
1008 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->SessionOpened in phHal4Nfc_PresenceChkComplete()
1011 if (Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemDevType == in phHal4Nfc_PresenceChkComplete()
1015 if (0 != phOsalNfc_MemCompare(Hal4Ctxt->FelicaIDm, in phHal4Nfc_PresenceChkComplete()
1016 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDm, in phHal4Nfc_PresenceChkComplete()
1017 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDmLength)) in phHal4Nfc_PresenceChkComplete()
1022 … (void) memset(Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDm, in phHal4Nfc_PresenceChkComplete()
1024 … (void) memset(Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.PMm, in phHal4Nfc_PresenceChkComplete()
1029 (void) memset(Hal4Ctxt->FelicaIDm, 0, PHHAL_FEL_ID_LEN + 2); in phHal4Nfc_PresenceChkComplete()
1032 (*Hal4Ctxt->sTgtConnectInfo.pPresenceChkCb)( in phHal4Nfc_PresenceChkComplete()
1033 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_PresenceChkComplete()
1043 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_ReactivationComplete() argument
1053 Hal4Ctxt->Hal4NextState = eHal4StateTargetConnected; in phHal4Nfc_ReactivationComplete()
1055 Hal4Ctxt->psHciHandle, in phHal4Nfc_ReactivationComplete()
1057 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice in phHal4Nfc_ReactivationComplete()
1064 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_ReactivationComplete()
1065 if(NULL != Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb) in phHal4Nfc_ReactivationComplete()
1067 (*Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb)( in phHal4Nfc_ReactivationComplete()
1068 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_ReactivationComplete()
1069 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_ReactivationComplete()
1080 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = gpHal4Ctxt; in phHal4Nfc_Felica_RePoll() local
1082 = Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb; in phHal4Nfc_Felica_RePoll()
1084 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL; in phHal4Nfc_Felica_RePoll()
1091 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_Felica_RePoll()
1092 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_Felica_RePoll()
1100 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_ConnectComplete() argument
1106 = Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb; in phHal4Nfc_ConnectComplete()
1113 ||(eHal4StateTargetConnected == Hal4Ctxt->Hal4CurrentState)) in phHal4Nfc_ConnectComplete()
1116 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice; in phHal4Nfc_ConnectComplete()
1118 Hal4Ctxt->Hal4CurrentState = eHal4StateTargetConnected; in phHal4Nfc_ConnectComplete()
1119 Hal4Ctxt->Hal4NextState = eHal4StateInvalid; in phHal4Nfc_ConnectComplete()
1123 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL; in phHal4Nfc_ConnectComplete()
1131 Hal4Ctxt->Hal4CurrentState = eHal4StateOpenAndReady; in phHal4Nfc_ConnectComplete()
1132 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->SessionOpened = FALSE; in phHal4Nfc_ConnectComplete()
1136 == Hal4Ctxt->rem_dev_list[0]->RemDevType) in phHal4Nfc_ConnectComplete()
1137 || (NULL != Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb)) in phHal4Nfc_ConnectComplete()
1139 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL; in phHal4Nfc_ConnectComplete()
1148 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices--; in phHal4Nfc_ConnectComplete()
1149 if(NULL != Hal4Ctxt->rem_dev_list[ in phHal4Nfc_ConnectComplete()
1150 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]) in phHal4Nfc_ConnectComplete()
1153 (Hal4Ctxt->rem_dev_list[ in phHal4Nfc_ConnectComplete()
1154 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])); in phHal4Nfc_ConnectComplete()
1155 Hal4Ctxt->rem_dev_list[ in phHal4Nfc_ConnectComplete()
1156 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL; in phHal4Nfc_ConnectComplete()
1158 }while(0 < Hal4Ctxt->psADDCtxtInfo->nbr_of_devices); in phHal4Nfc_ConnectComplete()
1160 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice = NULL; in phHal4Nfc_ConnectComplete()
1171 (void) memcpy(Hal4Ctxt->FelicaIDm, in phHal4Nfc_ConnectComplete()
1172Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDm, in phHal4Nfc_ConnectComplete()
1173Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemoteDevInfo.Felica_Info.IDmLength); in phHal4Nfc_ConnectComplete()
1175 gpHal4Ctxt = Hal4Ctxt; in phHal4Nfc_ConnectComplete()
1176 Hal4Ctxt->sTgtConnectInfo.pPresenceChkCb = phHal4Nfc_Felica_RePoll; in phHal4Nfc_ConnectComplete()
1177 ConnectStatus = phHciNfc_Presence_Check(Hal4Ctxt->psHciHandle, in phHal4Nfc_ConnectComplete()
1180 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == ConnectStatus? in phHal4Nfc_ConnectComplete()
1181 eHal4StatePresenceCheck:Hal4Ctxt->Hal4NextState); in phHal4Nfc_ConnectComplete()
1183 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = pUpperConnectCb; in phHal4Nfc_ConnectComplete()
1190 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_ConnectComplete()
1191 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_ConnectComplete()
1201 (void *)Hal4Ctxt->psHciHandle, in phHal4Nfc_ConnectComplete()
1205 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == ConnectStatus? in phHal4Nfc_ConnectComplete()
1215 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_DisconnectComplete() argument
1224 if(NULL == Hal4Ctxt) in phHal4Nfc_DisconnectComplete()
1231 (void *)Hal4Ctxt->psHciHandle, in phHal4Nfc_DisconnectComplete()
1235 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == ConnectStatus? in phHal4Nfc_DisconnectComplete()
1240 psConnectedDevice = Hal4Ctxt->sTgtConnectInfo.psConnectedDevice; in phHal4Nfc_DisconnectComplete()
1241 pUpperDisconnectCb = Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb; in phHal4Nfc_DisconnectComplete()
1243 if(NULL != Hal4Ctxt->psTrcvCtxtInfo) in phHal4Nfc_DisconnectComplete()
1245 if(NULL == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice) in phHal4Nfc_DisconnectComplete()
1247 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData) in phHal4Nfc_DisconnectComplete()
1250 Hal4Ctxt->psTrcvCtxtInfo->psUpperSendData); in phHal4Nfc_DisconnectComplete()
1256 == Hal4Ctxt->sTgtConnectInfo.psConnectedDevice->RemDevType) in phHal4Nfc_DisconnectComplete()
1258 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb; in phHal4Nfc_DisconnectComplete()
1259 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length = 0; in phHal4Nfc_DisconnectComplete()
1260 pUpperTrcvCb = Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb; in phHal4Nfc_DisconnectComplete()
1261 Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb = NULL; in phHal4Nfc_DisconnectComplete()
1264 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer) in phHal4Nfc_DisconnectComplete()
1267 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer); in phHal4Nfc_DisconnectComplete()
1270 phOsalNfc_FreeMemory(Hal4Ctxt->psTrcvCtxtInfo); in phHal4Nfc_DisconnectComplete()
1271 Hal4Ctxt->psTrcvCtxtInfo = NULL; in phHal4Nfc_DisconnectComplete()
1276 if(NULL != Hal4Ctxt->rem_dev_list[Hal4Ctxt-> in phHal4Nfc_DisconnectComplete()
1280 (Hal4Ctxt->rem_dev_list[Hal4Ctxt-> in phHal4Nfc_DisconnectComplete()
1282 Hal4Ctxt->rem_dev_list[Hal4Ctxt-> in phHal4Nfc_DisconnectComplete()
1285 }while(--(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices)); in phHal4Nfc_DisconnectComplete()
1287 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice = NULL; in phHal4Nfc_DisconnectComplete()
1289 Hal4Ctxt->Hal4CurrentState = Hal4Ctxt->Hal4NextState; in phHal4Nfc_DisconnectComplete()
1290 Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb = NULL; in phHal4Nfc_DisconnectComplete()
1291 Hal4Ctxt->Hal4NextState = ( in phHal4Nfc_DisconnectComplete()
1292 eHal4StateOpenAndReady == Hal4Ctxt->Hal4NextState? in phHal4Nfc_DisconnectComplete()
1293 eHal4StateInvalid:Hal4Ctxt->Hal4NextState); in phHal4Nfc_DisconnectComplete()
1298 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_DisconnectComplete()
1309 Hal4Ctxt->sUpperLayerInfo.psUpperLayerDisconnectCtxt, in phHal4Nfc_DisconnectComplete()
1321 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt, in phHal4Nfc_TransceiveComplete() argument
1328 Hal4Ctxt->Hal4NextState = (eHal4StateTransaction in phHal4Nfc_TransceiveComplete()
1329 == Hal4Ctxt->Hal4NextState?eHal4StateInvalid:Hal4Ctxt->Hal4NextState); in phHal4Nfc_TransceiveComplete()
1331 if (Hal4Ctxt->SelectSectorFlag == 2) in phHal4Nfc_TransceiveComplete()
1335 Hal4Ctxt->SelectSectorFlag = 0; in phHal4Nfc_TransceiveComplete()
1338 if(NULL == Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData) in phHal4Nfc_TransceiveComplete()
1352 ->length > Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length ) in phHal4Nfc_TransceiveComplete()
1355 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length in phHal4Nfc_TransceiveComplete()
1357 - Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length; in phHal4Nfc_TransceiveComplete()
1359 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer in phHal4Nfc_TransceiveComplete()
1361 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length in phHal4Nfc_TransceiveComplete()
1363 if(NULL != Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer) in phHal4Nfc_TransceiveComplete()
1366 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.buffer, in phHal4Nfc_TransceiveComplete()
1368 + Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData in phHal4Nfc_TransceiveComplete()
1370 ,Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length in phHal4Nfc_TransceiveComplete()
1384 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length in phHal4Nfc_TransceiveComplete()
1386 Hal4Ctxt->psTrcvCtxtInfo->sLowerRecvData.length = 0; in phHal4Nfc_TransceiveComplete()
1388 (void)memcpy(Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->buffer, in phHal4Nfc_TransceiveComplete()
1390 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length in phHal4Nfc_TransceiveComplete()
1396 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData->length = 0; in phHal4Nfc_TransceiveComplete()
1398 (void)memset((void *)&(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params), in phHal4Nfc_TransceiveComplete()
1400 sizeof(Hal4Ctxt->psTrcvCtxtInfo->XchangeInfo.params) in phHal4Nfc_TransceiveComplete()
1402 Hal4Ctxt->psTrcvCtxtInfo->LowerRecvBufferOffset = 0; in phHal4Nfc_TransceiveComplete()
1404 (*Hal4Ctxt->psTrcvCtxtInfo->pUpperTranceiveCb)( in phHal4Nfc_TransceiveComplete()
1405 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt, in phHal4Nfc_TransceiveComplete()
1406 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice, in phHal4Nfc_TransceiveComplete()
1407 Hal4Ctxt->psTrcvCtxtInfo->psUpperRecvData, in phHal4Nfc_TransceiveComplete()