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
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))
503 (NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)&&
504 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
544 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
545 &&((Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
547 (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode
556 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica212
557 || Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableFelica424)
570 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso14443A)
581 if(Hal4Ctxt->psADDCtxtInfo->sCurrentPollConfig.EnableIso15693)
598 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
604 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
615 if(NULL == Hal4Ctxt->rem_dev_list[
616 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
618 Hal4Ctxt->rem_dev_list[
619 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]
626 if(NULL == Hal4Ctxt->rem_dev_list[
627 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices])
637 (void *)Hal4Ctxt->rem_dev_list[
638 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices],
643 Hal4Ctxt->rem_dev_list[
644 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]->RemDevType
647 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices++;
652 if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)
653 &&(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
654 &&(phHal_eNfcIP1_Target == Hal4Ctxt->rem_dev_list[0]->RemDevType))
655 ||(NULL == Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification))
664 for(Count = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
669 Hal4Ctxt->rem_dev_list[Count-1]->RemDevType)
674 (void *)Hal4Ctxt->rem_dev_list[0],
675 (void *)Hal4Ctxt->rem_dev_list[Count-1],
684 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > NfcIpDeviceCount)
686 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
687 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
688 Hal4Ctxt->rem_dev_list[
689 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
695 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
696 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
699 (*Hal4Ctxt->sUpperLayerInfo.pP2PNotification)(
700 (void *)(Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt),
709 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
712 (void *)Hal4Ctxt->psHciHandle,
716 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
718 Hal4Ctxt->Hal4NextState);
723 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices
727 Hal4Ctxt->psHciHandle,
733 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
736 (void *)Hal4Ctxt->psHciHandle,
740 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
742 Hal4Ctxt->Hal4NextState);
744 }/*if((NULL != Hal4Ctxt->sUpperLayerInfo.pP2PNotification)...*/
747 else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
753 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices < MAX_REMOTE_DEVICES))
757 Hal4Ctxt->psHciHandle,
767 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
768 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
770 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
771 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
779 if(((Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 1)
781 == Hal4Ctxt->rem_dev_list[0]->RemDevType))
783 || (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices == 0)
787 while(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 0)
789 phOsalNfc_FreeMemory(Hal4Ctxt->rem_dev_list[
790 --Hal4Ctxt->psADDCtxtInfo->nbr_of_devices]);
791 Hal4Ctxt->rem_dev_list[
792 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices] = NULL;
796 (void *)Hal4Ctxt->psHciHandle,
800 Hal4Ctxt->Hal4NextState = (
802 :Hal4Ctxt->Hal4NextState
808 status = (Hal4Ctxt->psADDCtxtInfo->nbr_of_devices > 1?
812 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
814 = Hal4Ctxt->rem_dev_list;
817 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
818 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
825 } /*else if(NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)*/
830 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
833 (void *)Hal4Ctxt->psHciHandle,
837 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
839 Hal4Ctxt->Hal4NextState);
845 = Hal4Ctxt->psADDCtxtInfo->nbr_of_devices;
846 sDiscoveryInfo.ppRemoteDevInfo = Hal4Ctxt->rem_dev_list;
850 if((NULL != Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)
860 &&(Hal4Ctxt->psADDCtxtInfo->nbr_of_devices != 0))?
864 (*Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification)(
865 (void *)(Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt),
873 Hal4Ctxt->psADDCtxtInfo->nbr_of_devices = 0;
876 (void *)Hal4Ctxt->psHciHandle,
880 Hal4Ctxt->Hal4NextState = (NFCSTATUS_PENDING == status?
881 eHal4StateConfiguring:Hal4Ctxt->Hal4NextState);
897 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
917 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
921 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = Context;
922 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification
926 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = Context;
927 Hal4Ctxt->sUpperLayerInfo.pP2PNotification
934 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = Context;
935 Hal4Ctxt->sUpperLayerInfo.pEventNotification
939 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = Context;
940 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler
958 phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
978 Hal4Ctxt = (phHal4Nfc_Hal4Ctxt_t *)psHwReference->hal_context;
982 Hal4Ctxt->sUpperLayerInfo.psUpperLayerCtxt = Context;
983 Hal4Ctxt->sUpperLayerInfo.DiscoveryCtxt = NULL;
985 Hal4Ctxt->sUpperLayerInfo.pTagDiscoveryNotification = NULL;
989 Hal4Ctxt->sUpperLayerInfo.P2PDiscoveryCtxt = NULL;
991 Hal4Ctxt->sUpperLayerInfo.pP2PNotification = NULL;
999 Hal4Ctxt->sUpperLayerInfo.EventNotificationCtxt = NULL;
1000 Hal4Ctxt->sUpperLayerInfo.pEventNotification = NULL;
1004 Hal4Ctxt->sUpperLayerInfo.DefaultListenerCtxt = NULL;
1006 Hal4Ctxt->sUpperLayerInfo.pDefaultEventHandler = NULL;