Searched refs:T2T_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
344 offset = (uint8_t)(lock_offset - (p_t2t->block_read * T2T_BLOCK_SIZE)); in rw_t2t_handle_lock_read_rsp()442 index = (offset % T2T_BLOCK_SIZE); in rw_t2t_handle_tlv_detect_rsp()474 index = (offset % T2T_BLOCK_SIZE); in rw_t2t_handle_tlv_detect_rsp()939 (uint16_t)((last_ndef_byte_offset - 1) / T2T_BLOCK_SIZE); in rw_t2t_read_ndef_last_block()985 block = p_t2t->terminator_byte_index / T2T_BLOCK_SIZE; in rw_t2t_read_terminator_tlv_block()1047 if (block == p_t2t->ndef_header_offset / T2T_BLOCK_SIZE) { in rw_t2t_is_read_before_write_block()1050 memcpy(p_t2t->ndef_read_block, p_t2t->ndef_first_block, T2T_BLOCK_SIZE); in rw_t2t_is_read_before_write_block()1054 memcpy(p_t2t->ndef_read_block, p_t2t->ndef_last_block, T2T_BLOCK_SIZE); in rw_t2t_is_read_before_write_block()1055 } else if (block == p_t2t->terminator_byte_index / T2T_BLOCK_SIZE) { in rw_t2t_is_read_before_write_block()1058 memcpy(p_t2t->ndef_read_block, p_t2t->terminator_tlv_block, T2T_BLOCK_SIZE); in rw_t2t_is_read_before_write_block()[all …]
180 #define T2T_BLOCK_SIZE 4 macro
421 uint8_t ndef_final_block[T2T_BLOCK_SIZE]; /* Buffer for ndef last block */