Searched refs:backed_block_list (Results 1 – 4 of 4) sorted by relevance
/system/core/libsparse/ |
D | backed_block.h | 22 struct backed_block_list; 32 int backed_block_add_data(struct backed_block_list *bbl, void *data, 34 int backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, 36 int backed_block_add_file(struct backed_block_list *bbl, const char *filename, 38 int backed_block_add_fd(struct backed_block_list *bbl, int fd, 41 struct backed_block *backed_block_iter_new(struct backed_block_list *bbl); 51 int backed_block_split(struct backed_block_list *bbl, struct backed_block *bb, 54 struct backed_block *backed_block_iter_new(struct backed_block_list *bbl); 57 struct backed_block_list *backed_block_list_new(unsigned int block_size); 58 void backed_block_list_destroy(struct backed_block_list *bbl); [all …]
|
D | sparse.c | 37 s->backed_block_list = backed_block_list_new(block_size); in sparse_file_new() 38 if (!s->backed_block_list) { in sparse_file_new() 51 backed_block_list_destroy(s->backed_block_list); in sparse_file_destroy() 58 return backed_block_add_data(s->backed_block_list, data, len, block); in sparse_file_add_data() 64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill() 71 return backed_block_add_file(s->backed_block_list, filename, file_offset, in sparse_file_add_file() 78 return backed_block_add_fd(s->backed_block_list, fd, file_offset, in sparse_file_add_fd() 87 for (bb = backed_block_iter_new(s->backed_block_list); bb; in sparse_count_chunks() 139 for (bb = backed_block_iter_new(s->backed_block_list); bb; in write_all_blocks() 239 for (bb = backed_block_iter_new(s->backed_block_list); bb; in sparse_file_foreach_chunk() [all …]
|
D | backed_block.c | 49 struct backed_block_list { struct 55 struct backed_block *backed_block_iter_new(struct backed_block_list *bbl) in backed_block_iter_new() argument 123 struct backed_block_list *backed_block_list_new(unsigned int block_size) in backed_block_list_new() 125 struct backed_block_list *b = calloc(sizeof(struct backed_block_list), 1); in backed_block_list_new() 130 void backed_block_list_destroy(struct backed_block_list *bbl) in backed_block_list_destroy() 144 void backed_block_list_move(struct backed_block_list *from, in backed_block_list_move() 145 struct backed_block_list *to, struct backed_block *start, in backed_block_list_move() 191 static int merge_bb(struct backed_block_list *bbl, in merge_bb() 248 static int queue_bb(struct backed_block_list *bbl, struct backed_block *new_bb) in queue_bb() 292 int backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, in backed_block_add_fill() [all …]
|
D | sparse_file.h | 31 struct backed_block_list *backed_block_list; member
|