Home
last modified time | relevance | path

Searched refs:bbl (Results 1 – 2 of 2) sorted by relevance

/system/core/libsparse/
Dbacked_block.cpp55 struct backed_block* backed_block_iter_new(struct backed_block_list* bbl) { in backed_block_iter_new() argument
56 return bbl->data_blocks; in backed_block_iter_new()
119 void backed_block_list_destroy(struct backed_block_list* bbl) { in backed_block_list_destroy() argument
120 if (bbl->data_blocks) { in backed_block_list_destroy()
121 struct backed_block* bb = bbl->data_blocks; in backed_block_list_destroy()
129 free(bbl); in backed_block_list_destroy()
177 static int merge_bb(struct backed_block_list* bbl, struct backed_block* a, struct backed_block* b) { in merge_bb() argument
193 block_len = a->len / bbl->block_size; /* rounds down */ in merge_bb()
230 static int queue_bb(struct backed_block_list* bbl, struct backed_block* new_bb) { in queue_bb() argument
233 if (bbl->data_blocks == nullptr) { in queue_bb()
[all …]
Dbacked_block.h32 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);
57 void backed_block_list_destroy(struct backed_block_list* bbl);