Lines Matching refs:Hal4Ctxt
50 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
74 Hal4Ctxt = psHwReference->hal_context;
77 if(Hal4Ctxt->Hal4NextState == eHal4StateConfiguring)
82 else if(Hal4Ctxt->Hal4CurrentState >= eHal4StateOpenAndReady)
85 if (NULL == Hal4Ctxt->psADDCtxtInfo)
87 Hal4Ctxt->psADDCtxtInfo= (pphHal4Nfc_ADDCtxtInfo_t)
90 if(NULL != Hal4Ctxt->psADDCtxtInfo)
92 (void)memset(Hal4Ctxt->psADDCtxtInfo,0,
97 if(NULL == Hal4Ctxt->psADDCtxtInfo)
107 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCfgDiscCtxt = pContext;
109 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext;
116 (void)memcpy((void *)&Hal4Ctxt->uConfig,
129 Hal4Ctxt->uConfig.nfcIPConfig.generalBytesLength = 0x00;
130 (void)memset(Hal4Ctxt->uConfig.nfcIPConfig.generalBytes,
131 0,Hal4Ctxt->uConfig.nfcIPConfig.generalBytesLength
136 (void)memcpy((void *)&Hal4Ctxt->uConfig,
147 Hal4Ctxt->Ignore_Event_Protected = FALSE;
149 (void)memcpy((void *)&Hal4Ctxt->uConfig,
163 (void *)Hal4Ctxt->psHciHandle,
166 &Hal4Ctxt->uConfig
171 Hal4Ctxt->Hal4NextState = eHal4StateConfiguring;
172 Hal4Ctxt->sUpperLayerInfo.pConfigCallback
198 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
220 Hal4Ctxt = psHwReference->hal_context;
223 if(Hal4Ctxt->Hal4NextState == eHal4StateConfiguring)
228 else if(Hal4Ctxt->Hal4CurrentState >= eHal4StateOpenAndReady)
230 if (NULL == Hal4Ctxt->psADDCtxtInfo)
232 Hal4Ctxt->psADDCtxtInfo= (pphHal4Nfc_ADDCtxtInfo_t)
235 if(NULL != Hal4Ctxt->psADDCtxtInfo)
237 (void)memset(Hal4Ctxt->psADDCtxtInfo,0,
242 if(NULL == Hal4Ctxt->psADDCtxtInfo)
252 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCfgDiscCtxt = pContext;
254 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = pContext;
266 &(Hal4Ctxt->psADDCtxtInfo->sADDCfg),
271 Hal4Ctxt->psADDCtxtInfo->smx_discovery = FALSE;
273 Hal4Ctxt->psADDCtxtInfo->sADDCfg.PollDevInfo.PollCfgInfo.EnableNfcActive
274 = ( 0 == Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode?
275 Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode:
277 Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode = ((
278 Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode <<
280 | Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode);
286 (void *)Hal4Ctxt->psHciHandle,
288 &(Hal4Ctxt->psADDCtxtInfo->sADDCfg)
296 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
298 (void *)Hal4Ctxt->psHciHandle,
311 &(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig),
317 Hal4Ctxt->Hal4NextState = eHal4StateConfiguring;
318 Hal4Ctxt->sUpperLayerInfo.pConfigCallback
324 &(Hal4Ctxt->psADDCtxtInfo->sADDCfg.PollDevInfo.PollCfgInfo),
325 (void *)&(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig),
342 void phHal4Nfc_ConfigureComplete(phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt,
348 = Hal4Ctxt->sUpperLayerInfo.pConfigCallback;
350 = Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb;
354 Hal4Ctxt->psADDCtxtInfo->IsPollConfigured = TRUE;
359 Hal4Ctxt->psADDCtxtInfo->IsPollConfigured = FALSE;
362 if(NULL != Hal4Ctxt->sUpperLayerInfo.pConfigCallback)
365 if((NFC_UICC_EMULATION == Hal4Ctxt->uConfig.emuConfig.emuType)&&
367 Hal4Ctxt->uConfig.emuConfig.config.uiccEmuCfg.enableUicc))
370 Hal4Ctxt->psHciHandle,
379 Hal4Ctxt->Hal4NextState = eHal4StateInvalid;
380 Hal4Ctxt->sUpperLayerInfo.pConfigCallback = NULL;
383 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCfgDiscCtxt,
385 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt,
394 else if(Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb)
396 Hal4Ctxt->Hal4NextState = eHal4StateInvalid;
397 Hal4Ctxt->sTgtConnectInfo.pUpperConnectCb = NULL;
400 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt,
401 Hal4Ctxt->sTgtConnectInfo.psConnectedDevice,
407 Hal4Ctxt->Hal4NextState = eHal4StateInvalid;
409 if ( NULL != Hal4Ctxt->sTgtConnectInfo.pUpperDisconnectCb)
412 phHal4Nfc_DisconnectComplete(Hal4Ctxt,pInfo);
420 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt,
446 Hal4Ctxt->Hal4CurrentState = eHal4StateTargetDiscovered;
447 Hal4Ctxt->Hal4NextState = eHal4StateInvalid;
460 if((Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso14443A)
461 || (TRUE == Hal4Ctxt->psADDCtxtInfo->smx_discovery))
505 (NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)&&
506 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
546 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
547 &&((Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
549 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
558 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica212
559 || Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica424)
572 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso14443A)
583 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso15693)
600 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
606 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
617 if(NULL == Hal4Ctxt->rem_dev_list[
618 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
620 Hal4Ctxt->rem_dev_list[
621 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]
628 if(NULL == Hal4Ctxt->rem_dev_list[
629 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
639 (void *)Hal4Ctxt->rem_dev_list[
640 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices],
645 Hal4Ctxt->rem_dev_list[
646 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]->RemDevType
649 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices++;
654 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
655 &&(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
656 &&(phHal_eNfcIP1_Target == Hal4Ctxt->rem_dev_list[0]->RemDevType))
657 ||(NULL == Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification))
666 for(Count = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
671 Hal4Ctxt->rem_dev_list[Count-1]->RemDevType)
674 (void *)Hal4Ctxt->rem_dev_list[0],
675 (void *)Hal4Ctxt->rem_dev_list[Count-1],
683 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > NfcIpDeviceCount)
685 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
686 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
687 Hal4Ctxt->rem_dev_list[
688 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
694 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
695 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
698 (*Hal4Ctxt->sUpperLayerInfo.pP2PNotification)(
699 (void *)(Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt),
708 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
711 (void *)Hal4Ctxt->psHciHandle,
715 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
717 Hal4Ctxt->Hal4NextState);
722 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices
726 Hal4Ctxt->psHciHandle,
732 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
735 (void *)Hal4Ctxt->psHciHandle,
739 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
741 Hal4Ctxt->Hal4NextState);
743 }/*if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)...*/
746 else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
752 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices < MAX_REMOTE_DEVICES))
756 Hal4Ctxt->psHciHandle,
766 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
767 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
769 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
770 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
778 if(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
780 == Hal4Ctxt->rem_dev_list[0]->RemDevType))
782 || (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
786 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 0)
788 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
789 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
790 Hal4Ctxt->rem_dev_list[
791 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
795 (void *)Hal4Ctxt->psHciHandle,
799 Hal4Ctxt->Hal4NextState = (
801 :Hal4Ctxt->Hal4NextState
807 status = (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 1?
811 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
813 = Hal4Ctxt->rem_dev_list;
816 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
817 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
824 } /*else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)*/
829 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
832 (void *)Hal4Ctxt->psHciHandle,
836 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
838 Hal4Ctxt->Hal4NextState);
844 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
845 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
849 if((NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
859 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
863 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
864 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
872 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
875 (void *)Hal4Ctxt->psHciHandle,
879 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
880 eHal4StateConfiguring:Hal4Ctxt->Hal4NextState);
896 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
916 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
920 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = Context;
921 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification
925 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = Context;
926 Hal4Ctxt->sUpperLayerInfo.pP2PNotification
933 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = Context;
934 Hal4Ctxt->sUpperLayerInfo.pEventNotification
938 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = Context;
939 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler
957 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
977 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
981 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = Context;
982 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = NULL;
984 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification = NULL;
988 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = NULL;
990 Hal4Ctxt->sUpperLayerInfo.pP2PNotification = NULL;
998 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = NULL;
999 Hal4Ctxt->sUpperLayerInfo.pEventNotification = NULL;
1003 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = NULL;
1005 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler = NULL;