/linux-4.1.27/include/linux/ |
H A D | pfn.h | 11 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) macro
|
H A D | mm.h | 925 return __va(PFN_PHYS(page_to_pfn(page))); lowmem_page_address()
|
/linux-4.1.27/arch/m32r/mm/ |
H A D | discontig.c | 92 free_bootmem_node(NODE_DATA(nid), PFN_PHYS(mp->start_pfn), for_each_online_node() 93 PFN_PHYS(mp->pages)); for_each_online_node() 95 reserve_bootmem_node(NODE_DATA(nid), PFN_PHYS(mp->start_pfn), for_each_online_node() 96 PFN_PHYS(mp->free_pfn - mp->start_pfn) + bootmap_size, for_each_online_node() 108 if (INITRD_START + INITRD_SIZE <= PFN_PHYS(max_low_pfn)) { 119 (unsigned long long)PFN_PHYS(max_low_pfn));
|
H A D | init.c | 119 high_memory = (void *)__va(PFN_PHYS(MAX_LOW_PFN(0))); mem_init()
|
/linux-4.1.27/arch/score/kernel/ |
H A D | setup.c | 58 memblock_add_node(PFN_PHYS(min_low_pfn), bootmem_init() 59 PFN_PHYS(max_low_pfn - min_low_pfn), 0); bootmem_init() 61 free_bootmem(PFN_PHYS(start_pfn), bootmem_init() 66 reserve_bootmem(PFN_PHYS(start_pfn), bootmap_size, BOOTMEM_DEFAULT); bootmem_init() 73 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { bootmem_init()
|
/linux-4.1.27/arch/alpha/mm/ |
H A D | numa.c | 225 free_bootmem_node(NODE_DATA(nid), PFN_PHYS(start), for_each_mem_cluster() 226 (PFN_PHYS(start_kernel_pfn) for_each_mem_cluster() 227 - PFN_PHYS(start))); for_each_mem_cluster() 238 free_bootmem_node(NODE_DATA(nid), PFN_PHYS(start), PFN_PHYS(end) - PFN_PHYS(start)); for_each_mem_cluster() 243 reserve_bootmem_node(NODE_DATA(nid), PFN_PHYS(bootmap_start), 273 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { setup_memory() 274 if (!move_initrd(PFN_PHYS(max_low_pfn))) setup_memory() 278 phys_to_virt(PFN_PHYS(max_low_pfn))); setup_memory()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | setup.c | 136 free_bootmem(PFN_PHYS(start_pfn), setup_arch() 137 PFN_PHYS(kstart_pfn - start_pfn)); setup_arch() 139 free_bootmem(PFN_PHYS(free_pfn), setup_arch() 140 PFN_PHYS(end_pfn - free_pfn)); setup_arch() 149 reserve_bootmem(PAGE_ALIGN(PFN_PHYS(free_pfn)), bootmap_size, setup_arch()
|
/linux-4.1.27/arch/metag/mm/ |
H A D | numa.c | 44 memblock_set_node(PFN_PHYS(start_pfn), setup_bootmem_node() 45 PFN_PHYS(end_pfn - start_pfn), setup_bootmem_node()
|
H A D | init.c | 206 memblock_set_node(PFN_PHYS(start_pfn), for_each_memblock() 207 PFN_PHYS(end_pfn - start_pfn), for_each_memblock() 244 memblock_reserve(base, (PFN_PHYS(start_pfn) + PAGE_SIZE - 1) - base); init_and_reserve_mem()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | amdtopology.c | 73 u64 start = PFN_PHYS(0); amd_numa_init() 74 u64 end = PFN_PHYS(max_pfn); amd_numa_init()
|
H A D | numa_emulation.c | 37 return PFN_PHYS(absent_pages_in_range(start_pfn, end_pfn)); mem_hole_size() 103 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); split_nodes_interleave() 128 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); for_each_node_mask() 243 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); for_each_node_mask() 314 const u64 max_addr = PFN_PHYS(max_pfn); numa_emulation() 360 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), numa_emulation()
|
H A D | numa.c | 238 const u64 high = PFN_PHYS(max_pfn); numa_cleanup_meminfo() 363 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), numa_alloc_distance() 543 PFN_PHYS(pfn_align) >> 20, numa_register_memblks() 544 PFN_PHYS(PAGES_PER_SECTION) >> 20); numa_register_memblks() 553 u64 start = PFN_PHYS(max_pfn); for_each_node_mask() 674 0LLU, PFN_PHYS(max_pfn) - 1); dummy_numa_init() 677 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); dummy_numa_init()
|
H A D | init.c | 438 u64 start = clamp_val(PFN_PHYS(start_pfn), r_start, r_end); init_range_memory_mapping() 439 u64 end = clamp_val(PFN_PHYS(end_pfn), r_start, r_end); init_range_memory_mapping()
|
/linux-4.1.27/arch/arm/include/asm/xen/ |
H A D | page.h | 61 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); phys_to_machine() 67 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); machine_to_phys()
|
/linux-4.1.27/arch/tile/gxio/ |
H A D | kiorpc.c | 58 return ioremap_prot(PFN_PHYS(pfn), size, prot); iorpc_ioremap()
|
/linux-4.1.27/arch/mips/loongson/loongson-3/ |
H A D | numa.c | 152 memblock_add_node(PFN_PHYS(start_pfn), szmem() 153 PFN_PHYS(end_pfn - start_pfn), node); szmem() 166 memblock_add_node(PFN_PHYS(start_pfn), szmem() 167 PFN_PHYS(end_pfn - start_pfn), node); szmem()
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | setup.c | 523 free_bootmem_node (NODE_DATA(node), PFN_PHYS(first_pfn), setup_bootmem() 524 PFN_PHYS(pages)); setup_bootmem() 528 PFN_PHYS(bootmap_pfn), setup_bootmem() 534 if (res->start > PFN_PHYS(max_pfn)) setup_bootmem() 542 if (res->start >= PFN_PHYS(first_pfn) setup_bootmem() 543 && res->end < PFN_PHYS(max_pfn)) setup_bootmem()
|
/linux-4.1.27/drivers/staging/android/ion/ |
H A D | ion_carveout_heap.c | 65 ion_phys_addr_t paddr = PFN_PHYS(page_to_pfn(page)); ion_carveout_heap_phys() 114 ion_phys_addr_t paddr = PFN_PHYS(page_to_pfn(page)); ion_carveout_heap_free()
|
/linux-4.1.27/arch/score/include/asm/ |
H A D | page.h | 65 #define pfn_to_phys(pfn) (PFN_PHYS(pfn))
|
/linux-4.1.27/arch/cris/kernel/ |
H A D | setup.c | 138 free_bootmem(PFN_PHYS(start_pfn), PFN_PHYS(max_pfn - start_pfn)); setup_arch() 149 reserve_bootmem(PFN_PHYS(start_pfn), bootmap_size, BOOTMEM_DEFAULT); setup_arch()
|
/linux-4.1.27/arch/m32r/kernel/ |
H A D | setup.c | 171 free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(pages)); setup_memory() 182 (PFN_PHYS(start_pfn) + bootmap_size + PAGE_SIZE - 1) setup_memory()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | setup.c | 424 free_bootmem(PFN_PHYS(start), for_each_mem_cluster() 425 (PFN_PHYS(start_kernel_pfn) for_each_mem_cluster() 426 - PFN_PHYS(start))); for_each_mem_cluster() 437 free_bootmem(PFN_PHYS(start), PFN_PHYS(end) - PFN_PHYS(start)); for_each_mem_cluster() 442 reserve_bootmem(PFN_PHYS(bootmap_start), bootmap_size, 453 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { 454 if (!move_initrd(PFN_PHYS(max_low_pfn))) 458 phys_to_virt(PFN_PHYS(max_low_pfn)));
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | setup.c | 256 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { finalize_initrd() 407 memblock_add_node(PFN_PHYS(start), PFN_PHYS(end - start), 0); bootmem_init() 453 free_bootmem(PFN_PHYS(start), size << PAGE_SHIFT); bootmem_init() 460 reserve_bootmem(PFN_PHYS(mapstart), bootmap_size, BOOTMEM_DEFAULT); bootmem_init() 684 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); arch_mem_init()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | cache.c | 75 #define pfn_va(pfn) __va(PFN_PHYS(pfn)) 549 __flush_cache_page(vma, addr, PFN_PHYS(pfn)); flush_cache_mm() 600 __flush_cache_page(vma, addr, PFN_PHYS(pfn)); flush_cache_range() 611 __flush_cache_page(vma, vmaddr, PFN_PHYS(pfn)); flush_cache_page()
|
/linux-4.1.27/arch/x86/include/asm/xen/ |
H A D | page.h | 172 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); phys_to_machine() 178 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); machine_to_phys()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | setup.c | 233 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), __add_active_range()
|
/linux-4.1.27/arch/openrisc/kernel/ |
H A D | setup.c | 93 free_bootmem(PFN_PHYS(free_ram_start_pfn), 95 reserve_bootmem(PFN_PHYS(free_ram_start_pfn), bootmap_size,
|
/linux-4.1.27/arch/hexagon/mm/ |
H A D | init.c | 266 free_bootmem(PFN_PHYS(bootmem_startpg) + bootmap_size, setup_arch_memory() 267 PFN_PHYS(bootmem_lastpg - bootmem_startpg) - bootmap_size - setup_arch_memory()
|
/linux-4.1.27/arch/x86/xen/ |
H A D | setup.c | 133 phys_addr_t addr = PFN_PHYS(pfn); xen_chk_extra_mem() 497 xen_del_extra_mem(PFN_PHYS(pfn_s), PFN_PHYS(len)); xen_remap_memory() 507 xen_del_extra_mem(PFN_PHYS(pfn_s), PFN_PHYS(len)); xen_remap_memory() 581 mem_end = PFN_PHYS(max_pfn); xen_memory_setup() 654 size = min(size, PFN_PHYS(extra_pages)); xen_memory_setup()
|
H A D | enlighten.c | 530 void *av = __va(PFN_PHYS(pfn)); set_aliased_prot() 621 virt = __va(PFN_PHYS(pfn)); xen_load_gdt() 1659 initrd_start = PFN_PHYS(xen_start_info->mod_start); xen_start_kernel()
|
H A D | mmu.c | 1508 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); xen_alloc_pte_init() 1518 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); xen_alloc_pmd_init() 1526 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); xen_release_pte_init() 1531 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); xen_release_pmd_init() 1897 memblock_reserve(PFN_PHYS(pt_base), (pt_end - pt_base) * PAGE_SIZE); xen_setup_kernel_pagetable()
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | setup.c | 441 range.size = PFN_PHYS(max_size); setup_memory() 452 range.size = PFN_PHYS(max_size); setup_memory() 617 BUG_ON(goal && PFN_PHYS(pfn) != goal); alloc_bootmem_pfn() 655 mapstart = alloc_bootmem_pfn(0, PFN_PHYS(mapsize), 0); setup_bootmem_allocator_node() 662 free_bootmem(PFN_PHYS(start), PFN_PHYS(end - start)); setup_bootmem_allocator_node() 671 reserve_bootmem(PFN_PHYS(start), PFN_PHYS(end - start), setup_bootmem_allocator_node() 786 goal = PFN_PHYS(lowmem_end) - node_percpu[i]; for_each_online_node()
|
H A D | smp.c | 249 offset = PFN_PHYS(pte_pfn(pte)); for_each_possible_cpu()
|
H A D | pci-dma.c | 144 PFN_PHYS(page_to_pfn(page)) + offset, size); __dma_prep_page()
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | pgalloc.h | 60 set_pmd(pmd, ptfn_pmd(HV_CPA_TO_PTFN(PFN_PHYS(page_to_pfn(page))), pmd_populate()
|
H A D | pgtable.h | 280 return hv_pte_set_pa(prot, PFN_PHYS(pfn)); pfn_pte()
|
/linux-4.1.27/mm/ |
H A D | bootmem.c | 101 bdata->node_bootmem_map = phys_to_virt(PFN_PHYS(mapstart)); init_bootmem_core() 486 unsigned long base = PFN_PHYS(bdata->node_min_pfn); align_off() 565 start_off = PFN_PHYS(sidx); alloc_bootmem_bdata() 580 region = phys_to_virt(PFN_PHYS(bdata->node_min_pfn) + alloc_bootmem_bdata()
|
H A D | cma.c | 48 return PFN_PHYS(cma->base_pfn); cma_get_base()
|
H A D | memblock.c | 1347 return PFN_PHYS(pages); 1420 int mid = memblock_search(type, PFN_PHYS(pfn)); memblock_search_pfn_nid()
|
H A D | memory_hotplug.c | 1868 beginpa = PFN_PHYS(section_nr_to_pfn(mem->start_section_nr)); check_memblock_offlined_cb() 1869 endpa = PFN_PHYS(section_nr_to_pfn(mem->end_section_nr + 1))-1; check_memblock_offlined_cb()
|
H A D | page_alloc.c | 4580 memblock_free_early_nid(PFN_PHYS(start_pfn), free_bootmem_with_active_regions()
|
/linux-4.1.27/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 382 memblock_add_node(PFN_PHYS(slot_getbasepfn(node, slot)), for_each_online_node() 383 PFN_PHYS(slot_psize), node); for_each_online_node()
|
/linux-4.1.27/arch/metag/kernel/ |
H A D | setup.c | 389 high_memory = (void *) __va(PFN_PHYS(highstart_pfn)); setup_arch() 391 high_memory = (void *)__va(PFN_PHYS(max_pfn)); setup_arch()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | page.h | 145 # define pfn_to_phys(pfn) (PFN_PHYS(pfn))
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | suspend.c | 152 if (tprot(PFN_PHYS(pfn))) pfn_is_nosave()
|
H A D | setup.c | 654 memblock_reserve((unsigned long)_stext, PFN_PHYS(start_pfn) reserve_kernel()
|
/linux-4.1.27/arch/ia64/mm/ |
H A D | contig.c | 274 memblock_add_node(0, PFN_PHYS(max_low_pfn), 0); paging_init()
|
/linux-4.1.27/drivers/xen/ |
H A D | swiotlb-xen.c | 79 * Both of these functions should avoid PFN_PHYS because phys_addr_t 150 paddr = PFN_PHYS(pfn); is_xen_swiotlb_buffer()
|
H A D | balloon.c | 228 hotplug_start_paddr = PFN_PHYS(SECTION_ALIGN_UP(max_pfn)); reserve_additional_memory()
|
/linux-4.1.27/arch/sh/mm/ |
H A D | init.c | 306 memblock_reserve(start, (PFN_PHYS(start_pfn) + PAGE_SIZE - 1) - start); early_reserve_mem()
|
/linux-4.1.27/arch/tile/mm/ |
H A D | homecache.c | 230 sim_validate_lines_evicted(PFN_PHYS(page_to_pfn(page)), PAGE_SIZE); homecache_finv_page_internal()
|
/linux-4.1.27/arch/mips/mm/ |
H A D | init.c | 400 void *addr = phys_to_virt(PFN_PHYS(pfn)); free_init_pages()
|
/linux-4.1.27/drivers/iommu/ |
H A D | tegra-smmu.c | 596 return PFN_PHYS(pfn); tegra_smmu_iova_to_phys()
|
H A D | intel-iommu.c | 2492 PFN_PHYS(start_pfn), PFN_PHYS(end_pfn)); for_each_online_node()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | sclp_cmd.c | 207 return PFN_PHYS(start_pfn) >> ilog2(sclp_rzm); arch_get_memory_phys_device()
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | setup.c | 799 free_bootmem(PFN_PHYS(curr_pfn), PFN_PHYS(size)); setup_bootmem_allocator()
|
/linux-4.1.27/drivers/hv/ |
H A D | hv_balloon.c | 636 nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); hv_mem_hot_add() 637 ret = add_memory(nid, PFN_PHYS((start_pfn)), hv_mem_hot_add()
|
/linux-4.1.27/arch/powerpc/mm/ |
H A D | numa.c | 833 memblock_set_node(PFN_PHYS(start_pfn), for_each_memblock() 834 PFN_PHYS(end_pfn - start_pfn), for_each_memblock()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | setup.c | 331 relocated_ramdisk = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), relocate_initrd()
|