Home
last modified time | relevance | path

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

1234

/linux-6.6.21/arch/x86/mm/
Dinit_32.c557 max_low_pfn = max_pfn; in lowmem_pfn_init()
562 if (highmem_pages >= max_pfn) { in lowmem_pfn_init()
564 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init()
595 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init()
597 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init()
598 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init()
600 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init()
602 pages_to_mb(max_pfn - MAXMEM_PFN), in highmem_pfn_init()
609 if (max_pfn > MAX_NONPAE_PFN) in highmem_pfn_init()
613 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.c242 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo()
470 e820ram = max_pfn - absent_pages_in_range(0, max_pfn); in numa_meminfo_cover_memory()
592 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks()
704 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init()
707 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
Dinit.c763 end = max_pfn << PAGE_SHIFT; in init_mem_mapping()
795 if (max_pfn > max_low_pfn) { in init_mem_mapping()
797 max_low_pfn = max_pfn; in init_mem_mapping()
1054 max_zone_pfns[ZONE_HIGHMEM] = max_pfn; in zone_sizes_init()
Dnuma_emulation.c203 unsigned long max_pfn = PHYS_PFN(max_addr); in uniform_size() local
207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
375 const u64 max_addr = PFN_PHYS(max_pfn); in numa_emulation()
/linux-6.6.21/mm/
Dpage_idle.c127 if (pfn >= max_pfn) in page_idle_bitmap_read()
131 if (end_pfn > max_pfn) in page_idle_bitmap_read()
132 end_pfn = max_pfn; in page_idle_bitmap_read()
172 if (pfn >= max_pfn) in page_idle_bitmap_write()
176 if (end_pfn > max_pfn) in page_idle_bitmap_write()
177 end_pfn = max_pfn; in page_idle_bitmap_write()
/linux-6.6.21/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()
/linux-6.6.21/arch/microblaze/mm/
Dinit.c60 for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { in highmem_setup()
89 zones_size[ZONE_HIGHMEM] = max_pfn; in paging_init()
91 zones_size[ZONE_DMA] = max_pfn; in paging_init()
115 max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; in setup_memory()
120 pr_info("%s: max_pfn: %#lx\n", __func__, max_pfn); in setup_memory()
/linux-6.6.21/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()
/linux-6.6.21/arch/x86/xen/
Dsetup.c731 unsigned long max_pfn, pfn_s, n_pfns; in xen_memory_setup() local
742 max_pfn = xen_get_pages_limit(); in xen_memory_setup()
743 max_pfn = min(max_pfn, xen_start_info->nr_pages); in xen_memory_setup()
744 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup()
797 max_pages += xen_foreach_remap_area(max_pfn, xen_count_remap_pages); in xen_memory_setup()
799 if (max_pages > max_pfn) in xen_memory_setup()
800 extra_pages += max_pages - max_pfn; in xen_memory_setup()
809 extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
810 extra_pages, max_pages - max_pfn); in xen_memory_setup()
910 xen_foreach_remap_area(max_pfn, xen_set_identity_and_remap_chunk); in xen_memory_setup()
/linux-6.6.21/arch/powerpc/mm/
Dmem.c118 if (end_pfn > max_pfn) { in update_end_of_memory_vars()
119 max_pfn = end_pfn; in update_end_of_memory_vars()
121 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in update_end_of_memory_vars()
170 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in mem_topology_setup()
262 max_zone_pfns[ZONE_HIGHMEM] = max_pfn; in paging_init()
/linux-6.6.21/scripts/gdb/linux/
Dpage_owner.py34 max_pfn = None variable in DumpPageOwner
65 self.max_pfn = int(gdb.parse_and_eval("max_pfn"))
102 if pfn < self.min_pfn or pfn > self.max_pfn or (not self.p_ops.pfn_valid(pfn)):
154 while pfn < self.max_pfn:
/linux-6.6.21/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()
/linux-6.6.21/arch/sparc/mm/
Dinit_32.c176 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
178 max_low_pfn = max_pfn; in bootmem_init()
179 highstart_pfn = highend_pfn = max_pfn; in bootmem_init()
202 return max_pfn; in bootmem_init()
/linux-6.6.21/arch/x86/kernel/
Dsetup.c1069 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
1073 if (mtrr_trim_uncached_memory(max_pfn)) in setup_arch()
1074 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
1076 max_possible_pfn = max_pfn; in setup_arch()
1092 if (max_pfn > (1UL<<(32 - PAGE_SHIFT))) in setup_arch()
1095 max_low_pfn = max_pfn; in setup_arch()
1097 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in setup_arch()
1284 e820__register_nosave_regions(max_pfn); in setup_arch()
/linux-6.6.21/arch/arm/mm/
Dinit.c209 find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); in bootmem_init()
225 zone_sizes_init(min_low_pfn, max_low_pfn, max_pfn); in bootmem_init()
274 swiotlb_init(max_pfn > arm_dma_pfn_limit, SWIOTLB_VERBOSE); in mem_init()
277 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
/linux-6.6.21/arch/arm64/mm/
Dinit.c278 max_zone_pfns[ZONE_NORMAL] = max_pfn; in zone_sizes_init()
450 max_pfn = max_low_pfn = max; in bootmem_init()
494 bool swiotlb = max_pfn > PFN_DOWN(arm64_dma_phys_limit); in mem_init()
/linux-6.6.21/arch/powerpc/include/asm/
Dmmzone.h36 extern unsigned long max_pfn;
/linux-6.6.21/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()
/linux-6.6.21/arch/loongarch/kernel/
Dnuma.c248 max_pfn = max_low_pfn; in numa_meminfo_cover_memory()
249 biosram = max_pfn - absent_pages_in_range(0, max_pfn); in numa_meminfo_cover_memory()
/linux-6.6.21/arch/mips/kernel/
Dsetup.c309 max_pfn = PFN_DOWN(ramend); in bootmem_init()
328 if (max_pfn > PFN_DOWN(HIGHMEM_START)) { in bootmem_init()
332 highend_pfn = max_pfn; in bootmem_init()
334 max_pfn = max_low_pfn; in bootmem_init()
/linux-6.6.21/arch/parisc/mm/
Dinit.c245 max_pfn = 0; in setup_bootmem()
261 if ((start_pfn + npages) > max_pfn) in setup_bootmem()
262 max_pfn = start_pfn + npages; in setup_bootmem()
277 max_low_pfn = max_pfn; in setup_bootmem()
561 high_memory = __va((max_pfn << PAGE_SHIFT)); in mem_init()
/linux-6.6.21/arch/x86/include/asm/
Dpage_64.h14 extern unsigned long max_pfn;
/linux-6.6.21/arch/alpha/mm/
Dinit.c247 max_pfn = max_low_pfn; in paging_init()
250 max_zone_pfn[ZONE_NORMAL] = max_pfn; in paging_init()
/linux-6.6.21/arch/csky/include/asm/
Dpgalloc.h71 extern void mmu_init(unsigned long min_pfn, unsigned long max_pfn);

1234