Home
last modified time | relevance | path

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

/external/libnfc-nci/src/nfc/tags/
Drw_t2t_ndef.c342 UINT16 lock_offset; in rw_t2t_handle_lock_read_rsp() local
359lock_offset = p_t2t->lock_tlv[p_t2t->lockbyte[num_locks].tlv_index].offset + p_t2t->lockbyte[num_l… in rw_t2t_handle_lock_read_rsp()
363 base_lock_offset = lock_offset; in rw_t2t_handle_lock_read_rsp()
365 offset = (UINT8) (lock_offset - (p_t2t->block_read * T2T_BLOCK_SIZE)); in rw_t2t_handle_lock_read_rsp()
371 else if (lock_offset > base_lock_offset) in rw_t2t_handle_lock_read_rsp()
374 if ((lock_offset - base_lock_offset + offset) < T2T_READ_DATA_LEN) in rw_t2t_handle_lock_read_rsp()
377 … p_t2t->lockbyte[num_locks].lock_byte = p_data[lock_offset - base_lock_offset + offset]; in rw_t2t_handle_lock_read_rsp()
384 block = (UINT16) (lock_offset / T2T_BLOCK_LEN); in rw_t2t_handle_lock_read_rsp()
399 if (NFC_STATUS_OK != rw_t2t_read ((UINT16) (lock_offset / T2T_BLOCK_LEN))) in rw_t2t_handle_lock_read_rsp()
Drw_t1t_ndef.c185 UINT16 lock_offset = 0; in rw_t1t_extract_lock_bytes() local
224 lock_offset = (offset % T1T_SEGMENT_SIZE); in rw_t1t_extract_lock_bytes()
228 lock_offset = (offset % T1T_BLOCK_SIZE); in rw_t1t_extract_lock_bytes()
232 lock_offset = offset; in rw_t1t_extract_lock_bytes()
235 p_t1t->lockbyte[num_locks].lock_byte = p_data[lock_offset]; in rw_t1t_extract_lock_bytes()