Home
last modified time | relevance | path

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

123

/arch/cris/kernel/
Dsetup.c67 unsigned long start_pfn, max_pfn; in setup_arch() local
111 max_pfn = PFN_DOWN((unsigned long)high_memory); /* usually c0000000 + dram size */ in setup_arch()
129 max_low_pfn = max_pfn; in setup_arch()
138 free_bootmem(PFN_PHYS(start_pfn), PFN_PHYS(max_pfn - start_pfn)); in setup_arch()
/arch/x86/mm/
Dinit_32.c595 max_low_pfn = max_pfn; in lowmem_pfn_init()
600 if (highmem_pages >= max_pfn) { in lowmem_pfn_init()
602 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init()
633 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init()
635 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init()
636 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init()
638 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init()
640 pages_to_mb(max_pfn - MAXMEM_PFN), in highmem_pfn_init()
647 if (max_pfn > MAX_NONPAE_PFN) in highmem_pfn_init()
651 max_pfn = MAXMEM_PFN; in highmem_pfn_init()
[all …]
Dnuma_32.c83 highstart_pfn = highend_pfn = max_pfn; in initmem_init()
84 if (max_pfn > max_low_pfn) in initmem_init()
Dnuma.c237 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo()
455 e820ram = max_pfn - absent_pages_in_range(0, max_pfn); in numa_meminfo_cover_memory()
575 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks()
694 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init()
697 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
Dinit.c649 end = max_pfn << PAGE_SHIFT; in init_mem_mapping()
681 if (max_pfn > max_low_pfn) { in init_mem_mapping()
683 max_low_pfn = max_pfn; in init_mem_mapping()
864 max_zone_pfns[ZONE_HIGHMEM] = max_pfn; in zone_sizes_init()
/arch/xtensa/mm/
Dinit.c60 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
61 max_low_pfn = min(max_pfn, MAX_LOW_PFN); in bootmem_init()
76 [ZONE_HIGHMEM] = max_pfn - max_low_pfn, in zones_init()
152 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
/arch/x86/include/asm/
Dpage_64.h11 extern unsigned long max_pfn;
36 #define pfn_valid(pfn) ((pfn) < max_pfn)
/arch/m32r/mm/
Ddiscontig.c89 max_pfn = mp->start_pfn + mp->pages; in setup_memory()
91 mp->start_pfn, max_pfn); in setup_memory()
100 if (max_low_pfn < max_pfn) in setup_memory()
101 max_low_pfn = max_pfn; in setup_memory()
/arch/ia64/mm/
Ddiscontig.c45 unsigned long max_pfn; member
584 max_pfn = max_low_pfn; in find_memory()
679 mem_data[node].max_pfn = max(mem_data[node].max_pfn, in count_node_pages()
697 unsigned long max_pfn = 0; in paging_init() local
722 if (mem_data[node].max_pfn > max_pfn) in paging_init()
723 max_pfn = mem_data[node].max_pfn; in paging_init()
730 max_zone_pfns[ZONE_NORMAL] = max_pfn; in paging_init()
Dcontig.c207 max_pfn = max_low_pfn; in find_memory()
209 bootmap_size = bootmem_bootmap_pages(max_pfn) << PAGE_SHIFT; in find_memory()
218 (bootmap_start >> PAGE_SHIFT), 0, max_pfn); in find_memory()
/arch/microblaze/mm/
Dinit.c78 for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { in highmem_setup()
109 zones_size[ZONE_HIGHMEM] = max_pfn; in paging_init()
111 zones_size[ZONE_DMA] = max_pfn; in paging_init()
170 max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; in setup_memory()
175 pr_info("%s: max_pfn: %#lx\n", __func__, max_pfn); in setup_memory()
/arch/x86/xen/
Dsetup.c733 unsigned long max_pfn, pfn_s, n_pfns; in xen_memory_setup() local
744 max_pfn = xen_get_pages_limit(); in xen_memory_setup()
745 max_pfn = min(max_pfn, xen_start_info->nr_pages); in xen_memory_setup()
746 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup()
786 max_pages += xen_foreach_remap_area(max_pfn, xen_count_remap_pages); in xen_memory_setup()
788 if (max_pages > max_pfn) in xen_memory_setup()
789 extra_pages += max_pages - max_pfn; in xen_memory_setup()
805 extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
806 extra_pages, max_pages - max_pfn); in xen_memory_setup()
903 xen_foreach_remap_area(max_pfn, xen_set_identity_and_remap_chunk); in xen_memory_setup()
Dpci-swiotlb-xen.c51 if (max_pfn > MAX_DMA32_PFN) in pci_xen_swiotlb_detect()
/arch/sparc/mm/
Dinit_32.c145 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init()
147 max_low_pfn = max_pfn; in bootmem_init()
148 highstart_pfn = highend_pfn = max_pfn; in bootmem_init()
233 return max_pfn; in bootmem_init()
/arch/powerpc/include/asm/
Dmmzone.h36 extern unsigned long max_pfn;
Dpgtable.h39 void limit_zone_pfn(enum zone_type zone, unsigned long max_pfn);
/arch/metag/include/asm/
Dpage.h114 extern unsigned long max_pfn;
116 #define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) < max_pfn)
/arch/m68k/kernel/
Dsetup_no.c159 max_pfn = max_low_pfn = PFN_DOWN(memory_end); in setup_arch()
165 max_pfn); in setup_arch()
/arch/x86/kernel/
Dsetup.c1076 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
1080 if (mtrr_trim_uncached_memory(max_pfn)) in setup_arch()
1081 max_pfn = e820__end_of_ram_pfn(); in setup_arch()
1083 max_possible_pfn = max_pfn; in setup_arch()
1106 if (max_pfn > (1UL<<(32 - PAGE_SHIFT))) in setup_arch()
1109 max_low_pfn = max_pfn; in setup_arch()
1111 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in setup_arch()
1290 e820__register_nosave_regions(max_pfn); in setup_arch()
/arch/metag/kernel/
Dsetup.c367 max_pfn = max_low_pfn + ((1 << MAX_ORDER) - 1); in setup_arch()
368 max_pfn &= ~((1 << MAX_ORDER) - 1); in setup_arch()
387 highstart_pfn = highend_pfn = max_pfn; in setup_arch()
390 high_memory = (void *)__va(PFN_PHYS(max_pfn)); in setup_arch()
Dmetag_ksyms.c17 EXPORT_SYMBOL(max_pfn);
/arch/parisc/mm/
Dinit.c306 max_pfn = 0; in setup_bootmem()
322 if ((start_pfn + npages) > max_pfn) in setup_bootmem()
323 max_pfn = start_pfn + npages; in setup_bootmem()
331 max_low_pfn = max_pfn; in setup_bootmem()
610 high_memory = __va((max_pfn << PAGE_SHIFT)); in mem_init()
/arch/powerpc/mm/
Dmem.c87 return pfn < max_pfn; in page_is_ram()
222 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in initmem_init()
368 set_max_mapnr(max_pfn); in mem_init()
/arch/frv/include/asm/
Dpage.h50 extern unsigned long max_pfn;
/arch/unicore32/mm/
Dinit.c269 max_pfn = max_high - PHYS_PFN_OFFSET; in bootmem_init()
339 max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; in mem_init()

123