/linux-5.19.10/tools/testing/memblock/tests/ |
D | alloc_helpers_api.c | 29 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_from_simple_generic_check() 73 min_addr = memblock_end_of_DRAM() - (SMP_CACHE_BYTES * 2 - 1); in alloc_from_misaligned_generic_check() 82 assert(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(rgn->base == memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_top_down_high_addr_check() 161 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_from_top_down_no_space_above_check() 239 min_addr = memblock_end_of_DRAM() - SZ_8; in alloc_from_bottom_up_high_addr_check() 280 r2_size = memblock_end_of_DRAM() - min_addr; in alloc_from_bottom_up_no_space_above_check()
|
D | alloc_nid_api.c | 271 max_addr = memblock_end_of_DRAM(); in alloc_try_nid_min_reserved_generic_check() 321 max_addr = memblock_end_of_DRAM() - r1_size; in alloc_try_nid_max_reserved_generic_check() 375 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_try_nid_top_down_reserved_with_space_check() 437 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_try_nid_reserved_full_merge_generic_check() 500 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_try_nid_top_down_reserved_no_space_check() 564 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_try_nid_reserved_all_generic_check() 601 min_addr = memblock_end_of_DRAM() - SZ_1K; in alloc_try_nid_top_down_cap_max_check() 602 max_addr = memblock_end_of_DRAM() + SZ_256; in alloc_try_nid_top_down_cap_max_check() 612 assert(rgn->base == memblock_end_of_DRAM() - size); in alloc_try_nid_top_down_cap_max_check() 638 max_addr = memblock_end_of_DRAM(); in alloc_try_nid_top_down_cap_min_check() [all …]
|
D | alloc_api.c | 18 expected_start = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_simple_check() 66 r1.base = memblock_end_of_DRAM() - SZ_2; in alloc_top_down_disjoint_check() 70 expected_start = memblock_end_of_DRAM() - alignment; in alloc_top_down_disjoint_check() 113 memblock_reserve(memblock_end_of_DRAM() - total_size, r1_size); in alloc_top_down_before_check() 119 assert(rgn->base == memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check() 152 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_after_check() 194 r1.base = memblock_end_of_DRAM() - SZ_512; in alloc_top_down_second_fit_check() 245 r1.base = memblock_end_of_DRAM() - (gap_size + rgn_size); in alloc_in_between_generic_check() 292 while (region_end < memblock_end_of_DRAM()) { in alloc_small_gaps_generic_check()
|
/linux-5.19.10/arch/arm64/mm/ |
D | init.c | 210 return min(zone_mask, memblock_end_of_DRAM() - 1) + 1; in max_zone_phys() 293 if ((memblock_end_of_DRAM() - memstart_addr) > linear_region_size) in arm64_memblock_init() 303 if (memstart_addr + linear_region_size < memblock_end_of_DRAM()) { in arm64_memblock_init() 305 memstart_addr = round_up(memblock_end_of_DRAM() - linear_region_size, in arm64_memblock_init() 395 high_memory = __va(memblock_end_of_DRAM() - 1) + 1; in arm64_memblock_init() 403 max = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | mmzone.h | 39 #define memory_hotplug_max() memblock_end_of_DRAM() 43 #define memory_hotplug_max() memblock_end_of_DRAM()
|
/linux-5.19.10/arch/nios2/kernel/ |
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()
|
/linux-5.19.10/arch/sh/kernel/ |
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()
|
D | setup.c | 149 if (unlikely(end > memblock_end_of_DRAM())) { in check_for_initrd() 152 end, (unsigned long)memblock_end_of_DRAM()); in check_for_initrd()
|
/linux-5.19.10/arch/powerpc/kernel/ |
D | dma-swiotlb.c | 17 if ((memblock_end_of_DRAM() - 1) > 0xffffffff) in swiotlb_detect_4g()
|
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() 1429 fadump_release_memory(fw_dump.boot_mem_top, memblock_end_of_DRAM()); in fadump_invalidate_release_mem()
|
/linux-5.19.10/arch/s390/kernel/ |
D | numa.c | 33 NODE_DATA(0)->node_spanned_pages = memblock_end_of_DRAM() >> PAGE_SHIFT; in numa_setup()
|
/linux-5.19.10/arch/powerpc/mm/ |
D | numa.c | 819 if (start + size <= memblock_end_of_DRAM()) in numa_enforce_memory_limit() 822 if (start >= memblock_end_of_DRAM()) in numa_enforce_memory_limit() 825 return memblock_end_of_DRAM() - start; in numa_enforce_memory_limit() 1026 unsigned long top_of_ram = memblock_end_of_DRAM(); in setup_nonnuma() 1207 max_low_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in initmem_init() 1380 return max(hot_add_drconf_memory_max(), memblock_end_of_DRAM()); in memory_hotplug_max()
|
D | init_32.c | 135 total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr; in MMU_init()
|
D | mem.c | 168 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup() 227 phys_addr_t top_of_ram = memblock_end_of_DRAM(); in paging_init()
|
/linux-5.19.10/arch/arm/mach-keystone/ |
D | keystone.c | 71 mem_end = memblock_end_of_DRAM(); in keystone_pv_fixup()
|
/linux-5.19.10/arch/csky/kernel/ |
D | setup.c | 42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init()
|
/linux-5.19.10/arch/openrisc/kernel/ |
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()
|
/linux-5.19.10/arch/xtensa/mm/ |
D | init.c | 57 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
|
/linux-5.19.10/arch/arm/mm/ |
D | nommu.c | 140 end = memblock_end_of_DRAM(); in adjust_lowmem_bounds()
|
/linux-5.19.10/arch/mips/kernel/ |
D | setup.c | 272 ramend = memblock_end_of_DRAM(); in bootmem_init() 361 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
|
/linux-5.19.10/arch/mips/loongson64/ |
D | numa.c | 152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
|
/linux-5.19.10/arch/powerpc/platforms/cell/ |
D | iommu.c | 751 if (np && size < memblock_end_of_DRAM()) { in cell_iommu_init_disabled() 754 size >> 20, memblock_end_of_DRAM() >> 20); in cell_iommu_init_disabled() 1055 (!iommu_force_on && memblock_end_of_DRAM() <= 0x80000000ull)) in cell_iommu_init()
|
/linux-5.19.10/arch/powerpc/sysdev/ |
D | dart_iommu.c | 281 if (!iommu_force_on && memblock_end_of_DRAM() <= 0x40000000ull) in dart_init()
|
/linux-5.19.10/arch/loongarch/kernel/ |
D | setup.c | 177 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
|
/linux-5.19.10/drivers/base/ |
D | arch_numa.c | 424 phys_addr_t end = memblock_end_of_DRAM() - 1; in dummy_numa_init()
|