/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | init.c | 58 max_low_pfn = min(max_pfn, MAX_LOW_PFN); in bootmem_init() 61 (phys_addr_t)max_low_pfn << PAGE_SHIFT); in bootmem_init() 63 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in bootmem_init() 64 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in bootmem_init() 74 [ZONE_NORMAL] = max_low_pfn, in zones_init() 85 unsigned long max_low = max_low_pfn; in free_highpages() 118 high_memory = (void *)__va(max_low_pfn << PAGE_SHIFT); in mem_init() 154 (max_low_pfn - min_low_pfn) * PAGE_SIZE, in mem_init() 156 min_low_pfn * PAGE_SIZE, max_low_pfn * PAGE_SIZE, in mem_init() 158 ((max_low_pfn - min_low_pfn) * PAGE_SIZE) >> 20, in mem_init()
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | numa_32.c | 38 if (max_pfn > max_low_pfn) in initmem_init() 39 highstart_pfn = max_low_pfn; in initmem_init() 44 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; in initmem_init() 47 pages_to_mb(max_low_pfn)); in initmem_init() 49 max_low_pfn, highstart_pfn); in initmem_init() 52 (ulong) pfn_to_kaddr(max_low_pfn)); in initmem_init()
|
D | init_32.c | 475 for (pfn = max_low_pfn; pfn < 1<<(32-PAGE_SHIFT); pfn++) { in native_pagetable_init() 587 max_low_pfn = max_pfn; in lowmem_pfn_init() 598 if (max_low_pfn - highmem_pages < 64*1024*1024/PAGE_SIZE) { in lowmem_pfn_init() 603 max_low_pfn -= highmem_pages; in lowmem_pfn_init() 622 max_low_pfn = MAXMEM_PFN; in highmem_pfn_init() 672 if (max_pfn > max_low_pfn) in initmem_init() 673 highstart_pfn = max_low_pfn; in initmem_init() 678 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; in initmem_init() 684 max_mapnr = IS_ENABLED(CONFIG_HIGHMEM) ? highend_pfn : max_low_pfn; in initmem_init() 689 pages_to_mb(max_low_pfn)); in initmem_init() [all …]
|
D | physaddr.c | 79 if (max_low_pfn) { in __phys_addr() 80 VIRTUAL_BUG_ON((phys_addr >> PAGE_SHIFT) > max_low_pfn); in __phys_addr()
|
D | init.c | 337 if ((end >> PAGE_SHIFT) > max_low_pfn) in adjust_range_page_size_mask() 727 end = max_low_pfn << PAGE_SHIFT; in init_mem_mapping() 757 if (max_pfn > max_low_pfn) { in init_mem_mapping() 759 max_low_pfn = max_pfn; in init_mem_mapping() 1006 max_zone_pfns[ZONE_DMA] = min(MAX_DMA_PFN, max_low_pfn); in zone_sizes_init() 1009 max_zone_pfns[ZONE_DMA32] = min(MAX_DMA32_PFN, max_low_pfn); in zone_sizes_init() 1011 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in zone_sizes_init()
|
/kernel/linux/linux-5.10/arch/csky/kernel/ |
D | setup.c | 42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init() 47 max_low_pfn = min_low_pfn + lowmem_size; in csky_memblock_init() 50 max_low_pfn = min_low_pfn + sseg_size; in csky_memblock_init() 53 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in csky_memblock_init() 58 highstart_pfn = max_low_pfn; in csky_memblock_init() 61 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in csky_memblock_init()
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
D | init_32.c | 68 if (end_pfn <= max_low_pfn) in calc_highpages() 71 if (start_pfn < max_low_pfn) in calc_highpages() 72 start_pfn = max_low_pfn; in calc_highpages() 179 max_low_pfn = max_pfn; in bootmem_init() 182 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init() 184 max_low_pfn = calc_max_low_pfn(); in bootmem_init() 201 memblock_set_current_limit(max_low_pfn << PAGE_SHIFT); in bootmem_init() 280 high_memory = __va(max_low_pfn << PAGE_SHIFT); in mem_init()
|
/kernel/linux/linux-5.10/arch/alpha/mm/ |
D | numa.c | 127 if (node_max_pfn > max_low_pfn) in setup_memory_node() 128 max_pfn = max_low_pfn = node_max_pfn; in setup_memory_node() 171 max_low_pfn = 0UL; in setup_memory() 187 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { in setup_memory() 188 if (!move_initrd(PFN_PHYS(max_low_pfn))) in setup_memory() 192 phys_to_virt(PFN_PHYS(max_low_pfn))); in setup_memory()
|
D | init.c | 249 max_pfn = max_low_pfn; in paging_init() 282 set_max_mapnr(max_low_pfn); in mem_init() 283 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); in mem_init()
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | contig.c | 154 max_low_pfn = 0; in find_memory() 156 max_pfn = max_low_pfn; in find_memory() 161 memblock_add_node(0, PFN_PHYS(max_low_pfn), 0); in find_memory() 184 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init() 195 map_size = PAGE_ALIGN(ALIGN(max_low_pfn, MAX_ORDER_NR_PAGES) * in paging_init()
|
/kernel/linux/linux-5.10/arch/microblaze/mm/ |
D | init.c | 50 EXPORT_SYMBOL(max_low_pfn); 69 for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { in highmem_setup() 99 zones_size[ZONE_DMA] = max_low_pfn; in paging_init() 159 max_low_pfn = ((u64)memory_start + (u64)lowmem_size) >> PAGE_SHIFT; in setup_memory() 164 pr_info("%s: max_low_pfn: %#lx\n", __func__, max_low_pfn); in setup_memory() 192 return pfn < max_low_pfn; in page_is_ram()
|
/kernel/linux/linux-5.10/arch/hexagon/mm/ |
D | init.c | 104 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in paging_init() 171 max_low_pfn = bootmem_lastpg - PFN_DOWN(DMA_RESERVED_BYTES); in setup_arch_memory() 173 memblock_reserve(PFN_PHYS(max_low_pfn), DMA_RESERVED_BYTES); in setup_arch_memory() 178 printk(KERN_INFO "max_low_pfn: 0x%08lx\n", max_low_pfn); in setup_arch_memory()
|
/kernel/linux/linux-5.10/arch/openrisc/mm/ |
D | init.c | 52 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in zone_sizes_init() 148 end = (unsigned long)__va(max_low_pfn * PAGE_SIZE); in paging_init() 205 max_mapnr = max_low_pfn; in mem_init() 206 high_memory = (void *)__va(max_low_pfn * PAGE_SIZE); in mem_init()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | setup.c | 218 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in finalize_initrd() 314 if (end > max_low_pfn) in bootmem_init() 315 max_low_pfn = end; in bootmem_init() 318 if (min_low_pfn >= max_low_pfn) in bootmem_init() 326 max_low_pfn = PFN_DOWN(HIGHMEM_START); in bootmem_init() 327 max_pfn = max_low_pfn; in bootmem_init() 654 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in arch_mem_init() 683 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init() 693 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
|
/kernel/linux/linux-5.10/arch/arc/mm/ |
D | init.c | 104 max_low_pfn = max_pfn = PFN_DOWN(low_mem_start + low_mem_sz); in setup_arch_memory() 108 max_mapnr = max_low_pfn - min_low_pfn; in setup_arch_memory() 141 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in setup_arch_memory()
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
D | init.c | 414 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init() 418 if (cpu_has_dc_aliases && max_low_pfn != highend_pfn) { in paging_init() 421 (highend_pfn - max_low_pfn) << (PAGE_SHIFT - 10)); in paging_init() 422 max_zone_pfns[ZONE_HIGHMEM] = max_low_pfn; in paging_init() 464 max_mapnr = highend_pfn ? highend_pfn : max_low_pfn; in mem_init() 466 max_mapnr = max_low_pfn; in mem_init() 468 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in mem_init()
|
/kernel/linux/linux-5.10/arch/x86/power/ |
D | hibernate_32.c | 98 if (pfn >= max_low_pfn) in resume_physical_mapping_init() 102 if (pfn >= max_low_pfn) in resume_physical_mapping_init() 121 if (pfn >= max_low_pfn) in resume_physical_mapping_init()
|
/kernel/linux/linux-5.10/arch/csky/mm/ |
D | init.c | 49 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in setup_initrd() 85 max_mapnr = max_low_pfn; in mem_init() 87 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in mem_init()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | mem.c | 170 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup() 173 max_low_pfn = lowmem_end_addr >> PAGE_SHIFT; in mem_topology_setup() 259 max_zone_pfns[ZONE_DMA] = min(max_low_pfn, in paging_init() 262 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init() 295 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); in mem_init()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | setup.c | 329 if (end > max_low_pfn) in setup_memory() 330 max_low_pfn = end; in setup_memory() 361 if (mem_size_limit && max_low_pfn >= mem_size_limit) in setup_memory() 365 max_low_pfn << (PAGE_SHIFT - 10)); in setup_memory() 366 max_low_pfn = mem_size_limit; in setup_memory() 380 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { in setup_memory() 381 if (!move_initrd(PFN_PHYS(max_low_pfn))) in setup_memory() 385 phys_to_virt(PFN_PHYS(max_low_pfn))); in setup_memory() 1268 if (maxsize > (max_low_pfn + 1) << PAGE_SHIFT) in external_cache_probe() 1269 maxsize = 1 << (ilog2(max_low_pfn + 1) + PAGE_SHIFT); in external_cache_probe()
|
/kernel/linux/linux-5.10/arch/nios2/kernel/ |
D | setup.c | 165 max_low_pfn = PFN_DOWN(memory_end); in setup_arch() 166 max_mapnr = max_low_pfn; in setup_arch()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | init.c | 124 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init() 193 set_max_mapnr(max_low_pfn); in mem_init() 194 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); in mem_init()
|
/kernel/linux/linux-5.10/arch/mips/loongson64/ |
D | numa.c | 175 max_low_pfn = end_pfn; in node_mem_init() 205 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit() 228 zones_size[ZONE_NORMAL] = max_low_pfn; in paging_init()
|
/kernel/linux/linux-5.10/arch/riscv/mm/ |
D | init.c | 54 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in zone_sizes_init() 101 high_memory = (void *)(__va(PFN_PHYS(max_low_pfn))); in mem_init() 197 max_low_pfn = max_pfn; in setup_bootmem() 198 dma32_phys_limit = min(4UL * SZ_1G, (unsigned long)PFN_PHYS(max_low_pfn)); in setup_bootmem() 199 set_max_mapnr(max_low_pfn); in setup_bootmem() 631 unsigned long max_low = (unsigned long)(__va(PFN_PHYS(max_low_pfn))); in mark_rodata_ro()
|
/kernel/linux/linux-5.10/arch/h8300/kernel/ |
D | setup.c | 85 max_low_pfn = PFN_DOWN(memory_end); in bootmem_init() 86 max_pfn = max_low_pfn; in bootmem_init()
|