Home
last modified time | relevance | path

Searched refs:fill_val (Results 1 – 7 of 7) sorted by relevance

/system/core/libsparse/
Doutput_file.cpp75 int (*write_fill_chunk)(struct output_file* out, unsigned int len, uint32_t fill_val);
349 static int write_sparse_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val) { in write_sparse_fill_chunk() argument
361 chunk_header.total_sz = CHUNK_HEADER_LEN + sizeof(fill_val); in write_sparse_fill_chunk()
365 ret = out->ops->write(out, &fill_val, sizeof(fill_val)); in write_sparse_fill_chunk()
370 while (count--) out->crc32 = sparse_crc32(out->crc32, &fill_val, sizeof(uint32_t)); in write_sparse_fill_chunk()
462 static int write_normal_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val) { in write_normal_fill_chunk() argument
469 out->fill_buf[i] = fill_val; in write_normal_fill_chunk()
649 int write_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val) { in write_fill_chunk() argument
650 return out->sparse_ops->write_fill_chunk(out, len, fill_val); in write_fill_chunk()
Dsparse_read.cpp211 uint32_t fill_val; in process_fill_chunk() local
215 if (chunk_size != sizeof(fill_val)) { in process_fill_chunk()
219 ret = source->ReadValue(&fill_val, sizeof(fill_val)); in process_fill_chunk()
224 ret = sparse_file_add_fill(s, fill_val, len, block); in process_fill_chunk()
232 for (i = 0; i < (COPY_BUF_SIZE / sizeof(fill_val)); i++) { in process_fill_chunk()
233 fillbuf[i] = fill_val; in process_fill_chunk()
Doutput_file.h34 int write_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val);
Dbacked_block.h34 int backed_block_add_fill(struct backed_block_list* bbl, unsigned int fill_val, unsigned int len,
Dbacked_block.cpp273 int backed_block_add_fill(struct backed_block_list* bbl, unsigned int fill_val, unsigned int len, in backed_block_add_fill() argument
283 bb->fill.val = fill_val; in backed_block_add_fill()
Dsparse.cpp57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int len, in sparse_file_add_fill() argument
59 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill()
/system/core/libsparse/include/sparse/
Dsparse.h97 uint32_t fill_val, unsigned int len, unsigned int block);