Home | History | Annotate | Download | only in src

Lines Matching refs:psHciContext

112                          phHciNfc_sContext_t        *psHciContext,
123 * \param[in] psHciContext psHciContext is the context of
138 phHciNfc_sContext_t *psHciContext,
148 * \param[in] psHciContext psHciContext is the context of
163 phHciNfc_sContext_t *psHciContext,
170 phHciNfc_sContext_t *psHciContext,
182 phHciNfc_sContext_t *psHciContext
190 phHciNfc_sContext_t *psHciContext,
200 phHciNfc_sContext_t *psHciContext,
213 phHciNfc_sContext_t *psHciContext,
220 psHciContext->hci_state.cur_state;
437 if( NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition )
455 phHciNfc_sContext_t *psHciContext,
462 psHciContext->hci_state.cur_state );
464 psHciContext->hci_state.transition );
466 psHciContext->hci_state.next_state );
468 status = phHciNfc_FSM_Validate(psHciContext, next_state, NFC_FSM_NEXT );
471 psHciContext->hci_state.next_state = (uint8_t) next_state;
472 psHciContext->hci_state.transition = NFC_FSM_IN_PROGRESS;
473 psHciContext->response_pending = FALSE;
475 psHciContext->hci_state.next_state );
489 phHciNfc_sContext_t *psHciContext
497 psHciContext->hci_state.transition );
500 psHciContext->hci_state.cur_state );
503 psHciContext->hci_state.next_state );
505 if( (NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition)
508 psHciContext->hci_state.cur_state =
509 psHciContext->hci_state.next_state ;
510 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
511 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
513 psHciContext->response_pending = FALSE;
514 psHciContext->hci_seq = HCI_INVALID_SEQ;
519 psHciContext->hci_state.cur_state );
526 phHciNfc_sContext_t *psHciContext
533 psHciContext->hci_state.transition );
536 psHciContext->hci_state.cur_state );
539 psHciContext->hci_state.next_state );
541 if( (NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition)
544 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
545 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
547 psHciContext->hci_seq = HCI_INVALID_SEQ;
548 psHciContext->response_pending = FALSE;
556 phHciNfc_sContext_t *psHciContext
560 if( (hciState_Reset != psHciContext->hci_state.cur_state )
563 psHciContext->hci_state.cur_state = (uint8_t) hciState_Initialise ;
564 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
565 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
567 psHciContext->hci_seq = HCI_INVALID_SEQ;
578 phHciNfc_sContext_t *psHciContext,
586 HCI_DEBUG("HCI: psHciContext->target_release --> %s \n",
587 (psHciContext->target_release)?"TRUE":"FALSE");
588 if(TRUE == psHciContext->target_release)
592 psHciContext, pHwRef, phHal_eISO14443_A_PICC, TRUE);
595 psHciContext->target_release = FALSE ;
600 status = psHciContext->error_status;
602 psHciContext->target_release = FALSE ;
620 phHciNfc_sContext_t *psHciContext = (phHciNfc_sContext_t *)psContext;
630 psHciContext->hci_state.cur_state );
632 psHciContext->hci_state.next_state );
635 if ( NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition )
637 switch(psHciContext->hci_state.next_state)
641 if (hciState_Reset == psHciContext->hci_state.cur_state)
645 phHciNfc_Release_Lower( psHciContext, pHwRef );
650 phHciNfc_Release_Notify (psHciContext, pHwRef,
653 else if (hciState_Config == psHciContext->hci_state.cur_state)
661 psHciContext->error_status = error_status;
662 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
664 phHciNfc_FSM_Rollback(psHciContext);
665 psHciContext->error_status = NFCSTATUS_SUCCESS;
666 phHciNfc_Notify(psHciContext->p_upper_notify,
667 psHciContext->p_upper_context, pHwRef,
676 psHciContext->error_status = error_status;
677 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
679 phHciNfc_FSM_Rollback(psHciContext);
681 psHciContext->error_status = NFCSTATUS_SUCCESS;
682 phHciNfc_Notify(psHciContext->p_upper_notify,
683 psHciContext->p_upper_context, pHwRef,
690 status = phHciNfc_Test_Sequence( psHciContext, pHwRef , error_status,
696 status = phHciNfc_IO_Sequence( psHciContext, pHwRef , error_status,
705 psHciContext->error_status = error_status;
706 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
708 phHciNfc_FSM_Rollback(psHciContext);
709 comp_info.status = psHciContext->error_status ;
710 psHciContext->error_status = NFCSTATUS_SUCCESS;
711 phHciNfc_Notify(psHciContext->p_upper_notify,
712 psHciContext->p_upper_context, pHwRef,
722 phHciNfc_FSM_Rollback(psHciContext);
724 psHciContext, INFO_SEQ );
726 phHciNfc_Notify(psHciContext->p_upper_notify,
727 psHciContext->p_upper_context, pHwRef,
736 psHciContext, pHwRef, phHal_eISO14443_A_PICC, FALSE);
738 phHciNfc_FSM_Rollback(psHciContext);
748 phHciNfc_FSM_Rollback(psHciContext);
752 psHciContext->p_xchg_info = NULL ;
753 phHciNfc_Notify(psHciContext->p_upper_notify,
754 psHciContext->p_upper_context, pHwRef,
764 /* psHciContext->host_rf_type = phHal_eUnknown_DevType; */
766 psHciContext, INFO_SEQ );
767 psHciContext->p_target_info = NULL;
768 psHciContext->hci_state.cur_state = hciState_Select;
769 phHciNfc_FSM_Rollback(psHciContext);
771 phHciNfc_Notify(psHciContext->p_upper_notify,
772 psHciContext->p_upper_context, pHwRef,
781 /* psHciContext->host_rf_type = phHal_eUnknown_DevType;
783 psHciContext, INFO_SEQ );
784 psHciContext->p_target_info = NULL;
785 psHciContext->hci_state.cur_state = hciState_Select; */
786 phHciNfc_FSM_Rollback(psHciContext);
788 phHciNfc_Notify(psHciContext->p_upper_notify,
789 psHciContext->p_upper_context, pHwRef,
798 phHciNfc_FSM_Rollback(psHciContext);
802 phHciNfc_Notify(psHciContext->p_upper_notify,
803 psHciContext->p_upper_context, pHwRef,
814 phHciNfc_FSM_Rollback(psHciContext);
816 phHciNfc_Notify(psHciContext->p_upper_notify,
817 psHciContext->p_upper_context, pHwRef,
824 status = phHciNfc_Release_Sequence(psHciContext ,pHwRef);
828 phHciNfc_Release_Lower( psHciContext, pHwRef );
833 phHciNfc_Release_Notify (psHciContext, pHwRef,
843 phHciNfc_FSM_Rollback(psHciContext);
845 psHciContext->error_status = error_status;
846 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
849 psHciContext
850 phHciNfc_Notify(psHciContext->p_upper_notify,
851 psHciContext->p_upper_context, pHwRef,
864 phHciNfc_FSM_Rollback(psHciContext);
870 phHciNfc_Notify(psHciContext->p_upper_notify,
871 psHciContext->p_upper_context, pHwRef,
876 psHciContext->error_status = error_status;
877 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
880 psHciContext->error_status = NFCSTATUS_SUCCESS;
891 phHciNfc_sContext_t *psHciContext,
901 psHciContext->hci_state.cur_state );
903 psHciContext->hci_state.next_state );
905 switch(psHciContext->hci_state.next_state)
910 switch (psHciContext->hci_state.cur_state)
915 status = phHciNfc_Initialise_Sequence(psHciContext ,pHwRef);
921 status = phHciNfc_Config_Sequence(psHciContext ,pHwRef);
934 status = phHciNfc_FSM_Complete(psHciContext);
936 psHciContext->host_rf_type = phHal_eUnknown_DevType;
937 psHciContext->p_target_info = NULL;
938 psHciContext->p_xchg_info = NULL;
942 phHciNfc_Notify(psHciContext->p_upper_notify,
943 psHciContext->p_upper_context, pHwRef,
958 status = phHciNfc_Release_Sequence(psHciContext ,pHwRef);
963 status = phHciNfc_Config_Sequence(psHciContext ,pHwRef);
969 status = phHciNfc_Info_Sequence( psHciContext, pHwRef );
975 status = phHciNfc_Connect_Sequence( psHciContext, pHwRef );
981 psHciContext, pHwRef );
989 phHciNfc_FSM_Rollback(psHciContext);
993 phHciNfc_Notify(psHciContext->p_upper_notify,
994 psHciContext->p_upper_context, pHwRef,
1001 status = phHciNfc_Disconnect_Sequence( psHciContext, pHwRef );
1006 status = phHciNfc_Test_Sequence( psHciContext, pHwRef , status, NULL, 0 );
1011 status = phHciNfc_IO_Sequence( psHciContext, pHwRef , status, NULL, 0 );
1031 phHciNfc_sContext_t *psHciContext,
1040 switch(psHciContext->hci_seq)
1044 status = phHciNfc_Admin_Initialise( psHciContext,pHwRef );
1048 if( hciMode_Session == psHciContext->hci_mode)
1055 psHciContext, INFO_SEQ );
1059 psHciContext->hci_seq = PL_STOP_SEQ;
1063 psHciContext->hci_seq = HCI_END_SEQ;
1071 psHciContext->hci_seq = LINK_MGMT_INIT_SEQ;
1078 status = phHciNfc_LinkMgmt_Initialise( psHciContext,pHwRef );
1081 psHciContext->hci_seq = IDENTITY_INIT_SEQ;
1087 status = phHciNfc_IDMgmt_Initialise( psHciContext,pHwRef );
1090 psHciContext->hci_seq = DEV_INIT_SEQ;
1096 status = phHciNfc_DevMgmt_Initialise( psHciContext,pHwRef );
1099 if (HCI_SELF_TEST != psHciContext->init_mode)
1101 psHciContext->hci_seq = PL_INIT_SEQ;
1109 psHciContext, INFO_SEQ );
1113 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1117 psHciContext->hci_seq = HCI_END_SEQ;
1122 psHciContext->hci_seq = HCI_END_SEQ;
1132 status = phHciNfc_PollLoop_Initialise( psHciContext,pHwRef );
1138 psHciContext, RESET_SEQ );
1139 psHciContext->hci_seq = READER_MGMT_INIT_SEQ;
1145 status = phHciNfc_ReaderMgmt_Initialise( psHciContext,pHwRef );
1151 psHciContext, RESET_SEQ );
1152 psHciContext->hci_seq = EMULATION_INIT_SEQ;
1158 status = phHciNfc_EmuMgmt_Initialise( psHciContext,pHwRef );
1162 psHciContext->hci_seq = ADMIN_SESSION_SEQ;
1164 psHciContext->hci_seq = HCI_END_SEQ;
1172 status = phHciNfc_Admin_Initialise( psHciContext,pHwRef );
1175 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1182 psHciContext, pHwRef );
1186 psHciContext->hci_seq = READER_SW_AUTO_SEQ;
1188 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1200 psHciContext, HCI_READER_A_ENABLE,
1204 status = phHciNfc_ReaderA_Auto_Activate( psHciContext,
1208 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1217 status = phHciNfc_IDMgmt_Info_Sequence( psHciContext,pHwRef );
1220 if ((HCI_SELF_TEST != psHciContext->init_mode)
1222 && (HCI_CUSTOM_INIT != psHciContext->init_mode))
1227 psHciContext, INFO_SEQ );
1231 psHciContext->hci_seq = EMULATION_SWP_SEQ;
1236 psHciContext->hci_seq = HCI_END_SEQ;
1243 status = phHciNfc_EmuMgmt_Initialise( psHciContext,pHwRef );
1246 psHciContext->hci_seq = HCI_END_SEQ;
1253 if (HCI_SELF_TEST == psHciContext->init_mode )
1255 psHciContext->hci_state.next_state
1258 status = phHciNfc_FSM_Complete ( psHciContext );
1260 phHciNfc_Uicc_Connectivity( psHciContext, pHwRef );
1269 phHciNfc_Notify(psHciContext->p_upper_notify,
1270 psHciContext->p_upper_context, pHwRef,
1276 pphNfcIF_Notification_CB_t p_upper_notify = psHciContext->p_upper_notify;
1277 void *pcontext = psHciContext->p_upper_context;
1281 phHciNfc_Release_Lower( psHciContext, pHwRef );
1282 phHciNfc_Release_Resources( &psHciContext );
1301 phHciNfc_sContext_t *psHciContext,
1307 switch(psHciContext->hci_seq)
1312 psHciContext, pHwRef );
1316 psHciContext, REL_SEQ );
1317 psHciContext->hci_seq = EMULATION_REL_SEQ;
1324 status = phHciNfc_EmuMgmt_Release( psHciContext,pHwRef );
1328 psHciContext, REL_SEQ );
1329 psHciContext
1336 status = phHciNfc_DevMgmt_Release( psHciContext, pHwRef );
1339 psHciContext->hci_seq = HCI_END_SEQ;
1346 status = phHciNfc_ReaderMgmt_Release( psHciContext,pHwRef );
1349 psHciContext->hci_seq = PL_REL_SEQ;
1356 status = phHciNfc_PollLoop_Release( psHciContext,pHwRef );
1359 psHciContext->hci_seq = IDENTITY_REL_SEQ;
1366 status = phHciNfc_IDMgmt_Release( psHciContext,pHwRef );
1369 psHciContext->hci_seq = LINK_MGMT_REL_SEQ;
1376 status = phHciNfc_LinkMgmt_Release( psHciContext,pHwRef );
1379 psHciContext->hci_seq = ADMIN_REL_SEQ;
1387 status = phHciNfc_Admin_Release( psHciContext,pHwRef, phHciNfc_TerminalHostID );
1390 psHciContext->hci_seq = DEV_REL_SEQ;
1398 psHciContext->p_upper_notify;
1400 &(psHciContext->lower_interface);
1402 psHciContext->p_upper_context;
1409 phHciNfc_Release_Resources( &psHciContext );
1420 /* psHciContext->hci_seq = HCI_END_SEQ; */
1432 phHciNfc_sContext_t *psHciContext,
1439 switch(psHciContext->config_type)
1443 status = phHciNfc_PollLoop_Sequence( psHciContext, pHwRef );
1448 status = phHciNfc_SmartMx_Mode_Sequence( psHciContext, pHwRef );
1454 if(TARGET_GENERAL_SEQ == psHciContext->hci_seq)
1456 status = phHciNfc_NfcIP_SetATRInfo( psHciContext,
1458 psHciContext->p_config_params);
1462 phHciNfc_FSM_Rollback ( psHciContext );
1466 psHciContext->hci_seq = HCI_END_SEQ;
1471 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
1475 phHciNfc_FSM_Rollback(psHciContext);
1479 psHciContext->error_status = NFCSTATUS_SUCCESS;
1480 phHciNfc_Notify(psHciContext->p_upper_notify,
1481 psHciContext->p_upper_context, pHwRef,
1493 phHciNfc_FSM_Rollback(psHciContext);
1496 ((SMX_WI_CFG == psHciContext->config_type)?
1500 phHciNfc_Notify(psHciContext->p_upper_notify,
1501 psHciContext->p_upper_context, pHwRef,
1515 psHciContext->p_config_params;
1522 status = phHciNfc_Uicc_Connect_Status(psHciContext,pHwRef);
1535 status = phHciNfc_EmulationCfg_Sequence( psHciContext, pHwRef );
1551 phHciNfc_sContext_t *psHciContext,
1557 psHciContext->p_config_params;
1562 switch(psHciContext->hci_seq)
1566 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1571 psHciContext->hci_seq = TARGET_SPEED_SEQ;
1573 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1575 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1577 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1592 phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_TARGET,
1597 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1599 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1601 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1612 phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_INITIATOR,
1617 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1619 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1630 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1634 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1658 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1665 psHciContext->hci_seq = READER_ENABLE_SEQ;
1669 /* psHciContext->hci_seq = READER_DISABLE_SEQ; */
1670 psHciContext->hci_seq = HCI_END_SEQ;
1680 psHciContext, pHwRef );
1683 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
1684 psHciContext->hci_seq = HCI_END_SEQ;
1692 psHciContext, pHwRef );
1699 psHciContext->hci_seq = PL_DURATION_SEQ;
1704 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1706 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1708 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1710 /* psHciContext->hci_seq = HCI_END_SEQ; */
1719 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
1722 /* status = phHciNfc_FSM_Complete ( psHciContext );*/
1723 phHciNfc_FSM_Rollback ( psHciContext );
1729 phHciNfc_Notify(psHciContext->p_upper_notify,
1730 psHciContext->p_upper_context, pHwRef,
1736 phHciNfc_Notify(psHciContext->p_upper_notify,
1737 psHciContext->p_upper_context, pHwRef,
1746 /* psHciContext->hci_seq = HCI_END_SEQ; */
1758 phHciNfc_sContext_t *psHciContext,
1768 psHciContext->p_config_params;
1779 psHciContext->config_type = NFC_CE_A_CFG;
1780 psHciContext->p_ce_a_info)
1787 psHciContext->config_type = NFC_CE_B_CFG;
1788 if (NULL == psHciContext->p_ce_b_info)
1807 switch(psHciContext->hci_seq)
1814 status = phHciNfc_Admin_CE_Init(psHciContext, pHwRef, ce_gate);
1823 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
1824 /* psHciContext->hci_seq = HCI_END_SEQ; */
1832 status = phHciNfc_Emulation_Cfg(psHciContext, pHwRef,
1833 psHciContext->config_type);
1836 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
1838 if(UICC_SWP_CFG == psHciContext->config_type)
1840 psHciContext->hci_seq = ADMIN_REL_SEQ;
1845 psHciContext->hci_seq = HCI_END_SEQ;
1857 status = phHciNfc_Admin_Release( psHciContext,pHwRef, phHciNfc_UICCHostID );
1860 psHciContext->hci_seq = HCI_END_SEQ;
1861 if (UICC_SWP_CFG == psHciContext->config_type)
1863 (void)phHciNfc_SWP_Update_Sequence(psHciContext,
1875 phHciNfc_FSM_Rollback(psHciContext);
1880 phHciNfc_Notify(psHciContext->p_upper_notify,
1881 psHciContext->p_upper_context, pHwRef,
1887 /* psHciContext->hci_seq = HCI_END_SEQ; */
1903 phHciNfc_sContext_t *psHciContext,
1909 psHciContext->p_config_params;
1914 switch(psHciContext->hci_seq)
1919 psHciContext, pHwRef );
1922 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
1923 /* psHciContext->hci_seq = HCI_END_SEQ; */
1931 psHciContext, pHwRef,psHciContext->smx_mode );
1934 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1935 /* psHciContext->hci_seq = HCI_END_SEQ; */
1943 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1947 psHciContext->hci_seq = READER_ENABLE_SEQ;
1956 psHciContext, pHwRef );
1959 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
1960 psHciContext->hci_seq = HCI_END_SEQ;
1967 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
1970 /* status = phHciNfc_FSM_Complete ( psHciContext );*/
1971 phHciNfc_FSM_Rollback ( psHciContext );
1972 if( hciState_Disconnect == psHciContext->hci_state.cur_state)
1974 psHciContext->host_rf_type = phHal_eUnknown_DevType;
1975 psHciContext->p_target_info = NULL;
1976 psHciContext->p_xchg_info = NULL;
1983 phHciNfc_Notify(psHciContext->p_upper_notify,
1984 psHciContext->p_upper_context, pHwRef,
1990 phHciNfc_Notify(psHciContext->p_upper_notify,
1991 psHciContext->p_upper_context, pHwRef,
2000 /* psHciContext->hci_seq = HCI_END_SEQ; */
2012 phHciNfc_sContext_t *psHciContext,
2020 if( NULL != psHciContext->p_target_info )
2023 target_type = psHciContext->p_target_info->RemDevType;
2024 switch(psHciContext->hci_seq)
2029 status = phHciNfc_FSM_Complete ( psHciContext );
2034 phHciNfc_Notify(psHciContext->p_upper_notify,
2035 psHciContext->p_upper_context, pHwRef,
2042 phHciNfc_FSM_Rollback ( psHciContext );
2043 phHciNfc_Notify(psHciContext->p_upper_notify,
2044 psHciContext->p_upper_context, pHwRef,
2072 status = phHciNfc_ReaderMgmt_Info_Sequence( psHciContext, pHwRef );
2075 psHciContext->hci_seq = HCI_END_SEQ;
2085 status = phHciNfc_FSM_Complete ( psHciContext );
2090 /* psHciContext->host_rf_type = phHal_eInvalidRFType;*/
2092 phHciNfc_Notify(psHciContext->p_upper_notify,
2093 psHciContext->p_upper_context, pHwRef,
2100 /* phHciNfc_FSM_Rollback ( psHciContext ); */
2101 phHciNfc_Notify(psHciContext->p_upper_notify,
2102 psHciContext->p_upper_context, pHwRef,
2112 /* psHciContext->hci_seq = HCI_END_SEQ; */
2124 phHciNfc_sContext_t *psHciContext,
2133 if( NULL != psHciContext->p_target_info )
2136 target_type = psHciContext->p_target_info->RemDevType;
2137 switch(psHciContext->hci_seq)
2142 psHciContext, pHwRef, target_type );
2143 psHciContext->hci_seq = READER_DESELECT_SEQ;
2152 re_poll = (uint8_t) ( NULL != psHciContext->p_config_params )?
2153 *((uint8_t *)psHciContext->p_config_params):FALSE;
2155 psHciContext, pHwRef, target_type, re_poll);
2158 psHciContext->hci_seq = HCI_END_SEQ;
2159 psHciContext->p_config_params = NULL;
2166 status = phHciNfc_FSM_Complete ( psHciContext );
2171 psHciContext->host_rf_type = phHal_eUnknown_DevType;
2172 psHciContext->p_target_info = NULL;
2173 psHciContext->p_xchg_info = NULL;
2175 phHciNfc_Notify(psHciContext->p_upper_notify,
2176 psHciContext->p_upper_context, pHwRef,
2183 /* phHciNfc_FSM_Rollback ( psHciContext ); */
2184 phHciNfc_Notify(psHciContext->p_upper_notify,
2185 psHciContext->p_upper_context, pHwRef,
2196 /* psHciContext->hci_seq = HCI_END_SEQ; */
2209 phHciNfc_sContext_t *psHciContext,
2215 pphNfcIF_Notification_CB_t p_upper_notify = psHciContext->p_upper_notify;
2216 void *pcontext = psHciContext->p_upper_context;
2220 phHciNfc_FSM_Rollback(psHciContext);
2222 switch (psHciContext->host_rf_type)
2236 if(ZERO != psHciContext->rx_index)
2240 &psHciContext->recv_buffer[psHciContext->rx_index];
2242 psHciContext->rx_total - psHciContext->rx_index;
2251 psHciContext->p_xchg_info = NULL ;
2261 &psHciContext->recv_buffer[psHciContext->rx_index];
2263 psHciContext->rx_total - psHciContext->rx_index;
2266 psHciContext->p_xchg_info = NULL ;
2298 phHciNfc_sContext_t *psHciContext,
2305 psHciContext->host_rf_type);
2306 switch (psHciContext->host_rf_type)
2326 status = phHciNfc_ReaderMgmt_Info_Sequence( psHciContext, pHwRef );
2333 status = phHciNfc_NfcIP_Info_Sequence( psHciContext, pHwRef );
2352 phHciNfc_sContext_t *psHciContext,
2364 status = phHciNfc_FSM_Complete ( psHciContext );
2377 psHciContext, &test_result );
2380 phHciNfc_Notify(psHciContext->p_upper_notify,
2381 psHciContext->p_upper_context, pHwRef,
2388 phHciNfc_FSM_Rollback ( psHciContext );
2389 phHciNfc_Notify(psHciContext->p_upper_notify,
2390 psHciContext->p_upper_context, pHwRef,
2401 phHciNfc_sContext_t *psHciContext,
2415 phHciNfc_FSM_Rollback ( psHciContext );
2418 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
2421 phHciNfc_Notify(psHciContext->p_upper_notify,
2422 psHciContext->p_upper_context, pHwRef,
2428 phHciNfc_Notify(psHciContext->p_upper_notify,
2429 psHciContext->p_upper_context, pHwRef,
2442 phHciNfc_sContext_t *psHciContext,