Searched refs:nfc_cb (Results 1 – 11 of 11) sorted by relevance
/system/nfc/src/nfc/nfc/ |
D | nfc_main.cc | 48 { 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() 211 evt_data.enable.nci_version = nfc_cb.nci_version; in nfc_enabled() [all …]
|
D | nfc_task.cc | 64 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 …]
|
D | nfc_utils.cc | 53 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 …]
|
D | nfc_ncif.cc | 74 if (nfc_cb.nci_cmd_window == NCI_MAX_CMD_WINDOW) { in nfc_ncif_update_window() 75 if (nfc_cb.nfc_state != NFC_STATE_W4_HAL_CLOSE) { in nfc_ncif_update_window() 82 nfc_stop_timer(&nfc_cb.nci_wait_rsp_timer); in nfc_ncif_update_window() 84 nfc_cb.p_vsc_cback = nullptr; in nfc_ncif_update_window() 85 nfc_cb.nci_cmd_window++; in nfc_ncif_update_window() 108 if (nfc_cb.nfc_state == NFC_STATE_CORE_INIT) { in nfc_ncif_cmd_timeout() 127 nfc_cb.flags &= ~NFC_FL_DEACTIVATING; in nfc_wait_2_deactivate_timeout() 128 nci_snd_deactivate_cmd((uint8_t)nfc_cb.deactivate_timer.param); in nfc_wait_2_deactivate_timeout() 156 if (nfc_cb.nfc_state != NFC_STATE_OPEN) { in nfc_ncif_send_data() 157 if (nfc_cb.nfc_state == NFC_STATE_CLOSING) { in nfc_ncif_send_data() [all …]
|
D | nfc_ee.cc | 80 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()
|
D | nfc_vs.cc | 61 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/ |
D | nci_hrcv.cc | 56 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_core_rsp() 171 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_rf_management_rsp() 259 nfc_cb.deact_reason = *(pp + 1); in nci_proc_rf_management_ntf() 319 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp() 322 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_ee_management_rsp() 347 if (nfc_cb.nci_version != NCI_VERSION_2_0 || *pp != NCI_STATUS_OK) { in nci_proc_ee_management_rsp() 348 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_rsp() 383 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf() 386 uint8_t* p_old = nfc_cb.last_cmd; in nci_proc_ee_management_ntf() 440 nfc_cb.flags &= ~NFC_FL_WAIT_MODE_SET_NTF; in nci_proc_ee_management_ntf() [all …]
|
D | nci_hmsgs.cc | 89 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/nfc/include/ |
D | nfc_int.h | 118 if (max > nfc_cb.max_conn) max = nfc_cb.max_conn; \ 238 extern tNFC_CB nfc_cb;
|
/system/nfc/src/include/ |
D | nfc_target.h | 657 nfc_cb.p_hal->write((p)->len, (uint8_t*)((p) + 1) + (p)->offset); \
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_api.cc | 680 (nfc_cb.isScbrSupported == false)) { in NFA_EeAddSystemCodeRouting() 728 (nfc_cb.isScbrSupported == false)) { in NFA_EeRemoveSystemCodeRouting()
|