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, uint64_t len, 34 int backed_block_add_fill(struct backed_block_list* bbl, unsigned int fill_val, uint64_t len, 36 int backed_block_add_file(struct backed_block_list* bbl, const char* filename, int64_t offset, 38 int backed_block_add_fd(struct backed_block_list* bbl, int fd, int64_t offset, uint64_t len, 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, unsigned int max_len… 53 struct backed_block* backed_block_iter_new(struct backed_block_list* bbl); 56 struct backed_block_list* backed_block_list_new(unsigned int block_size); 57 void backed_block_list_destroy(struct backed_block_list* bbl); [all …]
|
D | sparse.cpp | 36 s->backed_block_list = backed_block_list_new(block_size); in sparse_file_new() 37 if (!s->backed_block_list) { in sparse_file_new() 49 backed_block_list_destroy(s->backed_block_list); in sparse_file_destroy() 54 return backed_block_add_data(s->backed_block_list, data, len, block); in sparse_file_add_data() 59 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill() 64 return backed_block_add_file(s->backed_block_list, filename, file_offset, len, block); in sparse_file_add_file() 69 return backed_block_add_fd(s->backed_block_list, fd, file_offset, len, block); in sparse_file_add_fd() 76 for (bb = backed_block_iter_new(s->backed_block_list); bb; bb = backed_block_iter_next(bb)) { in sparse_count_chunks() 120 for (bb = backed_block_iter_new(s->backed_block_list); bb; bb = backed_block_iter_next(bb)) { in write_all_blocks() 151 for (bb = backed_block_iter_new(s->backed_block_list); bb; bb = backed_block_iter_next(bb)) { in sparse_file_write() [all …]
|
D | backed_block.cpp | 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 112 struct backed_block_list* backed_block_list_new(unsigned int block_size) { in backed_block_list_new() 113 struct backed_block_list* b = in backed_block_list_new() 114 reinterpret_cast<backed_block_list*>(calloc(sizeof(struct backed_block_list), 1)); in backed_block_list_new() 119 void backed_block_list_destroy(struct backed_block_list* bbl) { in backed_block_list_destroy() 132 void backed_block_list_move(struct backed_block_list* from, struct backed_block_list* to, in backed_block_list_move() 177 static int merge_bb(struct backed_block_list* bbl, struct backed_block* a, struct backed_block* b) { in merge_bb() 230 static int queue_bb(struct backed_block_list* bbl, struct backed_block* new_bb) { in queue_bb() 273 int backed_block_add_fill(struct backed_block_list* bbl, unsigned int fill_val, uint64_t len, in backed_block_add_fill() [all …]
|
D | sparse_file.h | 31 struct backed_block_list* backed_block_list; member
|