/external/libnfc-nci/src/nfc/tags/ |
D | rw_main.c | 37 tRW_CB rw_cb; variable 42 memset (&rw_cb, 0, sizeof (tRW_CB)); in rw_init() 43 rw_cb.trace_level = NFC_INITIAL_TRACE_LEVEL; in rw_init() 62 memset (&rw_cb.stats, 0, sizeof (tRW_STATS)); in rw_main_reset_stats() 65 rw_cb.stats.start_tick = GKI_get_tick_count (); in rw_main_reset_stats() 79 rw_cb.stats.bytes_sent+=num_bytes; in rw_main_update_tx_stats() 80 rw_cb.stats.num_ops++; in rw_main_update_tx_stats() 83 rw_cb.stats.num_retries++; in rw_main_update_tx_stats() 97 rw_cb.stats.num_fail++; in rw_main_update_fail_stats() 111 rw_cb.stats.num_crc++; in rw_main_update_crc_error_stats() [all …]
|
D | rw_i93.c | 103 tRW_I93_CB *p_i93 = &rw_cb.tcb.i93; in rw_i93_get_product_version() 209 tRW_I93_CB *p_i93 = &rw_cb.tcb.i93; in rw_i93_process_sys_info() 320 tRW_I93_CB *p_i93 = &rw_cb.tcb.i93; in rw_i93_check_sys_info_prot_ext() 350 tRW_I93_CB *p_i93 = &rw_cb.tcb.i93; in rw_i93_send_to_upper() 377 rw_cb.tcb.i93.sent_cmd = 0; in rw_i93_send_to_upper() 378 (*(rw_cb.p_cback)) (RW_I93_CMD_CMPL_EVT, &rw_data); in rw_i93_send_to_upper() 476 rw_cb.tcb.i93.sent_cmd = 0; in rw_i93_send_to_upper() 479 (*(rw_cb.p_cback)) (event, &rw_data); in rw_i93_send_to_upper() 503 if (rw_cb.tcb.i93.p_retry_cmd) in rw_i93_send_to_lower() 505 GKI_freebuf (rw_cb.tcb.i93.p_retry_cmd); in rw_i93_send_to_lower() [all …]
|
D | rw_t4t.c | 122 nfc_start_quick_timer (&rw_cb.tcb.t4t.timer, NFC_TTYPE_RW_T4T_RESPONSE, in rw_t4t_send_to_lower() 219 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_update_version_details() 309 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_app() 366 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_select_app() 417 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_ccfile() 473 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_create_ndef() 530 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_write_cc() 588 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_write_ndef() 663 if (rw_cb.tcb.t4t.version == T4T_VERSION_2_0) in rw_t4t_select_file() 696 tRW_T4T_CB *p_t4t = &rw_cb.tcb.t4t; in rw_t4t_read_file() [all …]
|
D | rw_t1t.c | 60 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_data_cback() 66 … tT1T_CMD_RSP_INFO *p_cmd_rsp_info = (tT1T_CMD_RSP_INFO *) rw_cb.tcb.t1t.p_cmd_rsp_info; in rw_t1t_data_cback() 105 (*rw_cb.p_cback) (RW_T1T_RAW_FRAME_EVT, (tRW_DATA *) &evt_data); in rw_t1t_data_cback() 158 if (rw_cb.cur_retry) in rw_t1t_data_cback() 166 p_t1t->prev_cmd_rsp_info.pend_retx_rsp = (UINT8) rw_cb.cur_retry; in rw_t1t_data_cback() 169 rw_cb.cur_retry = 0; in rw_t1t_data_cback() 193 (*rw_cb.p_cback) (rw_event, (tRW_DATA *) &evt_data); in rw_t1t_data_cback() 219 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_conn_cback() 289 (*rw_cb.p_cback) (RW_T1T_INTF_ERROR_EVT, (tRW_DATA *) &evt_data); in rw_t1t_conn_cback() 328 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_send_static_cmd() [all …]
|
D | rw_t2t.c | 63 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_proc_data() 69 tT2T_CMD_RSP_INFO *p_cmd_rsp_info = (tT2T_CMD_RSP_INFO *) rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_proc_data() 86 (*rw_cb.p_cback) (RW_T2T_RAW_FRAME_EVT, (tRW_DATA *)&evt_data); in rw_t2t_proc_data() 117 rw_cb.cur_retry = 0; in rw_t2t_proc_data() 224 (*rw_cb.p_cback) (rw_event, (tRW_DATA *) &ndef_data); in rw_t2t_proc_data() 230 (*rw_cb.p_cback) (rw_event, (tRW_DATA *) &evt_data); in rw_t2t_proc_data() 258 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_conn_cback() 333 (*rw_cb.p_cback) (RW_T2T_INTF_ERROR_EVT, (tRW_DATA *) &evt_data); in rw_t2t_conn_cback() 379 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_send_cmd() 404 rw_cb.cur_retry = 0; in rw_t2t_send_cmd() [all …]
|
D | rw_t3t.c | 185 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_check_timeout() 208 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_update_timeout() 230 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_error() 244 else if (rw_cb.cur_retry < RW_MAX_RETRIES) in rw_t3t_process_error() 247 rw_cb.cur_retry++; in rw_t3t_process_error() 249 … RW_TRACE_DEBUG2 ("T3T retransmission attempt %i of %i", rw_cb.cur_retry, RW_MAX_RETRIES); in rw_t3t_process_error() 295 (*(rw_cb.p_cback)) (evt, &evt_data); in rw_t3t_process_error() 301 (*(rw_cb.p_cback)) (RW_T3T_INTF_ERROR_EVT, &evt_data); in rw_t3t_process_error() 331 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_handle_nci_poll_ntf() 342 (*(rw_cb.p_cback)) (RW_T3T_PRESENCE_CHECK_EVT, (tRW_DATA *) &evt_data); in rw_t3t_handle_nci_poll_ntf() [all …]
|
D | rw_t1t_ndef.c | 79 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_rsp() 130 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_info_to_event() 187 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_extract_lock_bytes() 188 tT1T_CMD_RSP_INFO *p_cmd_rsp_info = (tT1T_CMD_RSP_INFO *) rw_cb.tcb.t1t.p_cmd_rsp_info; in rw_t1t_extract_lock_bytes() 257 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_update_tag_state() 305 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_read_locks() 361 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_write_rsp() 384 if (rw_cb.tcb.t1t.hr[0] != T1T_STATIC_HR0 || rw_cb.tcb.t1t.hr[1] >= RW_T1T_HR1_MIN) in rw_t1t_handle_write_rsp() 607 tRW_T1T_CB *p_t1t = &rw_cb.tcb.t1t; in rw_t1t_handle_read_rsp() 629 (*rw_cb.p_cback) (RW_T1T_NDEF_READ_EVT, (tRW_DATA *) &evt_data); in rw_t1t_handle_read_rsp() [all …]
|
D | rw_t2t_ndef.c | 85 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_rsp() 177 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_info_to_event() 227 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_cc_read_rsp() 260 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_ntf_tlv_detect_complete() 296 (*rw_cb.p_cback) (RW_T2T_NDEF_DETECT_EVT, (tRW_DATA *) &ndef_data); in rw_t2t_ntf_tlv_detect_complete() 303 (*rw_cb.p_cback) (RW_T2T_TLV_DETECT_EVT, (tRW_DATA *) &evt_data); in rw_t2t_ntf_tlv_detect_complete() 323 (*rw_cb.p_cback) (RW_T2T_TLV_DETECT_EVT, (tRW_DATA *) &tlv_data); in rw_t2t_ntf_tlv_detect_complete() 344 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_lock_read_rsp() 428 tRW_T2T_CB *p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_tlv_detect_rsp() 438 tT2T_CMD_RSP_INFO *p_cmd_rsp_info = (tT2T_CMD_RSP_INFO *) rw_cb.tcb.t2t.p_cmd_rsp_info; in rw_t2t_handle_tlv_detect_rsp() [all …]
|
D | tags_int.c | 131 if ((xx < T1T_STATIC_OPCODES) || (rw_cb.tcb.t1t.hr[0] != T1T_STATIC_HR0)) in t1t_cmd_to_rsp_info()
|
/external/libnfc-nci/src/nfc/int/ |
D | rw_int.h | 590 NFC_API extern tRW_CB rw_cb; 593 #define rw_cb (*rw_cb_ptr)
|
/external/libnfc-nci/src/include/ |
D | bt_trace.h | 1422 #define RW_TRACE_ERROR0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1423 #define RW_TRACE_ERROR1(m,p1) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1424 #define RW_TRACE_ERROR2(m,p1,p2) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1425 #define RW_TRACE_ERROR3(m,p1,p2,p3) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1426 #define RW_TRACE_ERROR4(m,p1,p2,p3,p4) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1427 #define RW_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1428 #define RW_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_T… 1430 #define RW_TRACE_WARNING0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT… 1431 #define RW_TRACE_WARNING1(m,p1) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT… 1432 #define RW_TRACE_WARNING2(m,p1,p2) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT… [all …]
|