Lines Matching refs:rsvd_region

133 struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1] __initdata;  variable
165 range_end = min(end, rsvd_region[i].start); in filter_rsvd_memory()
173 prev_start = rsvd_region[i].end; in filter_rsvd_memory()
203 sort_regions (struct rsvd_region *rsvd_region, int max) in sort_regions() argument
210 if (rsvd_region[j].start > rsvd_region[j+1].start) { in sort_regions()
211 struct rsvd_region tmp; in sort_regions()
212 tmp = rsvd_region[j]; in sort_regions()
213 rsvd_region[j] = rsvd_region[j + 1]; in sort_regions()
214 rsvd_region[j + 1] = tmp; in sort_regions()
222 merge_regions (struct rsvd_region *rsvd_region, int max) in merge_regions() argument
226 if (rsvd_region[i].start >= rsvd_region[i-1].end) in merge_regions()
228 if (rsvd_region[i].end > rsvd_region[i-1].end) in merge_regions()
229 rsvd_region[i-1].end = rsvd_region[i].end; in merge_regions()
231 memmove(&rsvd_region[i], &rsvd_region[i+1], in merge_regions()
232 (max - i) * sizeof(struct rsvd_region)); in merge_regions()
286 sort_regions(rsvd_region, *n); in setup_crashkernel()
287 *n = merge_regions(rsvd_region, *n); in setup_crashkernel()
289 rsvd_region, *n); in setup_crashkernel()
307 rsvd_region[*n].start = in setup_crashkernel()
309 rsvd_region[*n].end = in setup_crashkernel()
369 rsvd_region[n].start = (unsigned long) ia64_boot_param; in reserve_memory()
370 rsvd_region[n].end = rsvd_region[n].start + sizeof(*ia64_boot_param); in reserve_memory()
373 rsvd_region[n].start = (unsigned long) __va(ia64_boot_param->efi_memmap); in reserve_memory()
374 rsvd_region[n].end = rsvd_region[n].start + ia64_boot_param->efi_memmap_size; in reserve_memory()
377 rsvd_region[n].start = (unsigned long) __va(ia64_boot_param->command_line); in reserve_memory()
378 rsvd_region[n].end = (rsvd_region[n].start in reserve_memory()
382 rsvd_region[n].start = (unsigned long) ia64_imva((void *)KERNEL_START); in reserve_memory()
383 rsvd_region[n].end = (unsigned long) ia64_imva(_end); in reserve_memory()
388 rsvd_region[n].start = (unsigned long)__va(ia64_boot_param->initrd_start); in reserve_memory()
389 rsvd_region[n].end = rsvd_region[n].start + ia64_boot_param->initrd_size; in reserve_memory()
395 if (reserve_elfcorehdr(&rsvd_region[n].start, in reserve_memory()
396 &rsvd_region[n].end) == 0) in reserve_memory()
400 total_memory = efi_memmap_init(&rsvd_region[n].start, &rsvd_region[n].end); in reserve_memory()
406 rsvd_region[n].start = ~0UL; in reserve_memory()
407 rsvd_region[n].end = ~0UL; in reserve_memory()
413 sort_regions(rsvd_region, num_rsvd_regions); in reserve_memory()
414 num_rsvd_regions = merge_regions(rsvd_region, num_rsvd_regions); in reserve_memory()
418 struct rsvd_region *region = &rsvd_region[n]; in reserve_memory()