Home
last modified time | relevance | path

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

/system/nfc/src/nfc/tags/
Drw_t1t_ndef.cc361 if (p_t1t->work_offset < (T1T_BLOCK_SIZE - 1)) { in rw_t1t_handle_write_rsp()
362 p_t1t->work_offset++; in rw_t1t_handle_write_rsp()
364 RW_T1T_BLD_ADD((addr), 1, (uint8_t)p_t1t->work_offset); in rw_t1t_handle_write_rsp()
368 p_t1t->ndef_first_block[(uint8_t)p_t1t->work_offset]); in rw_t1t_handle_write_rsp()
934 p_t1t->ndef_header_offset = offset + p_t1t->work_offset; in rw_t1t_handle_tlv_detect_rsp()
1005 p_t1t->ndef_msg_offset = offset + p_t1t->work_offset; in rw_t1t_handle_tlv_detect_rsp()
1118 p_t1t->work_offset += bytes_read; in rw_t1t_handle_tlv_detect_rsp()
1159 p_t1t->work_offset = 0; in rw_t1t_handle_ndef_rall_rsp()
1162 while (count < T1T_STATIC_SIZE && p_t1t->work_offset < p_t1t->ndef_msg_len) { in rw_t1t_handle_ndef_rall_rsp()
1164 p_t1t->p_ndef_buffer[p_t1t->work_offset] = p_t1t->mem[count]; in rw_t1t_handle_ndef_rall_rsp()
[all …]
Drw_t2t_ndef.cc414 if (p_t2t->work_offset == 0) { in rw_t2t_handle_tlv_detect_rsp()
416 p_t2t->work_offset = T2T_FIRST_DATA_BLOCK * T2T_BLOCK_LEN; in rw_t2t_handle_tlv_detect_rsp()
424 if (rw_t2t_is_lock_res_byte((uint16_t)(p_t2t->work_offset + offset)) == in rw_t2t_handle_tlv_detect_rsp()
506 p_t2t->ndef_header_offset = offset + p_t2t->work_offset; in rw_t2t_handle_tlv_detect_rsp()
582 p_t2t->ndef_msg_offset = offset + p_t2t->work_offset; in rw_t2t_handle_tlv_detect_rsp()
725 p_t2t->work_offset += T2T_READ_DATA_LEN; in rw_t2t_handle_tlv_detect_rsp()
731 if (p_t2t->work_offset >= in rw_t2t_handle_tlv_detect_rsp()
740 if (rw_t2t_read((uint16_t)(p_t2t->work_offset / T2T_BLOCK_LEN) ) != NFC_STATUS_OK) in rw_t2t_handle_tlv_detect_rsp()
1083 p_t2t->work_offset = 0; in rw_t2t_write_ndef_first_block()
1111 while (p_t2t->work_offset == 0 && block < total_blocks) { in rw_t2t_write_ndef_first_block()
[all …]
Drw_mfc.cc337 p_mfc->work_offset = 0; in RW_MfcWriteNDef()
392 if (p_mfc->work_offset == 0) { in rw_mfc_writeBlock()
406 if (p_mfc->work_offset == p_mfc->ndef_length) { in rw_mfc_writeBlock()
408 } else if (p_mfc->work_offset > p_mfc->ndef_length) { in rw_mfc_writeBlock()
411 UINT8_TO_BE_STREAM(p, p_mfc->p_ndef_buffer[p_mfc->work_offset]); in rw_mfc_writeBlock()
413 p_mfc->work_offset++; in rw_mfc_writeBlock()
474 if (p_mfc->work_offset >= p_mfc->ndef_length) { in rw_mfc_handle_write_op()
778 p_mfc->work_offset = 0; in rw_MfcLocateTlv()
1032 if (p_mfc->work_offset == 0) { in rw_mfc_handle_read_op()
1044 while ((offset < len) && (p_mfc->work_offset < p_mfc->ndef_length)) in rw_mfc_handle_read_op()
[all …]
/system/nfc/src/nfc/include/
Drw_int.h192 uint16_t work_offset; /* Working byte offset */ member
442 uint16_t work_offset; /* Working byte offset */ member
663 uint16_t work_offset; /* Working byte offset */ member