Searched refs:nfc_cb (Results 1 – 10 of 10) sorted by relevance
/external/libnfc-nci/src/nfc/nfc/ |
D | nfc_main.c | 49 #define NFC_SET_MAX_CONN_DEFAULT() {nfc_cb.max_conn = 1;} 62 tNFC_CB nfc_cb; variable 185 if (nfc_cb.p_resp_cback) in nfc_main_notify_enable_status() 188 if (nfc_cb.flags & (NFC_FL_RESTARTING|NFC_FL_POWER_CYCLE_NFCC)) in nfc_main_notify_enable_status() 190 nfc_cb.flags &= ~(NFC_FL_RESTARTING|NFC_FL_POWER_CYCLE_NFCC); in nfc_main_notify_enable_status() 193 nfc_cb.flags |= NFC_FL_POWER_OFF_SLEEP; in nfc_main_notify_enable_status() 195 (*nfc_cb.p_resp_cback) (NFC_NFCC_RESTART_REVT, &evt_data); in nfc_main_notify_enable_status() 199 (*nfc_cb.p_resp_cback) (NFC_ENABLE_REVT, &evt_data); in nfc_main_notify_enable_status() 218 tNFC_CONN_CB *p_cb = &nfc_cb.conn_cb[NFC_RF_CONN_ID]; in nfc_enabled() 244 nfc_cb.vs_interface[yy++] = *p; in nfc_enabled() [all …]
|
D | nfc_task.c | 64 if (nfc_cb.timer_queue.p_first == NULL) in nfc_start_timer() 83 GKI_remove_from_timer_list (&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 88 GKI_add_to_timer_list (&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 102 return (GKI_get_remaining_ticks (&nfc_cb.timer_queue, p_tle)); in nfc_remaining_time() 118 GKI_update_timer_list (&nfc_cb.timer_queue, 1); in nfc_process_timer_evt() 120 while ((nfc_cb.timer_queue.p_first) && (!nfc_cb.timer_queue.p_first->ticks)) in nfc_process_timer_evt() 122 p_tle = nfc_cb.timer_queue.p_first; in nfc_process_timer_evt() 123 GKI_remove_from_timer_list (&nfc_cb.timer_queue, p_tle); in nfc_process_timer_evt() 142 if (nfc_cb.timer_queue.p_first == NULL) in nfc_process_timer_evt() 159 GKI_remove_from_timer_list (&nfc_cb.timer_queue, p_tle); in nfc_stop_timer() [all …]
|
D | nfc_utils.c | 53 if (nfc_cb.conn_cb[xx].conn_id == NFC_ILLEGAL_CONN_ID) in nfc_alloc_conn_cb() 55 nfc_cb.conn_cb[xx].conn_id = NFC_PEND_CONN_ID; /* to indicate this cb is used */ in nfc_alloc_conn_cb() 56 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_alloc_conn_cb() 82 handle = (UINT8) (p_cb - nfc_cb.conn_cb + 1); in nfc_set_conn_id() 83 nfc_cb.conn_id[conn_id] = handle; in nfc_set_conn_id() 104 if (nfc_cb.conn_cb[xx].id == id) in nfc_find_conn_cb_by_handle() 106 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_handle() 134 if (nfc_cb.conn_cb[xx].conn_id == NFC_PEND_CONN_ID) in nfc_find_conn_cb_by_conn_id() 136 p_conn_cb = &nfc_cb.conn_cb[xx]; in nfc_find_conn_cb_by_conn_id() 146 handle = nfc_cb.conn_id[id]; in nfc_find_conn_cb_by_conn_id() [all …]
|
D | nfc_ncif.c | 65 if (nfc_cb.nci_cmd_window == NCI_MAX_CMD_WINDOW) in nfc_ncif_update_window() 67 if (nfc_cb.nfc_state != NFC_STATE_W4_HAL_CLOSE) in nfc_ncif_update_window() 75 nfc_stop_timer (&nfc_cb.nci_wait_rsp_timer); in nfc_ncif_update_window() 77 nfc_cb.p_vsc_cback = NULL; in nfc_ncif_update_window() 78 nfc_cb.nci_cmd_window++; in nfc_ncif_update_window() 102 if (nfc_cb.nfc_state == NFC_STATE_CORE_INIT) in nfc_ncif_cmd_timeout() 123 nfc_cb.flags &= ~NFC_FL_DEACTIVATING; in nfc_wait_2_deactivate_timeout() 124 nci_snd_deactivate_cmd ((UINT8) ((TIMER_PARAM_TYPE) nfc_cb.deactivate_timer.param)); in nfc_wait_2_deactivate_timeout() 153 if (nfc_cb.nfc_state != NFC_STATE_OPEN) in nfc_ncif_send_data() 155 if (nfc_cb.nfc_state == NFC_STATE_CLOSING) in nfc_ncif_send_data() [all …]
|
D | nfc_vs.c | 63 if (nfc_cb.p_vs_cb[i] == NULL) in NFC_RegVSCback() 65 nfc_cb.p_vs_cb[i] = p_cback; in NFC_RegVSCback() 76 if (nfc_cb.p_vs_cb[i] == p_cback) in NFC_RegVSCback() 78 nfc_cb.p_vs_cb[i] = NULL; in NFC_RegVSCback()
|
/external/libnfc-nci/src/nfc/nci/ |
D | nci_hrcv.c | 51 UINT8 *p_old = nfc_cb.last_cmd; in nci_proc_core_rsp() 161 UINT8 *p_old = nfc_cb.last_cmd; in nci_proc_rf_management_rsp() 308 tNFC_RESPONSE_CBACK *p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp() 314 UINT8 *p_old = nfc_cb.last_cmd; in nci_proc_ee_management_rsp() 368 tNFC_RESPONSE_CBACK *p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf() 451 tNFC_VS_CBACK *p_cback = (tNFC_VS_CBACK *)nfc_cb.p_vsc_cback; in nci_proc_prop_rsp() 488 if (nfc_cb.p_vs_cb[i]) in nci_proc_prop_ntf() 490 (*nfc_cb.p_vs_cb[i]) ((tNFC_VS_EVT) (NCI_NTF_BIT|op_code), p_msg->len, p_evt); in nci_proc_prop_ntf()
|
D | nci_hmsgs.c | 420 nfc_cb.reassembly = TRUE; in nci_snd_deactivate_cmd()
|
/external/libnfc-nci/src/nfc/int/ |
D | nfc_int.h | 111 #define NFC_CHECK_MAX_CONN() {if (max > nfc_cb.max_conn) max = nfc_cb.max_conn;} 212 NFC_API extern tNFC_CB nfc_cb; 215 #define nfc_cb (*nfc_cb_ptr) macro
|
/external/libnfc-nci/src/include/ |
D | nfc_target.h | 686 #define HAL_WRITE(p) {nfc_cb.p_hal->write(p->len, (UINT8 *)(p+1) + p->offset); GKI_freebuf(p);}
|
D | bt_trace.h | 1342 #define NFC_TRACE_ERROR0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1343 #define NFC_TRACE_ERROR1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1344 #define NFC_TRACE_ERROR2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1345 #define NFC_TRACE_ERROR3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1346 #define NFC_TRACE_ERROR4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1347 #define NFC_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1348 #define NFC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT… 1350 #define NFC_TRACE_WARNING0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) … 1351 #define NFC_TRACE_WARNING1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) … 1352 #define NFC_TRACE_WARNING2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) … [all …]
|