Lines Matching full:region
27 struct region *first;
28 struct region *last;
29 struct region *iter;
38 struct region {
42 struct region *next;
43 struct region *prev;
102 static void region_list_remove(struct region_list *list, struct region *reg)
120 static void region_list_append(struct region_list *list, struct region *reg)
137 static void dump_starting_from(struct region *reg)
160 struct region *reg;
161 reg = malloc(sizeof(struct region));
260 struct region *last_reg = alloc->list.last;
267 struct region *reg = alloc->list.last->prev;
360 static struct region *ext4_allocate_contiguous_blocks(u32 len)
363 struct region *reg;
369 reg = malloc(sizeof(struct region));
396 static struct region *ext4_allocate_partial(u32 len)
399 struct region *reg;
420 reg = malloc(sizeof(struct region));
434 static struct region *ext4_allocate_multiple_contiguous_blocks(u32 len)
436 struct region *first_reg = NULL;
437 struct region *prev_reg = NULL;
438 struct region *reg;
460 struct region *do_allocate(u32 len)
462 struct region *reg = ext4_allocate_contiguous_blocks(len);
480 struct region *reg = do_allocate(len);
497 struct region *reg = alloc->list.first;
508 struct region *reg = alloc->list.first;
519 struct region *reg = alloc->list.iter;
532 struct region *reg = alloc->oob_list.iter;
543 /* Gets the starting block and length in blocks of the first region
551 /* Move to the next region in an allocation */
575 static struct region *do_split_allocation(struct block_allocation *alloc, u32 len)
577 struct region *reg = alloc->list.iter;
578 struct region *new;
579 struct region *tmp;
590 new = malloc(sizeof(struct region));
612 static struct region *split_allocation(struct block_allocation *alloc, u32 len)
618 struct region *middle = do_split_allocation(alloc, len);
626 struct region *oob = split_allocation(alloc, blocks);
627 struct region *next;
644 struct region *reg = list->iter;
676 struct region *reg = do_allocate(len);
796 struct region *reg;
800 struct region *next = reg->next;
807 struct region *next = reg->next;