Home
last modified time | relevance | path

Searched refs:nfc_cb (Results 1 – 14 of 14) sorted by relevance

/system/nfc/src/nfc/nfc/
Dnfc_main.cc48 { nfc_cb.max_conn = 1; }
67 tNFC_CB nfc_cb; variable
170 if (nfc_cb.p_resp_cback) { in nfc_main_notify_enable_status()
172 if (nfc_cb.flags & (NFC_FL_RESTARTING | NFC_FL_POWER_CYCLE_NFCC)) { in nfc_main_notify_enable_status()
173 nfc_cb.flags &= ~(NFC_FL_RESTARTING | NFC_FL_POWER_CYCLE_NFCC); in nfc_main_notify_enable_status()
175 nfc_cb.flags |= NFC_FL_POWER_OFF_SLEEP; in nfc_main_notify_enable_status()
177 (*nfc_cb.p_resp_cback)(NFC_NFCC_RESTART_REVT, &evt_data); in nfc_main_notify_enable_status()
179 (*nfc_cb.p_resp_cback)(NFC_ENABLE_REVT, &evt_data); in nfc_main_notify_enable_status()
195 tNFC_CONN_CB* p_cb = &nfc_cb.conn_cb[NFC_RF_CONN_ID]; in nfc_enabled()
218 evt_data.enable.nci_version = nfc_cb.nci_version; in nfc_enabled()
[all …]
Dnfc_task.cc64 if (nfc_cb.timer_queue.p_first == nullptr) { in nfc_start_timer()
79 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer()
84 GKI_add_to_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer()
97 return (GKI_get_remaining_ticks(&nfc_cb.timer_queue, p_tle)); in nfc_remaining_time()
112 GKI_update_timer_list(&nfc_cb.timer_queue, 1); in nfc_process_timer_evt()
114 while ((nfc_cb.timer_queue.p_first) && (!nfc_cb.timer_queue.p_first->ticks)) { in nfc_process_timer_evt()
115 p_tle = nfc_cb.timer_queue.p_first; in nfc_process_timer_evt()
116 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_process_timer_evt()
140 if (nfc_cb.timer_queue.p_first == nullptr) { in nfc_process_timer_evt()
155 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_stop_timer()
[all …]
Dnfc_utils.cc53 if (nfc_cb.conn_cb[xx].conn_id == NFC_ILLEGAL_CONN_ID) { in nfc_alloc_conn_cb()
54 nfc_cb.conn_cb[xx].conn_id = in nfc_alloc_conn_cb()
56 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_alloc_conn_cb()
80 handle = (uint8_t)(p_cb - nfc_cb.conn_cb + 1); in nfc_set_conn_id()
81 nfc_cb.conn_id[conn_id] = handle; in nfc_set_conn_id()
101 if (nfc_cb.conn_cb[xx].id == id) { in nfc_find_conn_cb_by_handle()
102 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_handle()
127 if (nfc_cb.conn_cb[xx].conn_id == NFC_PEND_CONN_ID) { in nfc_find_conn_cb_by_conn_id()
128 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_conn_id()
135 handle = nfc_cb.conn_id[id]; in nfc_find_conn_cb_by_conn_id()
[all …]
Dnfc_ncif.cc79 if (nfc_cb.nci_cmd_window == NCI_MAX_CMD_WINDOW) { in nfc_ncif_update_window()
80 if (nfc_cb.nfc_state != NFC_STATE_W4_HAL_CLOSE) { in nfc_ncif_update_window()
87 nfc_stop_timer(&nfc_cb.nci_wait_rsp_timer); in nfc_ncif_update_window()
89 nfc_cb.p_vsc_cback = nullptr; in nfc_ncif_update_window()
90 nfc_cb.nci_cmd_window++; in nfc_ncif_update_window()
115 if (nfc_cb.nfc_state == NFC_STATE_CORE_INIT) { in nfc_ncif_cmd_timeout()
131 nfc_cb.flags &= ~NFC_FL_DEACTIVATING; in nfc_wait_2_deactivate_timeout()
132 nci_snd_deactivate_cmd((uint8_t)nfc_cb.deactivate_timer.param); in nfc_wait_2_deactivate_timeout()
160 if (nfc_cb.nfc_state != NFC_STATE_OPEN) { in nfc_ncif_send_data()
161 if (nfc_cb.nfc_state == NFC_STATE_CLOSING) { in nfc_ncif_send_data()
[all …]
Dnfc_ee.cc80 if (nfc_cb.nci_version != NCI_VERSION_2_0) in NFC_NfceeModeSet()
83 if (nfc_cb.flags & NFC_FL_WAIT_MODE_SET_NTF) in NFC_NfceeModeSet()
90 nfc_cb.flags |= NFC_FL_WAIT_MODE_SET_NTF; in NFC_NfceeModeSet()
91 nfc_start_timer(&nfc_cb.nci_mode_set_ntf_timer, in NFC_NfceeModeSet()
Dnfc_vs.cc61 if (nfc_cb.p_vs_cb[i] == nullptr) { in NFC_RegVSCback()
62 nfc_cb.p_vs_cb[i] = p_cback; in NFC_RegVSCback()
70 if (nfc_cb.p_vs_cb[i] == p_cback) { in NFC_RegVSCback()
71 nfc_cb.p_vs_cb[i] = nullptr; in NFC_RegVSCback()
/system/nfc/src/nfc/nci/
Dnci_hrcv.cc57 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_core_rsp()
172 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_rf_management_rsp()
265 nfc_cb.deact_reason = *(pp + 1); in nci_proc_rf_management_ntf()
333 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp()
336 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_ee_management_rsp()
372 if (nfc_cb.nci_version != NCI_VERSION_2_0 || *pp != NCI_STATUS_OK) { in nci_proc_ee_management_rsp()
373 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_rsp()
412 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf()
415 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_ee_management_ntf()
496 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_ntf()
[all …]
Dnci_hmsgs.cc89 if (nfc_cb.nci_version == NCI_VERSION_2_0) { in nci_snd_core_init()
439 nfc_cb.reassembly = true; in nci_snd_deactivate_cmd()
/system/nfc/src/fuzzers/nci/
Dhal.cc24 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/
Dnfc_int.h118 if (max > nfc_cb.max_conn) max = nfc_cb.max_conn; \
238 extern tNFC_CB nfc_cb;
/system/nfc/src/include/
Dnfc_target.h657 nfc_cb.p_hal->write((p)->len, (uint8_t*)((p) + 1) + (p)->offset); \
/system/nfc/src/nfa/ee/
Dnfa_ee_api.cc680 (nfc_cb.isScbrSupported == false)) { in NFA_EeAddSystemCodeRouting()
728 (nfc_cb.isScbrSupported == false)) { in NFA_EeRemoveSystemCodeRouting()
Dnfa_ee_act.cc388 if (nfc_cb.nci_interfaces & (1 << NCI_INTERFACE_NFC_DEP)) { in nfa_ee_add_proto_route_to_ecb()
/system/nfc/src/nfa/dm/
Dnfa_dm_act.cc954 if (!(nfc_cb.nci_interfaces & (1 << NCI_INTERFACE_NFC_DEP))) { in nfa_dm_start_polling()