Home
last modified time | relevance | path

Searched refs:write_block (Results 1 – 3 of 3) sorted by relevance

/external/libnfc-nci/src/nfc/tags/
Drw_t2t_ndef.c1161 UINT8 write_block[4]; in rw_t2t_write_ndef_first_block() local
1196 memcpy (write_block, p_t2t->ndef_first_block, T2T_BLOCK_SIZE); in rw_t2t_write_ndef_first_block()
1208 write_block[index] = length_field[p_t2t->work_offset]; in rw_t2t_write_ndef_first_block()
1222write_block[index] = p_t2t->p_new_ndef_buffer[p_t2t->work_offset - new_lengthfield_len]; in rw_t2t_write_ndef_first_block()
1234 memcpy (write_block, p_t2t->ndef_last_block, T2T_BLOCK_SIZE); in rw_t2t_write_ndef_first_block()
1244 rw_t2t_update_cb (block, write_block, b_update_len); in rw_t2t_write_ndef_first_block()
1246 if ((status = rw_t2t_write (block, write_block)) == NFC_STATUS_OK) in rw_t2t_write_ndef_first_block()
1267 UINT8 write_block[4]; in rw_t2t_write_ndef_next_block() local
1280 memcpy (write_block, p_t2t->ndef_read_block, T2T_BLOCK_SIZE); in rw_t2t_write_ndef_next_block()
1292write_block[index] = p_t2t->p_new_ndef_buffer[p_t2t->work_offset - new_lengthfield_len]; in rw_t2t_write_ndef_next_block()
[all …]
Drw_t1t_ndef.c367 UINT8 write_block[T1T_BLOCK_SIZE]; in rw_t1t_handle_write_rsp() local
426 memset (write_block,0,T1T_BLOCK_SIZE); in rw_t1t_handle_write_rsp()
427 write_block[0] = 0xFF; in rw_t1t_handle_write_rsp()
428 write_block[1] = 0xFF; in rw_t1t_handle_write_rsp()
431 …if ((status = rw_t1t_send_dyn_cmd (T1T_CMD_WRITE_NE8, T1T_LOCK_BLOCK, write_block)) != NFC_STATUS_… in rw_t1t_handle_write_rsp()
479 memset (write_block,0,T1T_BLOCK_SIZE); in rw_t1t_handle_write_rsp()
481 write_block[(UINT8) (offset%T1T_BLOCK_SIZE)] |= tags_pow (2,num_bits) - 1; in rw_t1t_handle_write_rsp()
490write_block[(UINT8) (next_offset%T1T_BLOCK_SIZE)] |= tags_pow (2,next_num_bits) - 1; in rw_t1t_handle_write_rsp()
498 …_t1t_send_dyn_cmd (T1T_CMD_WRITE_NE8, (UINT8) (offset/T1T_BLOCK_SIZE), write_block)) == NFC_STATUS… in rw_t1t_handle_write_rsp()
1422 UINT8 write_block[8]; in rw_t1t_next_ndef_write_block() local
[all …]
/external/e2fsprogs/misc/
De2image.c311 static void write_block(int fd, char *buf, int sparse_offset, in write_block() function
437 write_block(fd, buf, sparse, fs->blocksize, blk); in output_meta_data_blocks()
442 write_block(fd, zero_buf, 0, in output_meta_data_blocks()
448 write_block(fd, 0, sparse, 0, 0); in output_meta_data_blocks()
454 write_block(fd, zero_buf, sparse-1, 1, -1); in output_meta_data_blocks()