Home | History | Annotate | Download | only in src

Lines Matching refs:psHciContext

97     phHciNfc_sContext_t *psHciContext = NULL;
117 psHciContext = (phHciNfc_sContext_t *)
120 if(psHciContext != NULL)
122 (void)memset((void *)psHciContext,0,
125 psHciContext->hci_state.cur_state = hciState_Reset;
126 psHciContext->hci_mode = hciMode_Reset;
127 psHciContext->p_hw_ref = pHwRef;
128 psHciContext->host_rf_type = phHal_eUnknown_DevType;
143 psHciContext->p_upper_notify = pHalNotify;
144 psHciContext->p_upper_context = psContext;
146 if_callback.pif_ctxt = psHciContext ;
150 plower_if = hciReference.plower_if = &(psHciContext->lower_interface);
151 *((phHciNfc_sContext_t **)psHciHandle) = psHciContext;
152 psHciContext->init_mode = init_mode;
153 psHciContext->p_hci_layer = psHciLayerCfg ;
165 status = phHciNfc_FSM_Update ( psHciContext,
170 psHciContext->hci_seq = ADMIN_INIT_SEQ;
171 psHciContext->target_release = FALSE;
172 psHciContext->config_type = POLL_LOOP_CFG;
173 psHciContext->p_config_params = pHwConfig ;
175 (void *)psHciContext->p_hw_ref);
180 phHciNfc_FSM_Rollback ( psHciContext );
216 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
231 phHciNfc_Release_Lower( psHciContext, pHwRef );
233 phHciNfc_Release_Resources( &psHciContext );
242 psHciContext->p_hw_ref = pHwRef;
243 status = phHciNfc_FSM_Update ( psHciContext, hciState_Release );
250 psHciContext->p_upper_notify = pHalReleaseCB;
251 psHciContext->p_upper_context = psContext;
252 /* psHciContext->hci_seq = EMULATION_REL_SEQ;*/
253 /* psHciContext->hci_seq = READER_MGMT_REL_SEQ; */
254 if (HCI_SELF_TEST != psHciContext->init_mode)
256 psHciContext->hci_seq = PL_STOP_SEQ;
260 psHciContext->hci_seq = ADMIN_REL_SEQ;
266 psHciContext->hci_state.next_state = (uint8_t) hciState_Release;
272 status = phHciNfc_Release_Sequence(psHciContext,pHwRef);
278 phHciNfc_FSM_Rollback ( psHciContext );
305 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
316 status = phHciNfc_ReaderMgmt_Enable_Discovery( psHciContext, pHwRef );
336 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
347 status = phHciNfc_ReaderMgmt_Disable_Discovery( psHciContext, pHwRef );
389 phHciNfc_sContext_t *psHciContext =
391 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
395 psHciContext->config_type = NFC_GENERAL_CFG;
396 psHciContext->p_config_params = &(pConfig->nfcIPConfig);
397 psHciContext->hci_seq = INITIATOR_GENERAL_SEQ;
404 phHciNfc_FSM_Rollback ( psHciContext );
408 psHciContext->hci_seq = TARGET_GENERAL_SEQ;
425 phHciNfc_sContext_t *psHciContext =
427 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
431 psHciContext->config_type = SWP_PROTECT_CFG;
432 psHciContext->p_config_params = &(pConfig->protectionConfig);
433 psHciContext->hci_seq = HCI_END_SEQ;
439 phHciNfc_FSM_Rollback ( psHciContext );
471 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
483 psHciContext->p_hw_ref = pHwRef;
485 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
492 psHciContext->hci_seq = PL_DURATION_SEQ;
496 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
497 /* psHciContext->hci_seq = (pPollConfig->NfcIP_Mode != 0 )?
502 psHciContext->hci_seq = PL_DURATION_SEQ;
503 psHciContext->config_type = POLL_LOOP_CFG;
504 psHciContext->p_config_params = pPollConfig;
505 status = phHciNfc_PollLoop_Sequence( psHciContext, pHwRef );
510 phHciNfc_FSM_Rollback ( psHciContext );
535 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
547 psHciContext->p_hw_ref = pHwRef;
550 status = phHciNfc_FSM_Update ( psHciContext, hciState_Initialise );
553 switch (psHciContext->host_rf_type)
607 phHciNfc_FSM_Rollback ( psHciContext );
615 phHciNfc_FSM_Rollback ( psHciContext );
623 psHciContext, pHwRef, target_type, re_poll);
627 phHciNfc_FSM_Rollback ( psHciContext );
631 psHciContext->host_rf_type = phHal_eUnknown_DevType;
662 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
674 psHciContext->p_hw_ref = pHwRef;
677 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
681 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
682 psHciContext->p_config_params = pEmulationCfg;
687 psHciContext->config_type = SMX_WI_CFG;
688 status = phHciNfc_Emulation_Cfg(psHciContext,
694 psHciContext->config_type = UICC_SWP_CFG;
695 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
697 psHciContext, CONFIG_SEQ );
699 psHciContext, pHwRef);
709 psHciContext->hci_seq = ADMIN_CE_SEQ;
712 psHciContext, pHwRef);
725 phHciNfc_FSM_Rollback ( psHciContext );
745 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
756 psHciContext->p_hw_ref = pHwRef;
759 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
762 psHciContext->config_type = SWP_EVT_CFG;
763 status = phHciNfc_SWP_Configure_Mode( psHciContext, pHwRef ,
773 phHciNfc_FSM_Rollback ( psHciContext );
811 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
823 psHciContext->p_hw_ref = pHwRef;
826 status = phHciNfc_FSM_Update ( psHciContext, hciState_Config );
830 psHciContext->hci_seq = READER_DISABLE_SEQ;
831 if ( (eSmartMx_Wired == psHciContext->smx_mode)
832 && ( hciState_Connect == psHciContext->hci_state.cur_state)
840 psHciContext->hci_state.cur_state = hciState_Disconnect;
842 psHciContext->config_type = SMX_WI_MODE;
843 psHciContext->smx_mode = smx_mode;
844 psHciContext->p_config_params = pPollConfig;
845 status = phHciNfc_SmartMx_Mode_Sequence( psHciContext, pHwRef );
849 phHciNfc_FSM_Rollback ( psHciContext );
879 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
890 psHciContext->p_hw_ref = pHwRef;
891 status = phHciNfc_FSM_Update ( psHciContext, hciState_Select );
894 psHciContext->hci_seq = READER_SELECT_SEQ;
895 status = phHciNfc_ReaderMgmt_Activate_Next( psHciContext, pHwRef );
899 phHciNfc_FSM_Rollback ( psHciContext );
930 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
943 psHciContext->p_hw_ref = pHwRef;
944 status = phHciNfc_FSM_Update ( psHciContext, hciState_Connect );
947 psHciContext->hci_seq = READER_SELECT_SEQ;
972 psHciContext->p_target_info = p_target_info;
974 psHciContext, pHwRef,
985 phHciNfc_FSM_Rollback ( psHciContext );
993 phHciNfc_FSM_Rollback ( psHciContext );
1024 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
1037 psHciContext->p_hw_ref = pHwRef;
1038 status = phHciNfc_FSM_Update ( psHciContext, hciState_Reactivate );
1041 psHciContext->hci_seq = READER_REACTIVATE_SEQ;
1049 psHciContext->host_rf_type = phHal_eISO14443_A_PCD;
1054 psHciContext->host_rf_type = phHal_eNfcIP1_Initiator;
1061 psHciContext->host_rf_type = phHal_eISO14443_B_PCD;
1068 psHciContext->host_rf_type = phHal_eFelica_PCD;
1081 phHciNfc_FSM_Rollback ( psHciContext );
1094 psHciContext->p_target_info = p_target_info;
1096 psHciContext, pHwRef, p_target_info->RemDevType );
1100 phHciNfc_FSM_Rollback ( psHciContext );
1124 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
1133 || ( NULL == psHciContext->p_target_info)
1140 psHciContext->p_hw_ref = pHwRef;
1142 psHciContext->p_config_params = &repoll;
1143 /* psHciContext->hci_seq = HCI_END_SEQ; */
1146 status = phHciNfc_FSM_Update ( psHciContext, hciState_Disconnect );
1149 psHciContext->hci_seq = READER_UICC_DISPATCH_SEQ;
1150 target_type = psHciContext->p_target_info->RemDevType;
1174 psHciContext, pHwRef );
1192 phHciNfc_FSM_Rollback ( psHciContext );
1200 phHciNfc_FSM_Rollback ( psHciContext );
1208 phHciNfc_FSM_Rollback ( psHciContext );
1236 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
1247 else if (p_target_info != psHciContext->p_target_info )
1253 psHciContext->p_hw_ref = pHwRef;
1254 status = phHciNfc_FSM_Update ( psHciContext, hciState_Transact );
1277 psHciContext->p_xchg_info = p_xchg_info;
1279 psHciContext, pHwRef, p_xchg_info );
1298 phHciNfc_FSM_Rollback ( psHciContext );
1306 phHciNfc_FSM_Rollback ( psHciContext );
1315 phHciNfc_FSM_Rollback ( psHciContext );
1343 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
1355 psHciContext->p_hw_ref = pHwRef;
1356 status = phHciNfc_FSM_Update ( psHciContext, hciState_Transact );
1359 switch (psHciContext->host_rf_type)
1372 psHciContext->p_target_info )
1379 psHciContext->p_xchg_info = p_send_param;
1380 status = phHciNfc_NfcIP_Send_Data( psHciContext,
1387 psHciContext->p_xchg_info = p_send_param;
1388 status = phHciNfc_NfcIP_Send_Data( psHciContext,
1398 phHciNfc_FSM_Rollback ( psHciContext );
1407 phHciNfc_FSM_Rollback ( psHciContext );
1418 phHciNfc_FSM_Rollback ( psHciContext );
1449 phHciNfc_sContext_t *psHciContext = ((phHciNfc_sContext_t *)psHciHandle);
1466 phHciNfc_FSM_Rollback ( psHciContext );
1493 phHciNfc_sContext_t *psHciContext =
1497 if( (NULL == psHciContext)
1505 psHciContext->p_hw_ref = pHwRef;
1506 status = phHciNfc_FSM_Update ( psHciContext, hciState_Presence );
1509 target_type = psHciContext
1534 psHciContext, pHwRef );
1553 phHciNfc_FSM_Rollback ( psHciContext );
1560 phHciNfc_FSM_Rollback ( psHciContext );
1569 phHciNfc_FSM_Rollback ( psHciContext );
1590 phHciNfc_sContext_t *psHciContext =
1593 if( (NULL == psHciContext)
1602 psHciContext->p_hw_ref = pHwRef;
1603 status = phHciNfc_FSM_Update ( psHciContext, hciState_IO );
1606 status = phHciNfc_DevMgmt_Test(psHciContext, pHwRef,
1611 phHciNfc_FSM_Rollback ( psHciContext );
1628 phHciNfc_sContext_t *psHciContext =
1633 if( (NULL == psHciContext)
1641 psHciContext->p_hw_ref = pHwRef;
1642 status = phHciNfc_FSM_Update ( psHciContext, hciState_Test );
1647 status = phHciNfc_DevMgmt_Test(psHciContext, pHwRef,
1653 status = phHciNfc_DevMgmt_Get_Info(psHciContext, pHwRef,
1660 phHciNfc_FSM_Rollback ( psHciContext );
1678 phHciNfc_sContext_t *psHciContext =
1681 if( (NULL == psHciContext)
1689 psHciContext->p_hw_ref = pHwRef;
1690 status = phHciNfc_FSM_Update ( psHciContext, hciState_IO );
1693 status = phHciNfc_DevMgmt_Configure(psHciContext, pHwRef,
1699 phHciNfc_FSM_Rollback ( psHciContext );
1715 phHciNfc_sContext_t *psHciContext =
1718 if( (NULL == psHciContext)
1727 psHciContext->p_hw_ref = pHwRef;
1728 status = phHciNfc_FSM_Update ( psHciContext, hciState_IO );
1731 status = phHciNfc_DevMgmt_Get_Info(psHciContext, pHwRef,
1737 phHciNfc_FSM_Rollback ( psHciContext );
1753 phHciNfc_sContext_t *psHciContext =
1756 if( (NULL == psHciContext)
1764 psHciContext->p_hw_ref = pHwRef;
1765 status = phHciNfc_FSM_Update ( psHciContext, hciState_IO );
1768 status = phHciNfc_LinkMgmt_Open(psHciContext, pHwRef);
1773 phHciNfc_FSM_Rollback ( psHciContext );