Lines Matching refs:chunk_header
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()
279 chunk_header_t chunk_header; in sparse_file_read_sparse() local
314 if (sparse_header.chunk_hdr_sz < sizeof(chunk_header)) { in sparse_file_read_sparse()
326 ret = read_all(fd, &chunk_header, sizeof(chunk_header)); in sparse_file_read_sparse()
340 ret = process_chunk(s, fd, offset, sparse_header.chunk_hdr_sz, &chunk_header, in sparse_file_read_sparse()