Home
last modified time | relevance | path

Searched refs:lock_offset (Results 1 – 2 of 2) sorted by relevance

/system/nfc/src/nfc/tags/
Drw_t2t_ndef.cc318 uint16_t lock_offset; in rw_t2t_handle_lock_read_rsp() local
335 lock_offset = in rw_t2t_handle_lock_read_rsp()
341 base_lock_offset = lock_offset; in rw_t2t_handle_lock_read_rsp()
344 offset = (uint8_t)(lock_offset - (p_t2t->block_read * T2T_BLOCK_SIZE)); in rw_t2t_handle_lock_read_rsp()
349 } else if (lock_offset > base_lock_offset) { in rw_t2t_handle_lock_read_rsp()
351 if ((lock_offset - base_lock_offset + offset) < T2T_READ_DATA_LEN) { in rw_t2t_handle_lock_read_rsp()
354 p_data[lock_offset - base_lock_offset + offset]; in rw_t2t_handle_lock_read_rsp()
359 block = (uint16_t)(lock_offset / T2T_BLOCK_LEN); in rw_t2t_handle_lock_read_rsp()
373 rw_t2t_read((uint16_t)(lock_offset / T2T_BLOCK_LEN))) { in rw_t2t_handle_lock_read_rsp()
Drw_t1t_ndef.cc187 uint16_t lock_offset = 0; in rw_t1t_extract_lock_bytes() local
220 lock_offset = (offset % T1T_SEGMENT_SIZE); in rw_t1t_extract_lock_bytes()
222 lock_offset = (offset % T1T_BLOCK_SIZE); in rw_t1t_extract_lock_bytes()
224 lock_offset = offset; in rw_t1t_extract_lock_bytes()
227 p_t1t->lockbyte[num_locks].lock_byte = p_data[lock_offset]; in rw_t1t_extract_lock_bytes()