/openbmc/linux/tools/testing/memblock/tests/ |
H A D | alloc_helpers_api.c | 28 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_from_simple_generic_check() 72 min_addr = memblock_end_of_DRAM() - (SMP_CACHE_BYTES * 2 - 1); in alloc_from_misaligned_generic_check() 80 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_misaligned_generic_check() 119 min_addr = memblock_end_of_DRAM() - SZ_16; in alloc_from_top_down_high_addr_check() 125 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_top_down_high_addr_check() 163 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_from_top_down_no_space_above_check() 245 min_addr = memblock_end_of_DRAM() - SZ_8; in alloc_from_bottom_up_high_addr_check() 288 r2_size = memblock_end_of_DRAM() - min_addr; in alloc_from_bottom_up_no_space_above_check()
|
H A D | alloc_api.c | 34 expected_start = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_simple_check() 86 r1.base = memblock_end_of_DRAM() - SZ_2; in alloc_top_down_disjoint_check() 90 expected_start = memblock_end_of_DRAM() - alignment; in alloc_top_down_disjoint_check() 137 memblock_reserve(memblock_end_of_DRAM() - total_size, r1_size); in alloc_top_down_before_check() 145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check() 180 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_after_check() 226 r1.base = memblock_end_of_DRAM() - SZ_512; in alloc_top_down_second_fit_check() 281 r1.base = memblock_end_of_DRAM() - (gap_size + rgn_size); in alloc_in_between_generic_check() 332 while (region_end < memblock_end_of_DRAM()) { in alloc_small_gaps_generic_check()
|
H A D | alloc_nid_api.c | 323 max_addr = memblock_end_of_DRAM(); in alloc_nid_min_reserved_generic_check() 699 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_cap_min_check() 1259 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_numa_simple_check() 1311 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_numa_small_node_check() 1364 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_numa_node_reserved_check() 1419 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_numa_part_reserved_check() 1480 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_numa_part_reserved_fallback_check() 1803 max_addr = memblock_end_of_DRAM(); in alloc_nid_bottom_up_numa_simple_check() 1855 max_addr = memblock_end_of_DRAM(); in alloc_nid_bottom_up_numa_small_node_check() 1909 max_addr = memblock_end_of_DRAM(); in alloc_nid_bottom_up_numa_node_reserved_check() [all …]
|
H A D | alloc_exact_nid_api.c | 43 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_top_down_numa_simple_check() 98 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_top_down_numa_part_reserved_check() 312 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_bottom_up_numa_simple_check() 368 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_bottom_up_numa_part_reserved_check() 591 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_numa_small_node_generic_check() 632 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_numa_node_reserved_generic_check() 680 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_numa_part_reserved_fail_generic_check() 804 max_addr = memblock_end_of_DRAM(); in alloc_exact_nid_numa_large_region_generic_check() 925 r2.size = memblock_end_of_DRAM() - r2.base; in alloc_exact_nid_numa_split_all_reserved_generic_check()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | mmzone.h | 39 #define memory_hotplug_max() memblock_end_of_DRAM() 43 #define memory_hotplug_max() memblock_end_of_DRAM()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | init.c | 254 return min(zone_mask, memblock_end_of_DRAM() - 1) + 1; in max_zone_phys() 339 if ((memblock_end_of_DRAM() - memstart_addr) > linear_region_size) in arm64_memblock_init() 349 if (memstart_addr + linear_region_size < memblock_end_of_DRAM()) { in arm64_memblock_init() 351 memstart_addr = round_up(memblock_end_of_DRAM() - linear_region_size, in arm64_memblock_init() 438 high_memory = __va(memblock_end_of_DRAM() - 1) + 1; in arm64_memblock_init() 446 max = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
|
/openbmc/linux/arch/nios2/kernel/ |
H A D | setup.c | 147 *max_high = PFN_DOWN(memblock_end_of_DRAM()); in find_limits() 155 memory_end = memblock_end_of_DRAM(); in setup_arch()
|
/openbmc/linux/arch/sh/kernel/ |
H A D | machine_kexec.c | 168 unsigned long max = memblock_end_of_DRAM() - memory_limit; in reserve_crashkernel() 189 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel()
|
H A D | setup.c | 150 if (unlikely(end > memblock_end_of_DRAM())) { in check_for_initrd() 153 end, (unsigned long)memblock_end_of_DRAM()); in check_for_initrd()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | dma-swiotlb.c | 17 if ((memblock_end_of_DRAM() - 1) > 0xffffffff) in swiotlb_detect_4g()
|
H A D | fadump.c | 583 if (memory_limit && memory_limit < memblock_end_of_DRAM()) { in fadump_reserve_mem() 585 if ((memory_limit + size) < memblock_end_of_DRAM()) in fadump_reserve_mem() 588 memory_limit = memblock_end_of_DRAM(); in fadump_reserve_mem() 595 mem_boundary = memblock_end_of_DRAM(); in fadump_reserve_mem() 1430 fadump_release_memory(fw_dump.boot_mem_top, memblock_end_of_DRAM()); in fadump_invalidate_release_mem()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | numa.c | 33 NODE_DATA(0)->node_spanned_pages = memblock_end_of_DRAM() >> PAGE_SHIFT; in numa_setup()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | init_32.c | 85 total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr; in MMU_init()
|
H A D | numa.c | 822 if (start + size <= memblock_end_of_DRAM()) in numa_enforce_memory_limit() 825 if (start >= memblock_end_of_DRAM()) in numa_enforce_memory_limit() 828 return memblock_end_of_DRAM() - start; in numa_enforce_memory_limit() 1029 unsigned long top_of_ram = memblock_end_of_DRAM(); in setup_nonnuma() 1166 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup() 1375 return max(hot_add_drconf_memory_max(), memblock_end_of_DRAM()); in memory_hotplug_max()
|
H A D | mem.c | 170 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup() 229 phys_addr_t top_of_ram = memblock_end_of_DRAM(); in paging_init()
|
/openbmc/linux/arch/arm/mach-keystone/ |
H A D | keystone.c | 110 mem_end = memblock_end_of_DRAM(); in keystone_pv_fixup()
|
/openbmc/linux/arch/csky/kernel/ |
H A D | setup.c | 42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init()
|
/openbmc/linux/arch/openrisc/kernel/ |
H A D | setup.c | 56 memory_end = memblock_end_of_DRAM(); in setup_memory() 63 ram_end_pfn = PFN_DOWN(memblock_end_of_DRAM()); in setup_memory()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | numa.c | 366 phys_addr_t end = memblock_end_of_DRAM() - 1; in fake_numa_init() 406 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in init_numa_memory()
|
H A D | setup.c | 206 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem() 310 max_low_pfn = PFN_PHYS(memblock_end_of_DRAM()); in fdt_setup()
|
/openbmc/linux/arch/arm/mm/ |
H A D | nommu.c | 148 end = memblock_end_of_DRAM(); in adjust_lowmem_bounds()
|
/openbmc/linux/arch/xtensa/mm/ |
H A D | init.c | 57 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
|
/openbmc/linux/arch/mips/loongson64/ |
H A D | numa.c | 152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | tlb_64e.c | 287 linear_map_top = memblock_end_of_DRAM(); in early_init_mmu_global()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | setup.c | 276 ramend = memblock_end_of_DRAM(); in bootmem_init() 365 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
|