Home
last modified time | relevance | path

Searched refs:max_low_pfn (Results 1 – 25 of 66) sorted by relevance

123

/openbmc/linux/arch/x86/mm/
H A Dnuma_32.c38 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()
H A Dinit_32.c453 for (pfn = max_low_pfn; pfn < 1<<(32-PAGE_SHIFT); pfn++) { in native_pagetable_init()
557 max_low_pfn = max_pfn; in lowmem_pfn_init()
568 if (max_low_pfn - highmem_pages < 64*1024*1024/PAGE_SIZE) { in lowmem_pfn_init()
573 max_low_pfn -= highmem_pages; in lowmem_pfn_init()
592 max_low_pfn = MAXMEM_PFN; in highmem_pfn_init()
642 if (max_pfn > max_low_pfn) in initmem_init()
643 highstart_pfn = max_low_pfn; in initmem_init()
648 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE - 1) + 1; in initmem_init()
654 max_mapnr = IS_ENABLED(CONFIG_HIGHMEM) ? highend_pfn : max_low_pfn; in initmem_init()
659 pages_to_mb(max_low_pfn)); in initmem_init()
[all …]
H A Dphysaddr.c79 if (max_low_pfn) { in __phys_addr()
80 VIRTUAL_BUG_ON((phys_addr >> PAGE_SHIFT) > max_low_pfn); in __phys_addr()
H A Dinit.c355 if ((end >> PAGE_SHIFT) > max_low_pfn) in adjust_range_page_size_mask()
761 end = max_low_pfn << PAGE_SHIFT; in init_mem_mapping()
791 if (max_pfn > max_low_pfn) { in init_mem_mapping()
793 max_low_pfn = max_pfn; in init_mem_mapping()
1043 max_zone_pfns[ZONE_DMA] = min(MAX_DMA_PFN, max_low_pfn); in zone_sizes_init()
1046 max_zone_pfns[ZONE_DMA32] = min(MAX_DMA32_PFN, max_low_pfn); in zone_sizes_init()
1048 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in zone_sizes_init()
/openbmc/linux/arch/xtensa/mm/
H A Dinit.c58 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()
153 (max_low_pfn - min_low_pfn) * PAGE_SIZE, in mem_init()
155 min_low_pfn * PAGE_SIZE, max_low_pfn * PAGE_SIZE, in mem_init()
157 ((max_low_pfn - min_low_pfn) * PAGE_SIZE) >> 20, in mem_init()
/openbmc/linux/arch/csky/kernel/
H A Dsetup.c42 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()
52 max_low_pfn = min_low_pfn + sseg_size; in csky_memblock_init()
55 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in csky_memblock_init()
57 mmu_init(min_low_pfn, max_low_pfn); in csky_memblock_init()
62 highstart_pfn = max_low_pfn; in csky_memblock_init()
65 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in csky_memblock_init()
/openbmc/linux/arch/microblaze/mm/
H A Dinit.c46 EXPORT_SYMBOL(max_low_pfn);
60 for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { in highmem_setup()
88 zones_size[ZONE_DMA] = max_low_pfn; in paging_init()
114 max_low_pfn = ((u64)memory_start + (u64)lowmem_size) >> PAGE_SHIFT; in setup_memory()
119 pr_info("%s: max_low_pfn: %#lx\n", __func__, max_low_pfn); in setup_memory()
140 return pfn < max_low_pfn; in page_is_ram()
/openbmc/linux/arch/sparc/mm/
H A Dinit_32.c67 if (end_pfn <= max_low_pfn) in calc_highpages()
70 if (start_pfn < max_low_pfn) in calc_highpages()
71 start_pfn = max_low_pfn; in calc_highpages()
178 max_low_pfn = max_pfn; in bootmem_init()
181 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init()
183 max_low_pfn = calc_max_low_pfn(); in bootmem_init()
200 memblock_set_current_limit(max_low_pfn << PAGE_SHIFT); in bootmem_init()
279 high_memory = __va(max_low_pfn << PAGE_SHIFT); in mem_init()
/openbmc/linux/arch/loongarch/kernel/
H A Dmem.c34 if (max_low_pfn < (mem_end >> PAGE_SHIFT)) in memblock_init()
35 max_low_pfn = mem_end >> PAGE_SHIFT; in memblock_init()
52 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in memblock_init()
H A Dnuma.c248 max_pfn = max_low_pfn; in numa_meminfo_cover_memory()
406 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in init_numa_memory()
427 if (end_pfn > max_low_pfn) in paging_init()
428 max_low_pfn = end_pfn; in paging_init()
433 zones_size[ZONE_NORMAL] = max_low_pfn; in paging_init()
439 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in mem_init()
/openbmc/linux/arch/arc/mm/
H A Dinit.c94 max_low_pfn = max_pfn = PFN_DOWN(low_mem_start + low_mem_sz); in setup_arch_memory()
126 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in setup_arch_memory()
160 max_mapnr = max_low_pfn - min_low_pfn; in setup_arch_memory()
199 (pfn >= min_low_pfn && pfn <= max_low_pfn); in pfn_valid()
/openbmc/linux/arch/ia64/mm/
H A Dcontig.c152 max_low_pfn = 0; in find_memory()
154 max_pfn = max_low_pfn; in find_memory()
156 memblock_add_node(0, PFN_PHYS(max_low_pfn), 0, MEMBLOCK_NONE); in find_memory()
202 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c225 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in finalize_initrd()
321 if (end > max_low_pfn) in bootmem_init()
322 max_low_pfn = end; in bootmem_init()
325 if (min_low_pfn >= max_low_pfn) in bootmem_init()
329 max_low_pfn = PFN_DOWN(HIGHMEM_START); in bootmem_init()
331 highstart_pfn = max_low_pfn; in bootmem_init()
334 max_pfn = max_low_pfn; in bootmem_init()
669 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in arch_mem_init()
688 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init()
694 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
/openbmc/linux/arch/hexagon/mm/
H A Dinit.c101 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in paging_init()
168 max_low_pfn = bootmem_lastpg - PFN_DOWN(DMA_RESERVED_BYTES); in setup_arch_memory()
170 memblock_reserve(PFN_PHYS(max_low_pfn), DMA_RESERVED_BYTES); in setup_arch_memory()
175 printk(KERN_INFO "max_low_pfn: 0x%08lx\n", max_low_pfn); in setup_arch_memory()
/openbmc/linux/arch/powerpc/mm/
H A Dmem.c120 max_low_pfn = end_pfn; in update_end_of_memory_vars()
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()
257 max_zone_pfns[ZONE_DMA] = min(max_low_pfn, in paging_init()
260 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init()
/openbmc/linux/arch/mips/mm/
H A Dinit.c415 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init()
419 if (cpu_has_dc_aliases && max_low_pfn != highend_pfn) { in paging_init()
422 (highend_pfn - max_low_pfn) << (PAGE_SHIFT - 10)); in paging_init()
423 max_zone_pfns[ZONE_HIGHMEM] = max_low_pfn; in paging_init()
426 max_mapnr = highend_pfn ? highend_pfn : max_low_pfn; in paging_init()
428 max_mapnr = max_low_pfn; in paging_init()
430 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in paging_init()
/openbmc/linux/arch/x86/power/
H A Dhibernate_32.c98 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()
/openbmc/linux/arch/openrisc/mm/
H A Dinit.c48 max_zone_pfn[ZONE_NORMAL] = max_low_pfn; in zone_sizes_init()
196 max_mapnr = max_low_pfn; in mem_init()
197 high_memory = (void *)__va(max_low_pfn * PAGE_SIZE); in mem_init()
/openbmc/linux/arch/mips/loongson64/
H A Dnuma.c122 max_low_pfn = end_pfn; in node_mem_init()
152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
175 zones_size[ZONE_NORMAL] = max_low_pfn; in paging_init()
/openbmc/linux/arch/csky/mm/
H A Dinit.c55 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in setup_initrd()
91 set_max_mapnr(max_low_pfn - ARCH_PFN_OFFSET); in mem_init()
93 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in mem_init()
/openbmc/linux/arch/alpha/kernel/
H A Dsetup.c325 if (end > max_low_pfn) in setup_memory()
326 max_low_pfn = end; in setup_memory()
357 if (mem_size_limit && max_low_pfn >= mem_size_limit) in setup_memory()
361 max_low_pfn << (PAGE_SHIFT - 10)); in setup_memory()
362 max_low_pfn = mem_size_limit; in setup_memory()
376 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { in setup_memory()
377 if (!move_initrd(PFN_PHYS(max_low_pfn))) in setup_memory()
381 phys_to_virt(PFN_PHYS(max_low_pfn))); in setup_memory()
1254 if (maxsize > (max_low_pfn + 1) << PAGE_SHIFT) in external_cache_probe()
1255 maxsize = 1 << (ilog2(max_low_pfn + 1) + PAGE_SHIFT); in external_cache_probe()
/openbmc/linux/arch/nios2/kernel/
H A Dsetup.c163 find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); in setup_arch()
164 max_mapnr = max_low_pfn; in setup_arch()
/openbmc/linux/arch/s390/mm/
H A Dinit.c102 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init()
162 set_max_mapnr(max_low_pfn); in mem_init()
163 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); in mem_init()
/openbmc/linux/arch/loongarch/mm/
H A Dinit.c73 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; in paging_init()
80 max_mapnr = max_low_pfn; in mem_init()
81 high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT); in mem_init()
/openbmc/linux/arch/arm/mm/
H A Dinit.c209 find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); in bootmem_init()
212 (phys_addr_t)max_low_pfn << PAGE_SHIFT); in bootmem_init()
225 zone_sizes_init(min_low_pfn, max_low_pfn, max_pfn); in bootmem_init()
242 unsigned long max_low = max_low_pfn; in free_highpages()

123