Home
last modified time | relevance | path

Searched refs:bb (Results 1 – 3 of 3) sorted by relevance

/system/core/libsparse/
Dbacked_block.c60 struct backed_block *backed_block_iter_next(struct backed_block *bb) in backed_block_iter_next() argument
62 return bb->next; in backed_block_iter_next()
65 unsigned int backed_block_len(struct backed_block *bb) in backed_block_len() argument
67 return bb->len; in backed_block_len()
70 unsigned int backed_block_block(struct backed_block *bb) in backed_block_block() argument
72 return bb->block; in backed_block_block()
75 void *backed_block_data(struct backed_block *bb) in backed_block_data() argument
77 assert(bb->type == BACKED_BLOCK_DATA); in backed_block_data()
78 return bb->data.data; in backed_block_data()
81 const char *backed_block_filename(struct backed_block *bb) in backed_block_filename() argument
[all …]
Dsparse.c82 struct backed_block *bb; in sparse_count_chunks() local
86 for (bb = backed_block_iter_new(s->backed_block_list); bb; in sparse_count_chunks()
87 bb = backed_block_iter_next(bb)) { in sparse_count_chunks()
88 if (backed_block_block(bb) > last_block) { in sparse_count_chunks()
93 last_block = backed_block_block(bb) + in sparse_count_chunks()
94 DIV_ROUND_UP(backed_block_len(bb), s->block_size); in sparse_count_chunks()
104 struct backed_block *bb) in sparse_file_write_block() argument
106 switch (backed_block_type(bb)) { in sparse_file_write_block()
108 write_data_chunk(out, backed_block_len(bb), backed_block_data(bb)); in sparse_file_write_block()
111 write_file_chunk(out, backed_block_len(bb), in sparse_file_write_block()
[all …]
Dbacked_block.h42 struct backed_block *backed_block_iter_next(struct backed_block *bb);
43 unsigned int backed_block_len(struct backed_block *bb);
44 unsigned int backed_block_block(struct backed_block *bb);
45 void *backed_block_data(struct backed_block *bb);
46 const char *backed_block_filename(struct backed_block *bb);
47 int backed_block_fd(struct backed_block *bb);
48 int64_t backed_block_file_offset(struct backed_block *bb);
49 uint32_t backed_block_fill_val(struct backed_block *bb);
50 enum backed_block_type backed_block_type(struct backed_block *bb);
51 int backed_block_split(struct backed_block_list *bbl, struct backed_block *bb,
[all …]