/arch/cris/kernel/ |
D | setup.c | 64 unsigned long start_pfn, max_pfn; in setup_arch() local 104 max_pfn = PFN_DOWN((unsigned long)high_memory); /* usually c0000000 + dram size */ in setup_arch() 122 max_low_pfn = max_pfn; in setup_arch() 131 free_bootmem(PFN_PHYS(start_pfn), PFN_PHYS(max_pfn - start_pfn)); in setup_arch()
|
/arch/xtensa/mm/ |
D | init.c | 243 max_low_pfn = max_pfn = 0; in bootmem_init() 251 if (pfn > max_pfn) in bootmem_init() 252 max_pfn = pfn; in bootmem_init() 255 if (min_low_pfn > max_pfn) in bootmem_init() 258 max_low_pfn = max_pfn < MAX_MEM_PFN >> PAGE_SHIFT ? in bootmem_init() 259 max_pfn : MAX_MEM_PFN >> PAGE_SHIFT; in bootmem_init() 304 [ZONE_HIGHMEM] = max_pfn - max_low_pfn, in zones_init() 320 for (tmp = max_low_pfn; tmp < max_pfn; tmp++) in mem_init() 324 max_mapnr = max_pfn - ARCH_PFN_OFFSET; in mem_init()
|
/arch/x86/include/asm/ |
D | page_64.h | 9 extern unsigned long max_pfn; 34 #define pfn_valid(pfn) ((pfn) < max_pfn)
|
/arch/x86/mm/ |
D | init_32.c | 575 max_low_pfn = max_pfn; in lowmem_pfn_init() 580 if (highmem_pages >= max_pfn) { in lowmem_pfn_init() 582 pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); in lowmem_pfn_init() 613 highmem_pages = max_pfn - MAXMEM_PFN; in highmem_pfn_init() 615 if (highmem_pages + MAXMEM_PFN < max_pfn) in highmem_pfn_init() 616 max_pfn = MAXMEM_PFN + highmem_pages; in highmem_pfn_init() 618 if (highmem_pages + MAXMEM_PFN > max_pfn) { in highmem_pfn_init() 620 pages_to_mb(max_pfn - MAXMEM_PFN), in highmem_pfn_init() 627 if (max_pfn > MAX_NONPAE_PFN) in highmem_pfn_init() 631 max_pfn = MAXMEM_PFN; in highmem_pfn_init() [all …]
|
D | numa_32.c | 83 highstart_pfn = highend_pfn = max_pfn; in initmem_init() 84 if (max_pfn > max_low_pfn) in initmem_init()
|
D | numa.c | 238 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo() 454 e820ram = max_pfn - absent_pages_in_range(0, max_pfn); in numa_meminfo_cover_memory() 546 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks() 667 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init() 670 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
|
D | init.c | 536 end = max_pfn << PAGE_SHIFT; in init_mem_mapping() 565 if (max_pfn > max_low_pfn) { in init_mem_mapping() 567 max_low_pfn = max_pfn; in init_mem_mapping() 704 max_zone_pfns[ZONE_HIGHMEM] = max_pfn; in zone_sizes_init()
|
/arch/m32r/mm/ |
D | discontig.c | 88 max_pfn = mp->start_pfn + mp->pages; in setup_memory() 90 mp->start_pfn, max_pfn); in setup_memory() 99 if (max_low_pfn < max_pfn) in setup_memory() 100 max_low_pfn = max_pfn; in setup_memory()
|
/arch/ia64/mm/ |
D | discontig.c | 44 unsigned long max_pfn; member 583 max_pfn = max_low_pfn; in find_memory() 678 mem_data[node].max_pfn = max(mem_data[node].max_pfn, in count_node_pages() 696 unsigned long max_pfn = 0; in paging_init() local 721 if (mem_data[node].max_pfn > max_pfn) in paging_init() 722 max_pfn = mem_data[node].max_pfn; in paging_init() 729 max_zone_pfns[ZONE_NORMAL] = max_pfn; in paging_init()
|
D | contig.c | 207 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/x86/xen/ |
D | setup.c | 567 unsigned long max_pfn = xen_start_info->nr_pages; in xen_memory_setup() local 577 max_pfn = min(MAX_DOMAIN_PAGES, max_pfn); in xen_memory_setup() 578 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup() 615 if (max_pages > max_pfn) in xen_memory_setup() 616 extra_pages += max_pages - max_pfn; in xen_memory_setup() 621 last_pfn = xen_set_identity_and_remap(map, memmap.nr_entries, max_pfn, in xen_memory_setup() 626 if (last_pfn > max_pfn) { in xen_memory_setup() 627 max_pfn = min(MAX_DOMAIN_PAGES, last_pfn); in xen_memory_setup() 628 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup() 641 extra_pages = min(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
|
D | pci-swiotlb-xen.c | 66 if (max_pfn > MAX_DMA32_PFN) in pci_xen_swiotlb_detect()
|
D | p2m.c | 350 HYPERVISOR_shared_info->arch.max_pfn = xen_max_p2m_pfn; in xen_setup_mfn_list_list() 357 unsigned long max_pfn; in xen_build_dynamic_phys_to_machine() local 364 max_pfn = min(MAX_DOMAIN_PAGES, xen_start_info->nr_pages); in xen_build_dynamic_phys_to_machine() 365 xen_max_p2m_pfn = max_pfn; in xen_build_dynamic_phys_to_machine() 385 for (pfn = 0; pfn < max_pfn; pfn += P2M_PER_PAGE) { in xen_build_dynamic_phys_to_machine() 401 if (unlikely(pfn + P2M_PER_PAGE > max_pfn)) { in xen_build_dynamic_phys_to_machine() 404 p2midx = max_pfn % P2M_PER_PAGE; in xen_build_dynamic_phys_to_machine()
|
/arch/microblaze/mm/ |
D | init.c | 78 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/powerpc/include/asm/ |
D | mmzone.h | 35 extern unsigned long max_pfn;
|
/arch/sparc/mm/ |
D | init_32.c | 155 max_pfn = end_of_phys_memory >> PAGE_SHIFT; in bootmem_init() 157 max_low_pfn = max_pfn; in bootmem_init() 158 highstart_pfn = highend_pfn = max_pfn; in bootmem_init() 243 return max_pfn; in bootmem_init()
|
/arch/metag/include/asm/ |
D | page.h | 113 extern unsigned long max_pfn; 115 #define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) < max_pfn)
|
/arch/metag/kernel/ |
D | setup.c | 368 max_pfn = max_low_pfn + ((1 << MAX_ORDER) - 1); in setup_arch() 369 max_pfn &= ~((1 << MAX_ORDER) - 1); in setup_arch() 388 highstart_pfn = highend_pfn = max_pfn; in setup_arch() 391 high_memory = (void *)__va(PFN_PHYS(max_pfn)); in setup_arch()
|
D | metag_ksyms.c | 16 EXPORT_SYMBOL(max_pfn);
|
/arch/avr32/kernel/ |
D | setup.c | 474 unsigned long max_pfn, max_low_pfn; in setup_bootmem() local 493 max_low_pfn = max_pfn = PFN_DOWN(res->end + 1); in setup_bootmem() 495 if (bootmap_pfn > max_pfn) in setup_bootmem() 534 if (res->start > PFN_PHYS(max_pfn)) in setup_bootmem() 543 && res->end < PFN_PHYS(max_pfn)) in setup_bootmem()
|
/arch/powerpc/mm/ |
D | mem.c | 83 return pfn < max_pfn; in page_is_ram() 196 max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; in do_init_bootmem() 237 free_bootmem_with_active_regions(0, max_pfn); in do_init_bootmem() 384 set_max_mapnr(max_pfn); in mem_init()
|
/arch/x86/kernel/ |
D | setup.c | 1056 max_pfn = e820_end_of_ram_pfn(); in setup_arch() 1060 if (mtrr_trim_uncached_memory(max_pfn)) in setup_arch() 1061 max_pfn = e820_end_of_ram_pfn(); in setup_arch() 1071 if (max_pfn > (1UL<<(32 - PAGE_SHIFT))) in setup_arch() 1074 max_low_pfn = max_pfn; in setup_arch() 1076 high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; in setup_arch()
|
D | pci-swiotlb.c | 84 if (!no_iommu && max_pfn > MAX_DMA32_PFN) in pci_swiotlb_detect_4gb()
|
/arch/arm64/mm/ |
D | init.c | 184 max_pfn = max_low_pfn = max; in bootmem_init() 262 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
|
/arch/arc/mm/ |
D | init.c | 96 max_low_pfn = max_pfn = PFN_DOWN(end_mem); in setup_arch_memory()
|