Home
last modified time | relevance | path

Searched refs:p_t2t (Results 1 – 4 of 4) sorted by relevance

/system/nfc/src/nfc/tags/
Drw_t2t_ndef.cc92 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_handle_rsp() local
94 if (p_t2t->substate == RW_T2T_SUBSTATE_WAIT_READ_CC) { in rw_t2t_handle_rsp()
95 p_t2t->b_read_hdr = true; in rw_t2t_handle_rsp()
96 memcpy(p_t2t->tag_hdr, p_data, T2T_READ_DATA_LEN); in rw_t2t_handle_rsp()
99 switch (p_t2t->state) { in rw_t2t_handle_rsp()
101 if (p_t2t->tlv_detect == TAG_LOCK_CTRL_TLV) { in rw_t2t_handle_rsp()
102 if (p_t2t->substate == RW_T2T_SUBSTATE_WAIT_READ_CC) { in rw_t2t_handle_rsp()
104 } else if (p_t2t->substate == RW_T2T_SUBSTATE_WAIT_READ_LOCKS) { in rw_t2t_handle_rsp()
109 } else if (p_t2t->tlv_detect == TAG_NDEF_TLV) { in rw_t2t_handle_rsp()
110 if (p_t2t->substate == RW_T2T_SUBSTATE_WAIT_READ_CC) { in rw_t2t_handle_rsp()
[all …]
Drw_t2t.cc65 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in rw_t2t_proc_data() local
74 uint8_t begin_state = p_t2t->state; in rw_t2t_proc_data()
76 if ((p_t2t->state == RW_T2T_STATE_IDLE) || (p_cmd_rsp_info == nullptr)) { in rw_t2t_proc_data()
92 nfc_stop_quick_timer(&p_t2t->t2_timer); in rw_t2t_proc_data()
100 (p_t2t->substate != RW_T2T_SUBSTATE_WAIT_SELECT_SECTOR)) || in rw_t2t_proc_data()
101 (p_t2t->state == RW_T2T_STATE_HALT)) { in rw_t2t_proc_data()
103 rw_t2t_get_state_name(p_t2t->state).c_str()); in rw_t2t_proc_data()
104 if (p_t2t->state != RW_T2T_STATE_HALT) { in rw_t2t_proc_data()
107 p_t2t->check_tag_halt = false; in rw_t2t_proc_data()
119 p_t2t->state, conn_id, p_pkt->len, *p); in rw_t2t_proc_data()
[all …]
/system/nfc/src/nfa/rw/
Dnfa_rw_main.cc91 tRW_T2T_CB* p_t2t; in nfa_rw_sys_disable() local
107 p_t2t = &rw_cb.tcb.t2t; in nfa_rw_sys_disable()
108 if (p_t2t->p_cur_cmd_buf != NULL) { in nfa_rw_sys_disable()
109 GKI_freebuf(p_t2t->p_cur_cmd_buf); in nfa_rw_sys_disable()
110 p_t2t->p_cur_cmd_buf = NULL; in nfa_rw_sys_disable()
112 if (p_t2t->p_sec_cmd_buf != NULL) { in nfa_rw_sys_disable()
113 GKI_freebuf(p_t2t->p_sec_cmd_buf); in nfa_rw_sys_disable()
114 p_t2t->p_sec_cmd_buf = NULL; in nfa_rw_sys_disable()
/system/nfc/src/fuzzers/rw/
Dt2t.cc80 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in Init_WriteNDef() local
82 p_t2t->ndef_status = T2T_NDEF_DETECTED; in Init_WriteNDef()
88 tRW_T2T_CB* p_t2t = &rw_cb.tcb.t2t; in Init_ReadNDef() local
90 p_t2t->ndef_status = T2T_NDEF_DETECTED; in Init_ReadNDef()
91 p_t2t->ndef_msg_len = 128; in Init_ReadNDef()
92 p_t2t->bytes_count = 128; in Init_ReadNDef()