Lines Matching defs: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
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))
509 (NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)&&
510 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
550 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
551 &&((Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
553 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
562 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica212
563 || Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica424)
576 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso14443A)
587 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso15693)
604 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
610 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
621 if(NULL == Hal4Ctxt->rem_dev_list[
622 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
624 Hal4Ctxt->rem_dev_list[
625 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]
632 if(NULL == Hal4Ctxt->rem_dev_list[
633 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
643 (void *)Hal4Ctxt->rem_dev_list[
644 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices],
649 Hal4Ctxt->rem_dev_list[
650 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]->RemDevType
653 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices++;
658 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
659 &&(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
660 &&(phHal_eNfcIP1_Target == Hal4Ctxt->rem_dev_list[0]->RemDevType))
661 ||(NULL == Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification))
670 for(Count = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
675 Hal4Ctxt->rem_dev_list[Count-1]->RemDevType)
678 (void *)Hal4Ctxt->rem_dev_list[0],
679 (void *)Hal4Ctxt->rem_dev_list[Count-1],
687 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > NfcIpDeviceCount)
689 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
690 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
691 Hal4Ctxt->rem_dev_list[
692 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
698 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
699 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
702 (*Hal4Ctxt->sUpperLayerInfo.pP2PNotification)(
703 (void *)(Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt),
712 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
715 (void *)Hal4Ctxt->psHciHandle,
719 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
721 Hal4Ctxt->Hal4NextState);
726 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices
730 Hal4Ctxt->psHciHandle,
736 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
739 (void *)Hal4Ctxt->psHciHandle,
743 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
745 Hal4Ctxt->Hal4NextState);
747 }/*if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)...*/
750 else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
756 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices < MAX_REMOTE_DEVICES))
760 Hal4Ctxt->psHciHandle,
770 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
771 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
773 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
774 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
782 if(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
784 == Hal4Ctxt->rem_dev_list[0]->RemDevType))
786 || (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
790 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 0)
792 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
793 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
794 Hal4Ctxt->rem_dev_list[
795 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
799 (void *)Hal4Ctxt->psHciHandle,
803 Hal4Ctxt->Hal4NextState = (
805 :Hal4Ctxt->Hal4NextState
811 status = (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 1?
815 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
817 = Hal4Ctxt->rem_dev_list;
820 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
821 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
828 } /*else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)*/
833 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
836 (void *)Hal4Ctxt->psHciHandle,
840 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
842 Hal4Ctxt->Hal4NextState);
848 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
849 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
853 if((NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
863 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
867 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
868 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
876 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
879 (void *)Hal4Ctxt->psHciHandle,
883 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
884 eHal4StateConfiguring:Hal4Ctxt->Hal4NextState);
900 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
920 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
924 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = Context;
925 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification
929 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = Context;
930 Hal4Ctxt->sUpperLayerInfo.pP2PNotification
937 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = Context;
938 Hal4Ctxt->sUpperLayerInfo.pEventNotification
942 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = Context;
943 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler
961 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
981 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
985 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = Context;
986 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = NULL;
988 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification = NULL;
992 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = NULL;
994 Hal4Ctxt->sUpperLayerInfo.pP2PNotification = NULL;
1002 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = NULL;
1003 Hal4Ctxt->sUpperLayerInfo.pEventNotification = NULL;
1007 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = NULL;
1009 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler = NULL;