/Linux-v5.10/tools/testing/nvdimm/ |
D | pmem-dax.c | 13 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access() 15 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access() 16 PFN_PHYS(nr_pages)))) in __pmem_direct_access()
|
D | dax-dev.c | 23 addr = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys() 32 return PFN_PHYS(page_to_pfn(page)); in dax_pgoff_to_phys()
|
/Linux-v5.10/arch/alpha/mm/ |
D | numa.c | 146 memblock_add_node(PFN_PHYS(node_min_pfn), in setup_memory_node() 187 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { in setup_memory() 188 if (!move_initrd(PFN_PHYS(max_low_pfn))) in setup_memory() 192 phys_to_virt(PFN_PHYS(max_low_pfn))); in setup_memory()
|
/Linux-v5.10/arch/mips/loongson64/ |
D | numa.c | 127 memblock_add_node(PFN_PHYS(start_pfn), in szmem() 128 PFN_PHYS(node_psize), node); in szmem() 139 memblock_add_node(PFN_PHYS(start_pfn), in szmem() 140 PFN_PHYS(node_psize), node); in szmem()
|
/Linux-v5.10/arch/x86/mm/ |
D | numa_emulation.c | 38 return PFN_PHYS(absent_pages_in_range(start_pfn, end_pfn)); in mem_hole_size() 106 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); in split_nodes_interleave() 128 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); in split_nodes_interleave() 207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size() 275 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); in split_nodes_size_interleave_uniform() 375 const u64 max_addr = PFN_PHYS(max_pfn); in numa_emulation() 450 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), in numa_emulation()
|
D | numa.c | 241 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo() 373 phys = memblock_find_in_range(0, PFN_PHYS(max_pfn_mapped), in numa_alloc_distance() 576 PFN_PHYS(pfn_align) >> 20, in numa_register_memblks() 577 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks() 586 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks() 705 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init() 708 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
|
D | amdtopology.c | 57 u64 start = PFN_PHYS(0); in amd_numa_init() 58 u64 end = PFN_PHYS(max_pfn); in amd_numa_init()
|
/Linux-v5.10/arch/mips/kernel/ |
D | setup.c | 218 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in finalize_initrd() 501 phys_addr_t start = PFN_PHYS(PFN_DOWN(__pa_symbol(&_text))); in check_kernel_sections_mem() 502 phys_addr_t size = PFN_PHYS(PFN_UP(__pa_symbol(&_end))) - start; in check_kernel_sections_mem() 654 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in arch_mem_init() 683 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init() 693 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
|
/Linux-v5.10/arch/arm/include/asm/ |
D | dma-direct.h | 15 pfn = PFN_DOWN(translate_phys_to_dma(dev, PFN_PHYS(pfn))); in pfn_to_dma() 24 pfn = PFN_DOWN(translate_dma_to_phys(dev, PFN_PHYS(pfn))); in dma_to_pfn()
|
/Linux-v5.10/arch/parisc/kernel/ |
D | cache.c | 83 #define pfn_va(pfn) __va(PFN_PHYS(pfn)) 587 __flush_cache_page(vma, addr, PFN_PHYS(pfn)); in flush_cache_mm() 589 __purge_cache_page(vma, addr, PFN_PHYS(pfn)); in flush_cache_mm() 627 __flush_cache_page(vma, addr, PFN_PHYS(pfn)); in flush_cache_range() 629 __purge_cache_page(vma, addr, PFN_PHYS(pfn)); in flush_cache_range() 641 __flush_cache_page(vma, vmaddr, PFN_PHYS(pfn)); in flush_cache_page() 643 __purge_cache_page(vma, vmaddr, PFN_PHYS(pfn)); in flush_cache_page()
|
/Linux-v5.10/arch/x86/xen/ |
D | setup.c | 120 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem() 156 memblock_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem() 713 start = PFN_PHYS(xen_start_info->first_p2m_pfn); in xen_reserve_xen_mfnlist() 714 size = PFN_PHYS(xen_start_info->nr_p2m_frames); in xen_reserve_xen_mfnlist() 743 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup() 821 chunk_size = min(size, PFN_PHYS(extra_pages)); in xen_memory_setup()
|
D | mmu_pv.c | 1461 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pte_init() 1471 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pmd_init() 1479 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pte_init() 1484 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pmd_init() 1785 xen_pt_base = PFN_PHYS(pt_base); in xen_setup_kernel_pagetable() 1874 new_area = xen_find_free_area(PFN_PHYS(n_frames)); in xen_relocate_p2m() 1889 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m() 1890 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m() 1956 memblock_free(PFN_PHYS(pfn), PAGE_SIZE * (pfn_end - pfn)); in xen_relocate_p2m() 1962 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_relocate_p2m() [all …]
|
/Linux-v5.10/arch/xtensa/mm/ |
D | init.c | 63 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in bootmem_init() 64 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in bootmem_init()
|
/Linux-v5.10/arch/mips/mm/ |
D | init.c | 287 cfg->lower = ALIGN(PFN_PHYS(start_pfn), maar_align); in maar_res_walk() 288 cfg->upper = ALIGN_DOWN(PFN_PHYS(start_pfn + nr_pages), maar_align) - 1; in maar_res_walk() 444 if (!memblock_is_memory(PFN_PHYS(tmp))) in mem_init_free_highmem() 492 void *addr = phys_to_virt(PFN_PHYS(pfn)); in free_init_pages()
|
/Linux-v5.10/include/linux/ |
D | pfn.h | 21 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) macro
|
/Linux-v5.10/arch/riscv/mm/ |
D | init.c | 50 (unsigned long) PFN_PHYS(max_low_pfn))); in zone_sizes_init() 99 high_memory = (void *)(__va(PFN_PHYS(max_low_pfn))); in mem_init() 358 pte_phys = PFN_PHYS(_pmd_pfn(pmdp[pmd_idx])); in create_pmd_mapping() 400 next_phys = PFN_PHYS(_pgd_pfn(pgdp[pgd_idx])); in create_pgd_mapping() 627 unsigned long max_low = (unsigned long)(__va(PFN_PHYS(max_low_pfn))); in mark_rodata_ro()
|
/Linux-v5.10/arch/sh/kernel/ |
D | setup.c | 239 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
|
/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | memtrace.c | 73 const unsigned long start = PFN_PHYS(start_pfn); in memtrace_offline_pages() 74 const unsigned long size = PFN_PHYS(nr_pages); in memtrace_offline_pages()
|
/Linux-v5.10/arch/m68k/include/asm/ |
D | page.h | 66 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
|
/Linux-v5.10/arch/x86/include/asm/xen/ |
D | page.h | 241 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); in phys_to_machine() 247 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); in machine_to_phys()
|
/Linux-v5.10/arch/mips/include/asm/mach-generic/ |
D | spaces.h | 26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
|
/Linux-v5.10/drivers/nvdimm/ |
D | pmem.c | 260 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access() 262 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access() 263 PFN_PHYS(nr_pages)))) in __pmem_direct_access() 292 PFN_PHYS(pgoff) >> SECTOR_SHIFT, in pmem_dax_zero_page_range()
|
/Linux-v5.10/include/asm-generic/ |
D | memory_model.h | 79 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
|
/Linux-v5.10/arch/csky/kernel/ |
D | setup.c | 61 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in csky_memblock_init()
|
/Linux-v5.10/arch/arm64/kernel/ |
D | setup.c | 263 start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start); in reserve_memblock_reserved_regions() 264 end = min(PFN_PHYS(PFN_UP(r_end)) - 1, mem->end); in reserve_memblock_reserved_regions()
|