Lines Matching refs:region

66 static void region_list_remove(struct region_list *list, struct region *reg)  in region_list_remove()
84 void region_list_append(struct region_list *list, struct region *reg) in region_list_append()
115 static void dump_starting_from(struct region *reg)
135 struct region *reg; in print_blocks()
151 struct region *reg; in append_region()
152 reg = malloc(sizeof(struct region)); in append_region()
244 struct region *last_reg = alloc->list.last; in reduce_allocation()
252 struct region *reg = alloc->list.last->prev; in reduce_allocation()
298 bg->chunks = (struct region*) calloc(bg->max_chunk_count, sizeof(struct region)); in init_bg()
352 static struct region *ext4_allocate_best_fit_partial(u32 len) in ext4_allocate_best_fit_partial()
359 struct region *reg; in ext4_allocate_best_fit_partial()
406 reg = malloc(sizeof(struct region)); in ext4_allocate_best_fit_partial()
415 static struct region *ext4_allocate_best_fit(u32 len) in ext4_allocate_best_fit()
417 struct region *first_reg = NULL; in ext4_allocate_best_fit()
418 struct region *prev_reg = NULL; in ext4_allocate_best_fit()
419 struct region *reg; in ext4_allocate_best_fit()
450 struct region *reg = ext4_allocate_best_fit(len); in allocate_blocks()
469 struct region *reg = alloc->list.first; in block_allocation_num_regions()
480 struct region *reg = alloc->list.first; in block_allocation_len()
491 struct region *reg = alloc->list.iter; in get_block()
504 struct region *reg = alloc->oob_list.iter; in get_oob_block()
547 static struct region *do_split_allocation(struct block_allocation *alloc, u32 len) in do_split_allocation()
549 struct region *reg = alloc->list.iter; in do_split_allocation()
550 struct region *new; in do_split_allocation()
551 struct region *tmp; in do_split_allocation()
562 new = malloc(sizeof(struct region)); in do_split_allocation()
584 static struct region *split_allocation(struct block_allocation *alloc, u32 len) in split_allocation()
590 struct region *middle = do_split_allocation(alloc, len); in split_allocation()
598 struct region *oob = split_allocation(alloc, blocks); in reserve_oob_blocks()
599 struct region *next; in reserve_oob_blocks()
616 struct region *reg = list->iter; in advance_list_ptr()
648 struct region *reg = ext4_allocate_best_fit(len); in append_oob_allocation()
768 struct region *reg; in free_alloc()
772 struct region *next = reg->next; in free_alloc()
779 struct region *next = reg->next; in free_alloc()
792 bgs[bg].chunks = realloc(bgs[bg].chunks, bgs[bg].max_chunk_count * sizeof(struct region)); in reserve_bg_chunk()
804 struct region *reg; in reserve_blocks_for_allocation()