Lines Matching defs:alloc
58 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() local
144 void print_blocks(FILE* f, struct block_allocation *alloc) in print_blocks()
157 void append_region(struct block_allocation *alloc, in append_region()
257 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation()
453 struct block_allocation *alloc = create_allocation(); in allocate_blocks() local
462 int block_allocation_num_regions(struct block_allocation *alloc) in block_allocation_num_regions()
473 int block_allocation_len(struct block_allocation *alloc) in block_allocation_len()
485 u32 get_block(struct block_allocation *alloc, u32 block) in get_block()
498 u32 get_oob_block(struct block_allocation *alloc, u32 block) in get_oob_block()
513 void get_region(struct block_allocation *alloc, u32 *block, u32 *len) in get_region()
520 void get_next_region(struct block_allocation *alloc) in get_next_region()
532 int last_region(struct block_allocation *alloc) in last_region()
537 void rewind_alloc(struct block_allocation *alloc) in rewind_alloc()
543 static struct region *do_split_allocation(struct block_allocation *alloc, u32 len) in do_split_allocation()
580 static struct region *split_allocation(struct block_allocation *alloc, u32 len) in split_allocation()
592 int reserve_oob_blocks(struct block_allocation *alloc, int blocks) in reserve_oob_blocks()
632 int advance_blocks(struct block_allocation *alloc, int blocks) in advance_blocks()
637 int advance_oob_blocks(struct block_allocation *alloc, int blocks) in advance_oob_blocks()
642 int append_oob_allocation(struct block_allocation *alloc, u32 len) in append_oob_allocation()
762 void free_alloc(struct block_allocation *alloc) in free_alloc()