Home
last modified time | relevance | path

Searched refs:max_pfn (Results 1 – 25 of 57) sorted by relevance

123

/arch/csky/kernel/
Dsetup.c42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init()
44 size = max_pfn - min_low_pfn; in csky_memblock_init()
60 max_zone_pfn[ZONE_HIGHMEM] = max_pfn; in csky_memblock_init()
63 highend_pfn = max_pfn; in csky_memblock_init()
/arch/x86/mm/
Dinit_32.c574 max_low_pfn = max_pfn; in lowmem_pfn_init()
579 if (highmem_pages >= max_pfn) { in lowmem_pfn_init()
581 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init()
612 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init()
614 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init()
615 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init()
617 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init()
619 pages_to_mb(max_pfn - MAXMEM_PFN), in highmem_pfn_init()
626 if (max_pfn > MAX_NONPAE_PFN) in highmem_pfn_init()
630 max_pfn = MAXMEM_PFN; in highmem_pfn_init()
[all …]
Dnuma_32.c37 highstart_pfn = highend_pfn = max_pfn; in initmem_init()
38 if (max_pfn > max_low_pfn) in initmem_init()
Dnuma.c241 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo()
469 e820ram = max_pfn - absent_pages_in_range(0, max_pfn); in numa_meminfo_cover_memory()
591 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks()
703 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init()
706 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
/arch/microblaze/mm/
Dinit.c59 for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { in highmem_setup()
88 zones_size[ZONE_HIGHMEM] = max_pfn; in paging_init()
90 zones_size[ZONE_DMA] = max_pfn; in paging_init()
114 max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; in setup_memory()
119 pr_info("%s: max_pfn: %#lx\n", __func__, max_pfn); in setup_memory()
/arch/xtensa/mm/
Dinit.c57 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
58 max_low_pfn = min(max_pfn, MAX_LOW_PFN); in bootmem_init()
76 [ZONE_HIGHMEM] = max_pfn, in zones_init()
117 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
/arch/x86/include/asm/
Dpage_64.h11 extern unsigned long max_pfn;
40 #define pfn_valid(pfn) ((pfn) < max_pfn)
/arch/powerpc/mm/
Dmem.c115 if (end_pfn > max_pfn) { in update_end_of_memory_vars()
116 max_pfn = end_pfn; in update_end_of_memory_vars()
118 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in update_end_of_memory_vars()
167 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup()
259 max_zone_pfns[ZONE_HIGHMEM] = max_pfn; in paging_init()
/arch/x86/xen/
Dsetup.c730 unsigned long max_pfn, pfn_s, n_pfns; in xen_memory_setup() local
741 max_pfn = xen_get_pages_limit(); in xen_memory_setup()
742 max_pfn = min(max_pfn, xen_start_info->nr_pages); in xen_memory_setup()
743 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup()
787 max_pages += xen_foreach_remap_area(max_pfn, xen_count_remap_pages); in xen_memory_setup()
789 if (max_pages > max_pfn) in xen_memory_setup()
790 extra_pages += max_pages - max_pfn; in xen_memory_setup()
799 extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
800 extra_pages, max_pages - max_pfn); in xen_memory_setup()
897 xen_foreach_remap_area(max_pfn, xen_set_identity_and_remap_chunk); in xen_memory_setup()
Dpci-swiotlb-xen.c53 if (max_pfn > MAX_DMA32_PFN) in pci_xen_swiotlb_detect()
Dxen-ops.h37 void xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn);
/arch/sparc/mm/
Dinit_32.c177 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
179 max_low_pfn = max_pfn; in bootmem_init()
180 highstart_pfn = highend_pfn = max_pfn; in bootmem_init()
203 return max_pfn; in bootmem_init()
/arch/ia64/mm/
Ddiscontig.c42 unsigned long max_pfn; member
81 mem_data[node].max_pfn = epfn; in build_node_maps()
84 mem_data[node].max_pfn = max(epfn, mem_data[node].max_pfn); in build_node_maps()
326 if (spfn < mem_data[node].min_pfn || epfn > mem_data[node].max_pfn) in find_pernode_space()
515 max_pfn = max_low_pfn; in find_memory()
/arch/x86/kernel/
Dsetup.c982 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
986 if (mtrr_trim_uncached_memory(max_pfn)) in setup_arch()
987 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
989 max_possible_pfn = max_pfn; in setup_arch()
1012 if (max_pfn > (1UL<<(32 - PAGE_SHIFT))) in setup_arch()
1015 max_low_pfn = max_pfn; in setup_arch()
1017 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in setup_arch()
1204 e820__register_nosave_regions(max_pfn); in setup_arch()
/arch/powerpc/include/asm/
Dmmzone.h36 extern unsigned long max_pfn;
/arch/nds32/kernel/
Dsetup.c261 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in setup_memory()
263 if (max_pfn - ram_start_pfn <= MAXMEM_PFN) in setup_memory()
264 max_low_pfn = max_pfn; in setup_memory()
268 max_pfn = MAXMEM_PFN + ram_start_pfn; in setup_memory()
/arch/nds32/mm/
Dinit.c38 max_zone_pfn[ZONE_HIGHMEM] = max_pfn; in zone_sizes_init()
166 for (pfn = PFN_UP(__pa(high_memory)); pfn < max_pfn; pfn++) { in free_highmem()
176 max_mapnr = max_pfn; in set_max_mapnr_init()
/arch/arm64/mm/
Dinit.c375 max_pfn = max_low_pfn = max; in bootmem_init()
423 max_pfn > PFN_DOWN(arm64_dma_phys_limit)) in mem_init()
428 set_max_mapnr(max_pfn - PHYS_PFN_OFFSET); in mem_init()
/arch/arm/mm/
Dinit.c250 find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); in bootmem_init()
266 zone_sizes_init(min_low_pfn, max_low_pfn, max_pfn); in bootmem_init()
316 max_pfn > arm_dma_pfn_limit) in mem_init()
322 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
/arch/csky/mm/
Dinit.c128 void __init mmu_init(unsigned long min_pfn, unsigned long max_pfn) in mmu_init() argument
142 for (i = min_pfn; i < max_pfn; i++) in mmu_init()
/arch/mips/kernel/
Dsetup.c307 max_pfn = PFN_DOWN(ramend); in bootmem_init()
326 if (max_pfn > PFN_DOWN(HIGHMEM_START)) { in bootmem_init()
330 highend_pfn = max_pfn; in bootmem_init()
332 max_pfn = max_low_pfn; in bootmem_init()
/arch/alpha/mm/
Dinit.c247 max_pfn = max_low_pfn; in paging_init()
250 max_zone_pfn[ZONE_NORMAL] = max_pfn; in paging_init()
/arch/parisc/mm/
Dinit.c248 max_pfn = 0; in setup_bootmem()
264 if ((start_pfn + npages) > max_pfn) in setup_bootmem()
265 max_pfn = start_pfn + npages; in setup_bootmem()
280 max_low_pfn = max_pfn; in setup_bootmem()
562 high_memory = __va((max_pfn << PAGE_SHIFT)); in mem_init()
/arch/csky/include/asm/
Dpgalloc.h71 extern void mmu_init(unsigned long min_pfn, unsigned long max_pfn);
/arch/nios2/kernel/
Dsetup.c163 find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); in setup_arch()

123