Lines Matching +full:high +full:- +full:end
1 // SPDX-License-Identifier: GPL-2.0
8 resource_size_t end) in resource_clip() argument
10 resource_size_t low = 0, high = 0; in resource_clip() local
12 if (res->end < start || res->start > end) in resource_clip()
15 if (res->start < start) in resource_clip()
16 low = start - res->start; in resource_clip()
18 if (res->end > end) in resource_clip()
19 high = res->end - end; in resource_clip()
22 if (low > high) in resource_clip()
23 res->end = start - 1; in resource_clip()
25 res->start = end + 1; in resource_clip()
38 for (i = 0; i < e820_table->nr_entries; i++) { in remove_e820_regions()
39 entry = &e820_table->entries[i]; in remove_e820_regions()
40 e820_start = entry->addr; in remove_e820_regions()
41 e820_end = entry->addr + entry->size - 1; in remove_e820_regions()
44 if (orig.start != avail->start || orig.end != avail->end) { in remove_e820_regions()
45 pr_info("resource: avoiding allocation from e820 entry [mem %#010Lx-%#010Lx]\n", in remove_e820_regions()
47 if (avail->end > avail->start) in remove_e820_regions()
53 pr_info("resource: remaining [mem %pa-%pa] available\n", in remove_e820_regions()
54 &avail->start, &avail->end); in remove_e820_regions()
63 * Trim out BIOS area (high 2MB) and E820 regions. We do not remove in arch_remove_reservations()
67 if (avail->flags & IORESOURCE_MEM) { in arch_remove_reservations()