Searched refs:backed_block_list (Results 1 - 4 of 4) sorted by relevance

/system/core/libsparse/
H A Dsparse_file.h27 struct backed_block_list *backed_block_list; member in struct:sparse_file
H A Dbacked_block.h22 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 *bb
[all...]
H A Dsparse.c36 s->backed_block_list = backed_block_list_new(block_size);
37 if (!s->backed_block_list) {
50 backed_block_list_destroy(s->backed_block_list);
57 return backed_block_add_data(s->backed_block_list, data, len, block);
63 return backed_block_add_fill(s->backed_block_list, fill_val, len, block);
70 return backed_block_add_file(s->backed_block_list, filename, file_offset,
77 return backed_block_add_fd(s->backed_block_list, fd, file_offset,
86 for (bb = backed_block_iter_new(s->backed_block_list); bb;
131 for (bb = backed_block_iter_new(s->backed_block_list); bb;
241 start = backed_block_iter_new(from->backed_block_list);
[all...]
H A Dbacked_block.c49 struct backed_block_list { struct
55 struct backed_block *backed_block_iter_new(struct backed_block_list *bbl)
123 struct backed_block_list *backed_block_list_new(unsigned int block_size)
125 struct backed_block_list *b = calloc(sizeof(struct backed_block_list), 1);
130 void backed_block_list_destroy(struct backed_block_list *bbl)
144 void backed_block_list_move(struct backed_block_list *from,
145 struct backed_block_list *to, struct backed_block *start,
191 static int merge_bb(struct backed_block_list *bbl,
247 static int queue_bb(struct backed_block_list *bb
[all...]

Completed in 26 milliseconds