Home
last modified time | relevance | path

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

/system/core/libsparse/include/sparse/
Dsparse.h27 struct sparse_file;
42 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len);
52 void sparse_file_destroy(struct sparse_file *s);
72 int sparse_file_add_data(struct sparse_file *s,
90 int sparse_file_add_fill(struct sparse_file *s,
113 int sparse_file_add_file(struct sparse_file *s,
140 int sparse_file_add_fd(struct sparse_file *s,
161 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse,
176 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc);
196 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc,
[all …]
/system/core/libsparse/
Dsparse.c30 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) in sparse_file_new()
32 struct sparse_file *s = calloc(sizeof(struct sparse_file), 1); in sparse_file_new()
49 void sparse_file_destroy(struct sparse_file *s) in sparse_file_destroy()
55 int sparse_file_add_data(struct sparse_file *s, in sparse_file_add_data()
61 int sparse_file_add_fill(struct sparse_file *s, in sparse_file_add_fill()
67 int sparse_file_add_file(struct sparse_file *s, in sparse_file_add_file()
75 int sparse_file_add_fd(struct sparse_file *s, in sparse_file_add_fd()
81 unsigned int sparse_count_chunks(struct sparse_file *s) in sparse_count_chunks()
132 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks()
161 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, in sparse_file_write()
[all …]
Dsparse_read.c101 static int process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, in process_raw_chunk()
139 static int process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, in process_fill_chunk()
180 static int process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, in process_skip_chunk()
223 static int process_chunk(struct sparse_file *s, int fd, off64_t offset, in process_chunk()
275 static int sparse_file_read_sparse(struct sparse_file *s, int fd, bool crc) in sparse_file_read_sparse()
357 static int sparse_file_read_normal(struct sparse_file *s, int fd) in sparse_file_read_normal()
409 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) in sparse_file_read()
422 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc) in sparse_file_import()
427 struct sparse_file *s; in sparse_file_import()
478 struct sparse_file *sparse_file_import_auto(int fd, bool crc, bool verbose) 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.c43 struct sparse_file *s; in main()
Dimg2simg.c51 struct sparse_file *s; in main()
Dappend2simg.c54 struct sparse_file *sparse_output; in main()
/system/core/fastboot/
Dfastboot.h39 struct sparse_file;
45 int fb_download_data_sparse(Transport* transport, struct sparse_file* s);
54 void fb_queue_flash_sparse(const char* ptn, struct sparse_file* s, uint32_t sz, size_t current,
Dfastboot.cpp701 static struct sparse_file **load_sparse_files(int fd, int max_size) in load_sparse_files()
703 struct sparse_file* s = sparse_file_import_auto(fd, false, true); in load_sparse_files()
713sparse_file** out_s = reinterpret_cast<sparse_file**>(calloc(sizeof(struct sparse_file *), files +… in load_sparse_files()
793 sparse_file** s = load_sparse_files(fd, limit); in load_buf_fd()
824 sparse_file** s; in flash_buf()
828 std::vector<std::pair<sparse_file*, int64_t>> sparse_files; in flash_buf()
829 s = reinterpret_cast<sparse_file**>(buf->data); in flash_buf()
Dengine.cpp160 void fb_queue_flash_sparse(const char* ptn, struct sparse_file* s, unsigned sz, size_t current, in fb_queue_flash_sparse()
367 status = fb_download_data_sparse(transport, reinterpret_cast<sparse_file*>(a->data)); in fb_execute_queue()
Dprotocol.cpp253 int fb_download_data_sparse(Transport* transport, struct sparse_file* s) { in fb_download_data_sparse()
/system/extras/f2fs_utils/
Df2fs_utils.c46 struct sparse_file *f2fs_sparse_file;
Df2fs_ioutils.c87 struct sparse_file *f2fs_sparse_file;
/system/extras/ext4_utils/
Dext4_utils.h121 extern struct sparse_file *ext4_sparse_file;
Dext4_utils.c51 struct sparse_file *ext4_sparse_file;
/system/extras/verity/fec/
Dimage.cpp208 std::vector<struct sparse_file *> files; in file_image_load()
221 struct sparse_file *file; in file_image_load()
/system/extras/verity/
Dbuild_verity_tree.cpp267 struct sparse_file *file; in main()