Home
last modified time | relevance | path

Searched refs:write_block (Results 1 – 4 of 4) 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/autotest/client/tests/disktest/src/
Ddisktest.c54 void write_block(int fd, unsigned int block, struct pattern *buffer) in write_block() function
156 write_block(fd, block, buffer); in write_file()
161 write_block(fd, block, buffer); in write_file()
337 write_block(fd, block, init_buffer); in main()
/external/squashfs-tools/squashfs-tools/
Dunsquashfs.c880 int write_block(int file_fd, char *buffer, int size, long long hole, int sparse) in write_block() function
2044 error = write_block(file_fd, block->buffer->data + in writer()
2071 if(write_block(file_fd, "\0", 1, hole, in writer()