Searched refs:nfc_cb (Results 1 – 15 of 15) sorted by relevance
/system/nfc/src/nfc/nfc/ |
D | nfc_main.cc | 44 { nfc_cb.max_conn = 1; } 61 tNFC_CB nfc_cb; variable 164 if (nfc_cb.p_resp_cback) { in nfc_main_notify_enable_status() 166 if (nfc_cb.flags & (NFC_FL_RESTARTING | NFC_FL_POWER_CYCLE_NFCC)) { in nfc_main_notify_enable_status() 167 nfc_cb.flags &= ~(NFC_FL_RESTARTING | NFC_FL_POWER_CYCLE_NFCC); in nfc_main_notify_enable_status() 169 nfc_cb.flags |= NFC_FL_POWER_OFF_SLEEP; in nfc_main_notify_enable_status() 171 (*nfc_cb.p_resp_cback)(NFC_NFCC_RESTART_REVT, &evt_data); in nfc_main_notify_enable_status() 173 (*nfc_cb.p_resp_cback)(NFC_ENABLE_REVT, &evt_data); in nfc_main_notify_enable_status() 189 tNFC_CONN_CB* p_cb = &nfc_cb.conn_cb[NFC_RF_CONN_ID]; in nfc_enabled() 212 evt_data.enable.nci_version = nfc_cb.nci_version; in nfc_enabled() [all …]
|
D | nfc_task.cc | 57 if (GKI_timer_list_empty(&nfc_cb.timer_queue)) { in nfc_start_timer() 72 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 77 GKI_add_to_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 90 return (GKI_get_remaining_ticks(&nfc_cb.timer_queue, p_tle)); in nfc_remaining_time() 105 GKI_update_timer_list(&nfc_cb.timer_queue, 1); in nfc_process_timer_evt() 107 while (!GKI_timer_list_empty(&nfc_cb.timer_queue) && in nfc_process_timer_evt() 108 !GKI_timer_list_first(&nfc_cb.timer_queue)->ticks) { in nfc_process_timer_evt() 109 p_tle = GKI_timer_list_first(&nfc_cb.timer_queue); in nfc_process_timer_evt() 110 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_process_timer_evt() 134 if (GKI_timer_list_empty(&nfc_cb.timer_queue)) { in nfc_process_timer_evt() [all …]
|
D | nfc_utils.cc | 51 if (nfc_cb.conn_cb[xx].conn_id == NFC_ILLEGAL_CONN_ID) { in nfc_alloc_conn_cb() 52 nfc_cb.conn_cb[xx].conn_id = in nfc_alloc_conn_cb() 54 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_alloc_conn_cb() 78 handle = (uint8_t)(p_cb - nfc_cb.conn_cb + 1); in nfc_set_conn_id() 79 nfc_cb.conn_id[conn_id] = handle; in nfc_set_conn_id() 99 if (nfc_cb.conn_cb[xx].id == id) { in nfc_find_conn_cb_by_handle() 100 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_handle() 125 if (nfc_cb.conn_cb[xx].conn_id == NFC_PEND_CONN_ID) { in nfc_find_conn_cb_by_conn_id() 126 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_conn_id() 133 handle = nfc_cb.conn_id[id]; in nfc_find_conn_cb_by_conn_id() [all …]
|
D | nfc_ncif.cc | 78 if (nfc_cb.nci_cmd_window == NCI_MAX_CMD_WINDOW) { in nfc_ncif_update_window() 79 if (nfc_cb.nfc_state != NFC_STATE_W4_HAL_CLOSE) { in nfc_ncif_update_window() 86 nfc_stop_timer(&nfc_cb.nci_wait_rsp_timer); in nfc_ncif_update_window() 88 nfc_cb.p_vsc_cback = nullptr; in nfc_ncif_update_window() 89 nfc_cb.nci_cmd_window++; in nfc_ncif_update_window() 112 if (nfc_cb.nfc_state == NFC_STATE_CORE_INIT) { in nfc_ncif_cmd_timeout() 128 nfc_cb.flags &= ~NFC_FL_DEACTIVATING; in nfc_wait_2_deactivate_timeout() 129 nci_snd_deactivate_cmd((uint8_t)nfc_cb.deactivate_timer.param); in nfc_wait_2_deactivate_timeout() 157 if (nfc_cb.nfc_state != NFC_STATE_OPEN) { in nfc_ncif_send_data() 158 if (nfc_cb.nfc_state == NFC_STATE_CLOSING) { in nfc_ncif_send_data() [all …]
|
D | nfc_ee.cc | 78 if (nfc_cb.nci_version < NCI_VERSION_2_0) in NFC_NfceeModeSet() 81 if (nfc_cb.flags & NFC_FL_WAIT_MODE_SET_NTF) in NFC_NfceeModeSet() 88 nfc_cb.flags |= NFC_FL_WAIT_MODE_SET_NTF; in NFC_NfceeModeSet() 89 nfc_start_timer(&nfc_cb.nci_mode_set_ntf_timer, in NFC_NfceeModeSet()
|
D | nfc_vs.cc | 59 if (nfc_cb.p_vs_cb[i] == nullptr) { in NFC_RegVSCback() 60 nfc_cb.p_vs_cb[i] = p_cback; in NFC_RegVSCback() 68 if (nfc_cb.p_vs_cb[i] == p_cback) { in NFC_RegVSCback() 69 nfc_cb.p_vs_cb[i] = nullptr; in NFC_RegVSCback()
|
/system/nfc/src/nfc/nci/ |
D | nci_hrcv.cc | 53 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_core_rsp() 166 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_rf_management_rsp() 258 nfc_cb.deact_reason = *(pp + 1); in nci_proc_rf_management_ntf() 328 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp() 331 uint8_t* p_old = nfc_cb.last_nfcee_cmd; in nci_proc_ee_management_rsp() 366 if (nfc_cb.nci_version < NCI_VERSION_2_0 || *pp != NCI_STATUS_OK) { in nci_proc_ee_management_rsp() 367 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_rsp() 406 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf() 409 uint8_t* p_old = nfc_cb.last_nfcee_cmd; in nci_proc_ee_management_ntf() 489 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_ntf() [all …]
|
D | nci_hmsgs.cc | 142 if (nfc_cb.nci_version >= NCI_VERSION_2_0) { in nci_snd_core_init() 507 nfc_cb.reassembly = true; in nci_snd_deactivate_cmd()
|
/system/nfc/src/fuzzers/nci/ |
D | hal.cc | 24 if (data_len >= sizeof(nfc_cb.last_hdr)) { in hal_inject_data() 25 memcpy(nfc_cb.last_hdr, p_data, sizeof(nfc_cb.last_hdr)); in hal_inject_data()
|
/system/nfc/src/nfc/include/ |
D | nfc_int.h | 104 if (max > nfc_cb.max_conn) max = nfc_cb.max_conn; \ 226 extern tNFC_CB nfc_cb;
|
/system/nfc/src/adaptation/ |
D | debug_lmrt.cc | 142 int lmrt_get_max_size(void) { return nfc_cb.max_ce_table; } in lmrt_get_max_size()
|
/system/nfc/src/include/ |
D | nfc_target.h | 495 nfc_cb.p_hal->write((p)->len, (uint8_t*)((p) + 1) + (p)->offset); \
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_api.cc | 677 (nfc_cb.isScbrSupported == false)) { in NFA_EeAddSystemCodeRouting() 725 (nfc_cb.isScbrSupported == false)) { in NFA_EeRemoveSystemCodeRouting()
|
D | nfa_ee_act.cc | 411 if (nfc_cb.nci_interfaces & (1 << NCI_INTERFACE_NFC_DEP)) { in nfa_ee_add_proto_route_to_ecb()
|
/system/nfc/src/nfa/dm/ |
D | nfa_dm_act.cc | 931 if (!(nfc_cb.nci_interfaces & (1 << NCI_INTERFACE_NFC_DEP))) { in nfa_dm_start_polling()
|