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.cc358 if (p_t1t->work_offset < (T1T_BLOCK_SIZE - 1)) { in rw_t1t_handle_write_rsp()
359 p_t1t->work_offset++; in rw_t1t_handle_write_rsp()
361 RW_T1T_BLD_ADD((addr), 1, (uint8_t)p_t1t->work_offset); in rw_t1t_handle_write_rsp()
365 p_t1t->ndef_first_block[(uint8_t)p_t1t->work_offset]); in rw_t1t_handle_write_rsp()
931 p_t1t->ndef_header_offset = offset + p_t1t->work_offset; in rw_t1t_handle_tlv_detect_rsp()
1002 p_t1t->ndef_msg_offset = offset + p_t1t->work_offset; in rw_t1t_handle_tlv_detect_rsp()
1115 p_t1t->work_offset += bytes_read; in rw_t1t_handle_tlv_detect_rsp()
1156 p_t1t->work_offset = 0; in rw_t1t_handle_ndef_rall_rsp()
1159 while (count < T1T_STATIC_SIZE && p_t1t->work_offset < p_t1t->ndef_msg_len) { in rw_t1t_handle_ndef_rall_rsp()
1161 p_t1t->p_ndef_buffer[p_t1t->work_offset] = p_t1t->mem[count]; in rw_t1t_handle_ndef_rall_rsp()
[all …]
Drw_t2t_ndef.cc408 if (p_t2t->work_offset == 0) { in rw_t2t_handle_tlv_detect_rsp()
410 p_t2t->work_offset = T2T_FIRST_DATA_BLOCK * T2T_BLOCK_LEN; in rw_t2t_handle_tlv_detect_rsp()
418 if (rw_t2t_is_lock_res_byte((uint16_t)(p_t2t->work_offset + offset)) == in rw_t2t_handle_tlv_detect_rsp()
500 p_t2t->ndef_header_offset = offset + p_t2t->work_offset; in rw_t2t_handle_tlv_detect_rsp()
576 p_t2t->ndef_msg_offset = offset + p_t2t->work_offset; in rw_t2t_handle_tlv_detect_rsp()
729 p_t2t->work_offset += T2T_READ_DATA_LEN; in rw_t2t_handle_tlv_detect_rsp()
735 if (p_t2t->work_offset >= in rw_t2t_handle_tlv_detect_rsp()
745 if (rw_t2t_read((uint16_t)(p_t2t->work_offset / T2T_BLOCK_LEN)) != in rw_t2t_handle_tlv_detect_rsp()
1079 p_t2t->work_offset = 0; in rw_t2t_write_ndef_first_block()
1107 while (p_t2t->work_offset == 0 && block < total_blocks) { in rw_t2t_write_ndef_first_block()
[all …]
Drw_mfc.cc336 p_mfc->work_offset = 0; in RW_MfcWriteNDef()
391 if (p_mfc->work_offset == 0) { in rw_mfc_writeBlock()
405 if (p_mfc->work_offset == p_mfc->ndef_length) { in rw_mfc_writeBlock()
407 } else if (p_mfc->work_offset > p_mfc->ndef_length) { in rw_mfc_writeBlock()
410 UINT8_TO_BE_STREAM(p, p_mfc->p_ndef_buffer[p_mfc->work_offset]); in rw_mfc_writeBlock()
412 p_mfc->work_offset++; in rw_mfc_writeBlock()
473 if (p_mfc->work_offset >= p_mfc->ndef_length) { in rw_mfc_handle_write_op()
783 p_mfc->work_offset = 0; in rw_MfcLocateTlv()
1036 if (p_mfc->work_offset == 0) { in rw_mfc_handle_read_op()
1047 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