Searched refs:chunk_header (Results 1 – 4 of 4) sorted by relevance
/external/qemu/distrib/libsparse/src/ |
D | output_file.c | 342 chunk_header_t chunk_header; in write_sparse_skip_chunk() local 352 chunk_header.chunk_type = CHUNK_TYPE_DONT_CARE; in write_sparse_skip_chunk() 353 chunk_header.reserved1 = 0; in write_sparse_skip_chunk() 354 chunk_header.chunk_sz = skip_len / out->block_size; in write_sparse_skip_chunk() 355 chunk_header.total_sz = CHUNK_HEADER_LEN; in write_sparse_skip_chunk() 356 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_skip_chunk() 369 chunk_header_t chunk_header; in write_sparse_fill_chunk() local 377 chunk_header.chunk_type = CHUNK_TYPE_FILL; in write_sparse_fill_chunk() 378 chunk_header.reserved1 = 0; in write_sparse_fill_chunk() 379 chunk_header.chunk_sz = rnd_up_len / out->block_size; in write_sparse_fill_chunk() [all …]
|
D | sparse_read.c | 223 unsigned int chunk_hdr_sz, chunk_header_t *chunk_header, in process_chunk() argument 229 chunk_data_size = chunk_header->total_sz - chunk_hdr_sz; in process_chunk() 231 switch (chunk_header->chunk_type) { in process_chunk() 234 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 239 return chunk_header->chunk_sz; in process_chunk() 242 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 247 return chunk_header->chunk_sz; in process_chunk() 250 chunk_header->chunk_sz, cur_block, crc_ptr); in process_chunk() 257 return chunk_header->chunk_sz; in process_chunk() 268 chunk_header->chunk_type, offset); in process_chunk() [all …]
|
D | sparse_format.h | 42 typedef struct chunk_header { struct
|
/external/tinyalsa/ |
D | tinyplay.c | 47 struct chunk_header { struct 78 struct chunk_header chunk_header; in main() local 109 fread(&chunk_header, sizeof(chunk_header), 1, file); in main() 111 switch (chunk_header.id) { in main() 115 if (chunk_header.sz > sizeof(chunk_fmt)) in main() 116 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR); in main() 124 fseek(file, chunk_header.sz, SEEK_CUR); in main()
|