Home
last modified time | relevance | path

Searched refs:sparse_file (Results 1 – 18 of 18) sorted by relevance

/system/core/libsparse/include/sparse/
Dsparse.h23 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/
Dsparse.c29 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 …]
Dsparse_read.c98 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 …]
Dsimg2simg.c48 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()
Dsparse_file.h22 struct sparse_file { struct
Dsimg2img.c44 struct sparse_file *s; in main()
Dimg2simg.c52 struct sparse_file *s; in main()
/system/core/fastboot/
Dfastboot.h34 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);
Dfastboot.c499 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()
Dprotocol.c291 int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s) in fb_download_data_sparse()
Dengine.c414 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) in fb_queue_flash_sparse()
/system/extras/ext4_utils/
Dext2simg.c129 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()
Dindirect.c49 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()
Dextent.c46 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()
Dext4_utils.c87 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()
Dmake_ext4fs.c365 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()
Dext4_utils.h133 struct sparse_file *sparse_file; member
Dallocate.c184 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()