Lines Matching refs:chunk_header
62 chunk_header_t *chunk_header; in write_sparse_image() local
113 chunk_header = (chunk_header_t *)data; in write_sparse_image()
116 if (chunk_header->chunk_type != CHUNK_TYPE_RAW) { in write_sparse_image()
118 debug("chunk_type: 0x%x\n", chunk_header->chunk_type); in write_sparse_image()
119 debug("chunk_data_sz: 0x%x\n", chunk_header->chunk_sz); in write_sparse_image()
120 debug("total_size: 0x%x\n", chunk_header->total_sz); in write_sparse_image()
132 chunk_data_sz = sparse_header->blk_sz * chunk_header->chunk_sz; in write_sparse_image()
134 switch (chunk_header->chunk_type) { in write_sparse_image()
136 if (chunk_header->total_sz != in write_sparse_image()
163 total_blocks += chunk_header->chunk_sz; in write_sparse_image()
168 if (chunk_header->total_sz != in write_sparse_image()
229 total_blocks += chunk_header->chunk_sz; in write_sparse_image()
233 if (chunk_header->total_sz != in write_sparse_image()
239 total_blocks += chunk_header->chunk_sz; in write_sparse_image()
245 chunk_header->chunk_type); in write_sparse_image()