• Home
  • Raw
  • Download

Lines Matching refs:region

38 	region_t	region;  in region_create()  local
41 retval = ext2fs_get_memzero(sizeof(struct region_struct), &region); in region_create()
45 region->min = min; in region_create()
46 region->max = max; in region_create()
47 region->last = NULL; in region_create()
48 return region; in region_create()
51 void region_free(region_t region) in region_free() argument
55 for (r = region->allocated; r; r = next) { in region_free()
59 memset(region, 0, sizeof(struct region_struct)); in region_free()
60 ext2fs_free_mem(&region); in region_free()
63 int region_allocate(region_t region, region_addr_t start, int n) in region_allocate() argument
70 if ((start < region->min) || (end > region->max)) in region_allocate()
75 if (region->last && region->last->end == start && in region_allocate()
76 !region->last->next) { in region_allocate()
77 region->last->end = end; in region_allocate()
80 if (region->last && start > region->last->end && in region_allocate()
81 !region->last->next) { in region_allocate()
83 prev = region->last; in region_allocate()
94 for (r = region->allocated, prev=NULL; r; prev = r, r = r->next) { in region_allocate()
112 region->last = r; in region_allocate()
133 region->last = new_region; in region_allocate()
137 region->allocated = new_region; in region_allocate()
178 void region_print(region_t region, FILE *f) in region_print() argument
184 (unsigned long long) region->min, in region_print()
185 (unsigned long long) region->max); in region_print()
186 for (r = region->allocated; r; r = r->next) { in region_print()