Home
last modified time | relevance | path

Searched refs:memblock_end_of_DRAM (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.6.21/tools/testing/memblock/tests/
Dalloc_helpers_api.c28 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()
Dalloc_api.c34 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()
Dalloc_nid_api.c323 max_addr = memblock_end_of_DRAM(); in alloc_nid_min_reserved_generic_check()
374 max_addr = memblock_end_of_DRAM() - r1_size; in alloc_nid_max_reserved_generic_check()
429 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_nid_top_down_reserved_with_space_check()
492 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_nid_reserved_full_merge_generic_check()
556 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES * 2; in alloc_nid_top_down_reserved_no_space_check()
622 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_nid_reserved_all_generic_check()
661 min_addr = memblock_end_of_DRAM() - SZ_1K; in alloc_nid_top_down_cap_max_check()
662 max_addr = memblock_end_of_DRAM() + SZ_256; in alloc_nid_top_down_cap_max_check()
672 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - size); in alloc_nid_top_down_cap_max_check()
699 max_addr = memblock_end_of_DRAM(); in alloc_nid_top_down_cap_min_check()
[all …]
Dalloc_exact_nid_api.c43 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()
/linux-6.6.21/arch/arm64/mm/
Dinit.c254 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()
/linux-6.6.21/arch/powerpc/include/asm/
Dmmzone.h39 #define memory_hotplug_max() memblock_end_of_DRAM()
43 #define memory_hotplug_max() memblock_end_of_DRAM()
/linux-6.6.21/arch/nios2/kernel/
Dsetup.c147 *max_high = PFN_DOWN(memblock_end_of_DRAM()); in find_limits()
155 memory_end = memblock_end_of_DRAM(); in setup_arch()
/linux-6.6.21/arch/sh/kernel/
Dmachine_kexec.c168 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()
Dsetup.c150 if (unlikely(end > memblock_end_of_DRAM())) { in check_for_initrd()
153 end, (unsigned long)memblock_end_of_DRAM()); in check_for_initrd()
/linux-6.6.21/arch/powerpc/kernel/
Ddma-swiotlb.c17 if ((memblock_end_of_DRAM() - 1) > 0xffffffff) in swiotlb_detect_4g()
Dfadump.c583 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()
/linux-6.6.21/arch/s390/kernel/
Dnuma.c33 NODE_DATA(0)->node_spanned_pages = memblock_end_of_DRAM() >> PAGE_SHIFT; in numa_setup()
/linux-6.6.21/arch/powerpc/mm/
Dnuma.c822 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()
Dinit_32.c85 total_lowmem = total_memory = memblock_end_of_DRAM() - memstart_addr; in MMU_init()
Dmem.c170 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()
/linux-6.6.21/arch/arm/mach-keystone/
Dkeystone.c110 mem_end = memblock_end_of_DRAM(); in keystone_pv_fixup()
/linux-6.6.21/arch/csky/kernel/
Dsetup.c42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init()
/linux-6.6.21/arch/openrisc/kernel/
Dsetup.c56 memory_end = memblock_end_of_DRAM(); in setup_memory()
63 ram_end_pfn = PFN_DOWN(memblock_end_of_DRAM()); in setup_memory()
/linux-6.6.21/arch/loongarch/kernel/
Dnuma.c366 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()
Dsetup.c203 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
307 max_low_pfn = PFN_PHYS(memblock_end_of_DRAM()); in fdt_setup()
/linux-6.6.21/arch/arm/mm/
Dnommu.c148 end = memblock_end_of_DRAM(); in adjust_lowmem_bounds()
/linux-6.6.21/arch/xtensa/mm/
Dinit.c57 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
/linux-6.6.21/arch/mips/loongson64/
Dnuma.c152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
/linux-6.6.21/arch/mips/kernel/
Dsetup.c276 ramend = memblock_end_of_DRAM(); in bootmem_init()
365 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
/linux-6.6.21/arch/powerpc/platforms/cell/
Diommu.c753 if (np && size < memblock_end_of_DRAM()) { in cell_iommu_init_disabled()
756 size >> 20, memblock_end_of_DRAM() >> 20); in cell_iommu_init_disabled()
1057 (!iommu_force_on && memblock_end_of_DRAM() <= 0x80000000ull)) in cell_iommu_init()

12