/system/core/libsparse/include/sparse/ |
D | sparse.h | 23 struct sparse_file; 38 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len); 48 void sparse_file_destroy(struct sparse_file *s); 68 int sparse_file_add_data(struct sparse_file *s, 86 int sparse_file_add_fill(struct sparse_file *s, 109 int sparse_file_add_file(struct sparse_file *s, 136 int sparse_file_add_fd(struct sparse_file *s, 157 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, 172 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc); 192 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, [all …]
|
/system/core/libsparse/ |
D | sparse.c | 29 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) in sparse_file_new() 31 struct sparse_file *s = calloc(sizeof(struct sparse_file), 1); in sparse_file_new() 48 void sparse_file_destroy(struct sparse_file *s) in sparse_file_destroy() 54 int sparse_file_add_data(struct sparse_file *s, in sparse_file_add_data() 60 int sparse_file_add_fill(struct sparse_file *s, in sparse_file_add_fill() 66 int sparse_file_add_file(struct sparse_file *s, in sparse_file_add_file() 74 int sparse_file_add_fd(struct sparse_file *s, in sparse_file_add_fd() 80 unsigned int sparse_count_chunks(struct sparse_file *s) in sparse_count_chunks() 125 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks() 151 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, in sparse_file_write() [all …]
|
D | sparse_read.c | 98 static int process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, in process_raw_chunk() 136 static int process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, in process_fill_chunk() 177 static int process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, in process_skip_chunk() 225 static int process_chunk(struct sparse_file *s, int fd, off64_t offset, in process_chunk() 277 static int sparse_file_read_sparse(struct sparse_file *s, int fd, bool crc) in sparse_file_read_sparse() 359 static int sparse_file_read_normal(struct sparse_file *s, int fd) in sparse_file_read_normal() 410 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) in sparse_file_read() 423 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc) in sparse_file_import() 428 struct sparse_file *s; in sparse_file_import() 479 struct sparse_file *sparse_file_import_auto(int fd, bool crc) in sparse_file_import_auto() [all …]
|
D | simg2simg.c | 48 struct sparse_file *s; in main() 50 struct sparse_file **out_s; in main() 79 out_s = calloc(sizeof(struct sparse_file *), files); in main()
|
D | sparse_file.h | 22 struct sparse_file { struct
|
D | simg2img.c | 44 struct sparse_file *s; in main()
|
D | img2simg.c | 52 struct sparse_file *s; in main()
|
/system/core/fastboot/ |
D | fastboot.h | 34 struct sparse_file; 40 int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s); 50 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz);
|
D | fastboot.c | 499 struct sparse_file **load_sparse_files(const char *fname, int max_size) in load_sparse_files() 502 struct sparse_file *s; in load_sparse_files() 504 struct sparse_file **out_s; in load_sparse_files() 521 out_s = calloc(sizeof(struct sparse_file *), files + 1); in load_sparse_files() 598 struct sparse_file **s = load_sparse_files(fname, limit); in do_flash()
|
D | protocol.c | 291 int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s) in fb_download_data_sparse()
|
D | engine.c | 414 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) in fb_queue_flash_sparse()
|
/system/extras/ext4_utils/ |
D | ext2simg.c | 129 sparse_file_add_file(info.sparse_file, filename, 0, in build_sparse_ext() 154 sparse_file_add_file(info.sparse_file, filename, in build_sparse_ext() 168 sparse_file_add_file(info.sparse_file, filename, in build_sparse_ext() 233 info.sparse_file = sparse_file_new(info.block_size, info.len); in main() 252 sparse_file_destroy(info.sparse_file); in main()
|
D | indirect.c | 49 sparse_file_add_data(info.sparse_file, ptr, len, region_block); in create_backing() 126 sparse_file_add_data(info.sparse_file, ind_block_data, info.block_size, in fill_dindirect_block() 156 sparse_file_add_data(info.sparse_file, dind_block_data, info.block_size, in fill_tindirect_block() 205 sparse_file_add_data(info.sparse_file, ind_block_data, info.block_size, in inode_attach_indirect_blocks() 237 sparse_file_add_data(info.sparse_file, dind_block_data, info.block_size, in inode_attach_dindirect_blocks() 269 sparse_file_add_data(info.sparse_file, tind_block_data, info.block_size, in inode_attach_tindirect_blocks() 449 sparse_file_add_data(info.sparse_file, dind_block_data, info.block_size, in inode_attach_resize() 455 sparse_file_add_data(info.sparse_file, ind_block_data, in inode_attach_resize()
|
D | extent.c | 46 sparse_file_add_data(info.sparse_file, ptr, len, region_block); in extent_create_backing() 68 sparse_file_add_file(info.sparse_file, filename, offset, len, in extent_create_backing_file() 128 sparse_file_add_data(info.sparse_file, data, info.block_size, in do_inode_allocate_extents()
|
D | ext4_utils.c | 87 sparse_file_write(info.sparse_file, fd, gz, sparse, crc); in write_ext4_image() 231 sparse_file_add_data(info.sparse_file, aux_info.backup_sb[i], in ext4_fill_in_sb() 234 sparse_file_add_data(info.sparse_file, aux_info.bg_desc, in ext4_fill_in_sb() 260 sparse_file_add_data(info.sparse_file, buf, info.block_size, 0); in ext4_queue_sb() 262 sparse_file_add_data(info.sparse_file, aux_info.sb, 1024, 1); in ext4_queue_sb()
|
D | make_ext4fs.c | 365 if (info.sparse_file) { in reset_ext4fs_info() 366 sparse_file_destroy(info.sparse_file); in reset_ext4fs_info() 367 info.sparse_file = NULL; in reset_ext4fs_info() 548 info.sparse_file = sparse_file_new(info.block_size, info.len); in make_ext4fs_internal() 610 sparse_file_destroy(info.sparse_file); in make_ext4fs_internal() 611 info.sparse_file = NULL; in make_ext4fs_internal()
|
D | ext4_utils.h | 133 struct sparse_file *sparse_file; member
|
D | allocate.c | 184 sparse_file_add_data(info.sparse_file, bg->inode_table, in allocate_bg_inode_table() 302 sparse_file_add_data(info.sparse_file, bg->bitmaps, 2 * info.block_size, in init_bg() 720 int result = sparse_file_add_data(info.sparse_file, block, info.block_size, block_num); in get_xattr_block_for_inode()
|