Lines Matching refs:block_allocation
31 struct block_allocation *create_allocation() in create_allocation()
33 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation()
123 static void dump_region_lists(struct block_allocation *alloc) {
133 void print_blocks(FILE* f, struct block_allocation *alloc, char separator) in print_blocks()
148 void append_region(struct block_allocation *alloc, in append_region()
241 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation()
343 struct block_allocation *blk_alloc = allocate_blocks(1); in allocate_block()
448 struct block_allocation *allocate_blocks(u32 len) in allocate_blocks()
455 struct block_allocation *alloc = create_allocation(); in allocate_blocks()
466 int block_allocation_num_regions(struct block_allocation *alloc) in block_allocation_num_regions()
477 int block_allocation_len(struct block_allocation *alloc) in block_allocation_len()
489 u32 get_block(struct block_allocation *alloc, u32 block) in get_block()
502 u32 get_oob_block(struct block_allocation *alloc, u32 block) in get_oob_block()
517 void get_region(struct block_allocation *alloc, u32 *block, u32 *len) in get_region()
524 void get_next_region(struct block_allocation *alloc) in get_next_region()
536 int last_region(struct block_allocation *alloc) in last_region()
541 void rewind_alloc(struct block_allocation *alloc) in rewind_alloc()
547 static struct region *do_split_allocation(struct block_allocation *alloc, u32 len) in do_split_allocation()
584 static struct region *split_allocation(struct block_allocation *alloc, u32 len) in split_allocation()
596 int reserve_oob_blocks(struct block_allocation *alloc, int blocks) in reserve_oob_blocks()
636 int advance_blocks(struct block_allocation *alloc, int blocks) in advance_blocks()
641 int advance_oob_blocks(struct block_allocation *alloc, int blocks) in advance_oob_blocks()
646 int append_oob_allocation(struct block_allocation *alloc, u32 len) in append_oob_allocation()
766 void free_alloc(struct block_allocation *alloc) in free_alloc()
803 int reserve_blocks_for_allocation(struct block_allocation *alloc) { in reserve_blocks_for_allocation()