max_pfn 246 arch/alpha/mm/init.c high_pfn = max_pfn = max_low_pfn; max_pfn 129 arch/alpha/mm/numa.c max_pfn = max_low_pfn = node_max_pfn; max_pfn 98 arch/arc/mm/init.c max_low_pfn = max_pfn = PFN_DOWN(low_mem_start + low_mem_sz); max_pfn 224 arch/arm/mm/dma-mapping.c unsigned long max_dma_pfn = min(max_pfn - 1, arm_dma_pfn_limit); max_pfn 291 arch/arm/mm/init.c find_limits(&min_low_pfn, &max_low_pfn, &max_pfn); max_pfn 312 arch/arm/mm/init.c zone_sizes_init(min_low_pfn, max_low_pfn, max_pfn); max_pfn 476 arch/arm/mm/init.c set_max_mapnr(pfn_to_page(max_pfn) - mem_map); max_pfn 445 arch/arm64/mm/init.c max_pfn = max_low_pfn = max; max_pfn 537 arch/arm64/mm/init.c max_pfn > (arm64_dma_phys_limit >> PAGE_SHIFT)) max_pfn 542 arch/arm64/mm/init.c set_max_mapnr(max_pfn - PHYS_PFN_OFFSET); max_pfn 279 arch/arm64/mm/numa.c phys = memblock_find_in_range(0, PFN_PHYS(max_pfn), max_pfn 382 arch/c6x/kernel/setup.c max_pfn = max_low_pfn; max_pfn 45 arch/csky/kernel/setup.c max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); max_pfn 47 arch/csky/kernel/setup.c size = max_pfn - min_low_pfn; max_pfn 63 arch/csky/kernel/setup.c zone_size[ZONE_HIGHMEM] = max_pfn - max_low_pfn; max_pfn 66 arch/csky/kernel/setup.c highend_pfn = max_pfn; max_pfn 89 arch/h8300/kernel/setup.c max_pfn = max_low_pfn; max_pfn 158 arch/ia64/mm/contig.c max_pfn = max_low_pfn; max_pfn 42 arch/ia64/mm/discontig.c unsigned long max_pfn; max_pfn 81 arch/ia64/mm/discontig.c mem_data[node].max_pfn = epfn; max_pfn 84 arch/ia64/mm/discontig.c mem_data[node].max_pfn = max(epfn, mem_data[node].max_pfn); max_pfn 326 arch/ia64/mm/discontig.c if (spfn < mem_data[node].min_pfn || epfn > mem_data[node].max_pfn) max_pfn 515 arch/ia64/mm/discontig.c max_pfn = max_low_pfn; max_pfn 598 arch/ia64/mm/discontig.c unsigned long max_pfn = 0; max_pfn 621 arch/ia64/mm/discontig.c if (mem_data[node].max_pfn > max_pfn) max_pfn 622 arch/ia64/mm/discontig.c max_pfn = mem_data[node].max_pfn; max_pfn 629 arch/ia64/mm/discontig.c max_zone_pfns[ZONE_NORMAL] = max_pfn; max_pfn 158 arch/m68k/kernel/setup_no.c max_pfn = max_low_pfn = PFN_DOWN(memory_end); max_pfn 175 arch/m68k/mm/mcfmmu.c max_pfn = max_low_pfn = PFN_DOWN(_ramend); max_pfn 263 arch/m68k/mm/motorola.c max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT; max_pfn 119 arch/m68k/sun3/config.c max_pfn = num_pages = __pa(memory_end) >> PAGE_SHIFT; max_pfn 135 arch/microblaze/include/asm/page.h extern unsigned long max_pfn; max_pfn 74 arch/microblaze/mm/init.c for (pfn = max_low_pfn; pfn < max_pfn; ++pfn) { max_pfn 105 arch/microblaze/mm/init.c zones_size[ZONE_HIGHMEM] = max_pfn; max_pfn 107 arch/microblaze/mm/init.c zones_size[ZONE_DMA] = max_pfn; max_pfn 165 arch/microblaze/mm/init.c max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; max_pfn 170 arch/microblaze/mm/init.c pr_info("%s: max_pfn: %#lx\n", __func__, max_pfn); max_pfn 337 arch/mips/kernel/setup.c max_pfn = PFN_DOWN(ramend); max_pfn 361 arch/mips/kernel/setup.c if (max_pfn > PFN_DOWN(HIGHMEM_START)) { max_pfn 364 arch/mips/kernel/setup.c highend_pfn = max_pfn; max_pfn 367 arch/mips/kernel/setup.c max_pfn = max_low_pfn; max_pfn 306 arch/mips/mm/init.c walk_system_ram_range(0, max_pfn, &wi, maar_res_walk); max_pfn 266 arch/nds32/kernel/setup.c max_pfn = PFN_DOWN(memblock_end_of_DRAM()); max_pfn 268 arch/nds32/kernel/setup.c if (max_pfn - ram_start_pfn <= MAXMEM_PFN) max_pfn 269 arch/nds32/kernel/setup.c max_low_pfn = max_pfn; max_pfn 273 arch/nds32/kernel/setup.c max_pfn = MAXMEM_PFN + ram_start_pfn; max_pfn 41 arch/nds32/mm/init.c zones_size[ZONE_HIGHMEM] = max_pfn; max_pfn 173 arch/nds32/mm/init.c for (pfn = PFN_UP(__pa(high_memory)); pfn < max_pfn; pfn++) { max_pfn 183 arch/nds32/mm/init.c max_mapnr = max_pfn; max_pfn 74 arch/openrisc/kernel/setup.c max_pfn = ram_end_pfn; max_pfn 254 arch/parisc/mm/init.c max_pfn = 0; max_pfn 270 arch/parisc/mm/init.c if ((start_pfn + npages) > max_pfn) max_pfn 271 arch/parisc/mm/init.c max_pfn = start_pfn + npages; max_pfn 286 arch/parisc/mm/init.c max_low_pfn = max_pfn; max_pfn 590 arch/parisc/mm/init.c high_memory = __va((max_pfn << PAGE_SHIFT)); max_pfn 36 arch/powerpc/include/asm/mmzone.h extern unsigned long max_pfn; max_pfn 179 arch/powerpc/mm/mem.c max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; max_pfn 268 arch/powerpc/mm/mem.c max_zone_pfns[ZONE_HIGHMEM] = max_pfn; max_pfn 297 arch/powerpc/mm/mem.c set_max_mapnr(max_pfn); max_pfn 886 arch/powerpc/mm/numa.c max_pfn = max_low_pfn; max_pfn 119 arch/riscv/mm/init.c max_pfn = PFN_DOWN(memblock_end_of_DRAM()); max_pfn 120 arch/riscv/mm/init.c max_low_pfn = max_pfn; max_pfn 599 arch/s390/kernel/setup.c max_pfn = max_low_pfn = PFN_DOWN(memory_end); max_pfn 302 arch/sh/mm/init.c max_low_pfn = max_pfn = memblock_end_of_DRAM() >> PAGE_SHIFT; max_pfn 178 arch/sparc/mm/init_32.c max_pfn = end_of_phys_memory >> PAGE_SHIFT; max_pfn 180 arch/sparc/mm/init_32.c max_low_pfn = max_pfn; max_pfn 181 arch/sparc/mm/init_32.c highstart_pfn = highend_pfn = max_pfn; max_pfn 200 arch/sparc/mm/init_32.c return max_pfn; max_pfn 1631 arch/sparc/mm/init_64.c max_pfn = max_low_pfn = end_pfn; max_pfn 56 arch/um/kernel/mem.c max_pfn = max_low_pfn; max_pfn 196 arch/unicore32/mm/init.c max_pfn = max_high - PHYS_PFN_OFFSET; max_pfn 266 arch/unicore32/mm/init.c max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; max_pfn 11 arch/x86/include/asm/page_64.h extern unsigned long max_pfn; max_pfn 40 arch/x86/include/asm/page_64.h #define pfn_valid(pfn) ((pfn) < max_pfn) max_pfn 154 arch/x86/include/asm/xen/interface.h unsigned long max_pfn; max_pfn 732 arch/x86/kernel/amd_gart_64.c (!force_iommu && max_pfn <= MAX_DMA32_PFN) || max_pfn 735 arch/x86/kernel/amd_gart_64.c if (max_pfn > MAX_DMA32_PFN) { max_pfn 452 arch/x86/kernel/aperture_64.c max_pfn > MAX_DMA32_PFN && max_pfn 497 arch/x86/kernel/aperture_64.c } else if ((!no_iommu && max_pfn > MAX_DMA32_PFN) || max_pfn 653 arch/x86/kernel/e820.c gapstart = (max_pfn << PAGE_SHIFT) + 1024*1024; max_pfn 60 arch/x86/kernel/early-quirks.c if ((max_pfn > MAX_DMA32_PFN || force_iommu) && max_pfn 1064 arch/x86/kernel/setup.c max_pfn = e820__end_of_ram_pfn(); max_pfn 1068 arch/x86/kernel/setup.c if (mtrr_trim_uncached_memory(max_pfn)) max_pfn 1069 arch/x86/kernel/setup.c max_pfn = e820__end_of_ram_pfn(); max_pfn 1071 arch/x86/kernel/setup.c max_possible_pfn = max_pfn; max_pfn 1094 arch/x86/kernel/setup.c if (max_pfn > (1UL<<(32 - PAGE_SHIFT))) max_pfn 1097 arch/x86/kernel/setup.c max_low_pfn = max_pfn; max_pfn 1099 arch/x86/kernel/setup.c high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; max_pfn 1274 arch/x86/kernel/setup.c e820__register_nosave_regions(max_pfn); max_pfn 58 arch/x86/mm/amdtopology.c u64 end = PFN_PHYS(max_pfn); max_pfn 658 arch/x86/mm/init.c end = max_pfn << PAGE_SHIFT; max_pfn 690 arch/x86/mm/init.c if (max_pfn > max_low_pfn) { max_pfn 692 arch/x86/mm/init.c max_low_pfn = max_pfn; max_pfn 948 arch/x86/mm/init.c max_zone_pfns[ZONE_HIGHMEM] = max_pfn; max_pfn 601 arch/x86/mm/init_32.c max_low_pfn = max_pfn; max_pfn 606 arch/x86/mm/init_32.c if (highmem_pages >= max_pfn) { max_pfn 608 arch/x86/mm/init_32.c pages_to_mb(highmem_pages), pages_to_mb(max_pfn)); max_pfn 639 arch/x86/mm/init_32.c highmem_pages = max_pfn - MAXMEM_PFN; max_pfn 641 arch/x86/mm/init_32.c if (highmem_pages + MAXMEM_PFN < max_pfn) max_pfn 642 arch/x86/mm/init_32.c max_pfn = MAXMEM_PFN + highmem_pages; max_pfn 644 arch/x86/mm/init_32.c if (highmem_pages + MAXMEM_PFN > max_pfn) { max_pfn 646 arch/x86/mm/init_32.c pages_to_mb(max_pfn - MAXMEM_PFN), max_pfn 653 arch/x86/mm/init_32.c if (max_pfn > MAX_NONPAE_PFN) max_pfn 657 arch/x86/mm/init_32.c max_pfn = MAXMEM_PFN; max_pfn 660 arch/x86/mm/init_32.c if (max_pfn > MAX_NONPAE_PFN) { max_pfn 661 arch/x86/mm/init_32.c max_pfn = MAX_NONPAE_PFN; max_pfn 675 arch/x86/mm/init_32.c if (max_pfn <= MAXMEM_PFN) max_pfn 685 arch/x86/mm/init_32.c highstart_pfn = highend_pfn = max_pfn; max_pfn 686 arch/x86/mm/init_32.c if (max_pfn > max_low_pfn) max_pfn 839 arch/x86/mm/init_64.c if (end_pfn > max_pfn) { max_pfn 840 arch/x86/mm/init_64.c max_pfn = end_pfn; max_pfn 842 arch/x86/mm/init_64.c high_memory = (void *)__va(max_pfn * PAGE_SIZE - 1) + 1; max_pfn 1407 arch/x86/mm/init_64.c unsigned long boot_mem_end = max_pfn << PAGE_SHIFT; max_pfn 106 arch/x86/mm/kaslr.c memory_tb = DIV_ROUND_UP(max_pfn << PAGE_SHIFT, 1UL << TB_SHIFT) + max_pfn 233 arch/x86/mm/numa.c const u64 high = PFN_PHYS(max_pfn); max_pfn 451 arch/x86/mm/numa.c e820ram = max_pfn - absent_pages_in_range(0, max_pfn); max_pfn 571 arch/x86/mm/numa.c u64 start = PFN_PHYS(max_pfn); max_pfn 690 arch/x86/mm/numa.c 0LLU, PFN_PHYS(max_pfn) - 1); max_pfn 693 arch/x86/mm/numa.c numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); max_pfn 71 arch/x86/mm/numa_32.c highstart_pfn = highend_pfn = max_pfn; max_pfn 72 arch/x86/mm/numa_32.c if (max_pfn > max_low_pfn) max_pfn 202 arch/x86/mm/numa_emulation.c unsigned long max_pfn = PHYS_PFN(max_addr); max_pfn 206 arch/x86/mm/numa_emulation.c return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); max_pfn 374 arch/x86/mm/numa_emulation.c const u64 max_addr = PFN_PHYS(max_pfn); max_pfn 92 arch/x86/platform/efi/efi_64.c n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); max_pfn 130 arch/x86/platform/efi/efi_64.c if (addr_pud > (max_pfn << PAGE_SHIFT)) max_pfn 166 arch/x86/platform/efi/efi_64.c nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); max_pfn 1775 arch/x86/xen/mmu_pv.c static void __init xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn) max_pfn 1786 arch/x86/xen/mmu_pv.c for (pmdidx = 0; pmdidx < PTRS_PER_PMD && pfn < max_pfn; pmdidx++) { max_pfn 1875 arch/x86/xen/mmu_pv.c void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn) max_pfn 2234 arch/x86/xen/mmu_pv.c void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn) max_pfn 2250 arch/x86/xen/mmu_pv.c xen_map_identity_early(initial_kernel_pmd, max_pfn); max_pfn 287 arch/x86/xen/p2m.c HYPERVISOR_shared_info->arch.max_pfn = xen_p2m_last_pfn; max_pfn 627 arch/x86/xen/p2m.c HYPERVISOR_shared_info->arch.max_pfn = xen_p2m_last_pfn; max_pfn 53 arch/x86/xen/pci-swiotlb-xen.c if (max_pfn > MAX_DMA32_PFN) max_pfn 742 arch/x86/xen/setup.c unsigned long max_pfn, pfn_s, n_pfns; max_pfn 753 arch/x86/xen/setup.c max_pfn = xen_get_pages_limit(); max_pfn 754 arch/x86/xen/setup.c max_pfn = min(max_pfn, xen_start_info->nr_pages); max_pfn 755 arch/x86/xen/setup.c mem_end = PFN_PHYS(max_pfn); max_pfn 799 arch/x86/xen/setup.c max_pages += xen_foreach_remap_area(max_pfn, xen_count_remap_pages); max_pfn 801 arch/x86/xen/setup.c if (max_pages > max_pfn) max_pfn 802 arch/x86/xen/setup.c extra_pages += max_pages - max_pfn; max_pfn 818 arch/x86/xen/setup.c extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), max_pfn 819 arch/x86/xen/setup.c extra_pages, max_pages - max_pfn); max_pfn 916 arch/x86/xen/setup.c xen_foreach_remap_area(max_pfn, xen_set_identity_and_remap_chunk); max_pfn 36 arch/x86/xen/xen-ops.h void xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn); max_pfn 57 arch/xtensa/mm/init.c max_pfn = PFN_DOWN(memblock_end_of_DRAM()); max_pfn 58 arch/xtensa/mm/init.c max_low_pfn = min(max_pfn, MAX_LOW_PFN); max_pfn 76 arch/xtensa/mm/init.c [ZONE_HIGHMEM] = max_pfn - max_low_pfn, max_pfn 152 arch/xtensa/mm/init.c max_mapnr = max_pfn - ARCH_PFN_OFFSET; max_pfn 880 block/blk-settings.c blk_max_pfn = max_pfn - 1; max_pfn 57 block/bounce.c if (max_pfn <= max_low_pfn) max_pfn 153 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c .gpuvm_size = min(adev->vm_manager.max_pfn max_pfn 933 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 935 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 29 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c uint64_t addr = adev->vm_manager.max_pfn << AMDGPU_GPU_PAGE_SHIFT; max_pfn 704 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; max_pfn 133 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c return round_up(adev->vm_manager.max_pfn, 1ULL << shift) >> shift; max_pfn 2606 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c adev->vm_manager.max_pfn = (uint64_t)vm_size << 18; max_pfn 2608 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c tmp = roundup_pow_of_two(adev->vm_manager.max_pfn); max_pfn 302 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h uint64_t max_pfn; max_pfn 245 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 247 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 233 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 235 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 463 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c uint32_t high = adev->vm_manager.max_pfn - max_pfn 546 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); max_pfn 548 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c uint32_t high = adev->vm_manager.max_pfn - max_pfn 649 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); max_pfn 775 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c uint32_t high = adev->vm_manager.max_pfn - max_pfn 892 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32(mmVM_CONTEXT1_PAGE_TABLE_END_ADDR, adev->vm_manager.max_pfn - 1); max_pfn 277 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 279 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 223 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 225 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 327 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c lower_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 331 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c upper_32_bits(adev->vm_manager.max_pfn - 1)); max_pfn 5480 drivers/gpu/drm/radeon/cik.c WREG32(VM_CONTEXT1_PAGE_TABLE_END_ADDR, rdev->vm_manager.max_pfn - 1); max_pfn 1326 drivers/gpu/drm/radeon/ni.c rdev->vm_manager.max_pfn - 1); max_pfn 948 drivers/gpu/drm/radeon/radeon.h uint32_t max_pfn; max_pfn 1336 drivers/gpu/drm/radeon/radeon_device.c rdev->vm_manager.max_pfn = radeon_vm_size << 18; max_pfn 62 drivers/gpu/drm/radeon/radeon_vm.c return rdev->vm_manager.max_pfn >> radeon_vm_block_size; max_pfn 466 drivers/gpu/drm/radeon/radeon_vm.c if (last_pfn >= rdev->vm_manager.max_pfn) { max_pfn 468 drivers/gpu/drm/radeon/radeon_vm.c last_pfn, rdev->vm_manager.max_pfn); max_pfn 4332 drivers/gpu/drm/radeon/si.c WREG32(VM_CONTEXT1_PAGE_TABLE_END_ADDR, rdev->vm_manager.max_pfn - 1); max_pfn 684 drivers/iommu/mtk_iommu.c data->enable_4GB = !!(max_pfn > (BIT_ULL(32) >> PAGE_SHIFT)); max_pfn 676 drivers/xen/balloon.c extra_pfn_end = min(max_pfn, start_pfn + pages); max_pfn 698 drivers/xen/balloon.c ? min(xen_start_info->nr_pages - xen_released_pages, max_pfn) max_pfn 40 fs/proc/page.c count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); max_pfn 216 fs/proc/page.c count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); max_pfn 262 fs/proc/page.c count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); max_pfn 22 include/linux/memblock.h extern unsigned long max_pfn; max_pfn 48 kernel/dma/direct.c phys_addr_t phys = (phys_addr_t)(max_pfn - 1) << PAGE_SHIFT; max_pfn 403 kernel/dma/direct.c min_mask = min_t(u64, min_mask, (max_pfn - 1) << PAGE_SHIFT); max_pfn 105 mm/memblock.c unsigned long max_pfn; max_pfn 6973 mm/page_alloc.c round_up(max_pfn, PAGES_PER_SECTION)); max_pfn 134 mm/page_idle.c if (pfn >= max_pfn) max_pfn 138 mm/page_idle.c if (end_pfn > max_pfn) max_pfn 139 mm/page_idle.c end_pfn = max_pfn; max_pfn 179 mm/page_idle.c if (pfn >= max_pfn) max_pfn 183 mm/page_idle.c if (end_pfn > max_pfn) max_pfn 184 mm/page_idle.c end_pfn = max_pfn; max_pfn 478 mm/page_owner.c for (; pfn < max_pfn; pfn++) {