Home
last modified time | relevance | path

Searched refs:PFN_PHYS (Results 1 – 25 of 83) sorted by relevance

1234

/openbmc/linux/tools/testing/nvdimm/
H A Dpmem-dax.c15 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access()
17 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access()
18 PFN_PHYS(nr_pages)))) in __pmem_direct_access()
H A Ddax-dev.c23 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()
/openbmc/linux/arch/x86/mm/
H A Dnuma_emulation.c38 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()
451 PFN_PHYS(max_pfn_mapped)); in numa_emulation()
H A Damdtopology.c57 u64 start = PFN_PHYS(0); in amd_numa_init()
58 u64 end = PFN_PHYS(max_pfn); in amd_numa_init()
H A Dnuma.c242 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo()
381 PFN_PHYS(max_pfn_mapped)); in numa_alloc_distance()
582 PFN_PHYS(pfn_align) >> 20, in numa_register_memblks()
583 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
592 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks()
704 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init()
707 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
/openbmc/linux/arch/parisc/kernel/
H A Dcache.c107 #define pfn_va(pfn) __va(PFN_PHYS(pfn))
637 __flush_cache_page(vma, vmaddr, PFN_PHYS(pte_pfn(pte))); in flush_cache_page_if_present()
654 __flush_cache_page(vma, vaddr, PFN_PHYS(page_to_pfn(from))); in copy_user_highpage()
663 __flush_cache_page(vma, user_vaddr, PFN_PHYS(page_to_pfn(page))); in copy_to_user_page()
671 __flush_cache_page(vma, user_vaddr, PFN_PHYS(page_to_pfn(page))); in copy_from_user_page()
773 __flush_cache_page(vma, vmaddr, PFN_PHYS(pfn)); in flush_cache_page()
781 __flush_cache_page(vma, vmaddr, PFN_PHYS(page_to_pfn(page))); in flush_anon_page()
793 __flush_cache_page(vma, addr, PFN_PHYS(pte_pfn(pte))); in ptep_clear_flush_young()
812 __flush_cache_page(vma, addr, PFN_PHYS(pfn)); in ptep_clear_flush()
/openbmc/linux/arch/loongarch/kernel/
H A Dsetup.c309 max_low_pfn = PFN_PHYS(memblock_end_of_DRAM()); in fdt_setup()
419 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init()
427 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
573 start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start); in reserve_memblock_reserved_regions()
574 end = min(PFN_PHYS(PFN_UP(r_end)) - 1, mem->end); in reserve_memblock_reserved_regions()
H A Dmem.c52 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in memblock_init()
/openbmc/linux/drivers/nvdimm/
H A Dpmem.c247 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access()
248 sector_t sector = PFN_PHYS(pgoff) >> SECTOR_SHIFT; in __pmem_direct_access()
249 unsigned int num = PFN_PHYS(nr_pages) >> SECTOR_SHIFT; in __pmem_direct_access()
300 PFN_PHYS(pgoff) >> SECTOR_SHIFT, in pmem_dax_zero_page_range()
336 len = PFN_PHYS(PFN_UP(off + bytes)); in pmem_recovery_write()
337 if (!is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) >> SECTOR_SHIFT, len)) in pmem_recovery_write()
350 pmem_off = PFN_PHYS(pgoff) + pmem->data_offset; in pmem_recovery_write()
439 u64 offset = PFN_PHYS(pfn) - pmem->phys_addr - pmem->data_offset; in pmem_pagemap_memory_failure()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c225 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in finalize_initrd()
669 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in arch_mem_init()
688 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init()
694 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dmemtrace.c100 clear_page(__va(PFN_PHYS(pfn))); in memtrace_clear_range()
141 arch_remove_linear_mapping(PFN_PHYS(start_pfn), size); in memtrace_alloc_node()
143 return PFN_PHYS(start_pfn); in memtrace_alloc_node()
/openbmc/linux/lib/
H A Ddevmem_is_allowed.c23 if (iomem_is_exclusive(PFN_PHYS(pfn))) in devmem_is_allowed()
/openbmc/linux/tools/include/linux/
H A Dpfn.h9 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) macro
/openbmc/linux/arch/x86/xen/
H A Dsetup.c120 memblock_phys_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem()
640 phys_addr_t mem_end = PFN_PHYS(ini_nr_pages); in xen_e820_swap_entry_with_ram()
778 start = PFN_PHYS(xen_start_info->first_p2m_pfn); in xen_reserve_xen_mfnlist()
779 size = PFN_PHYS(xen_start_info->nr_p2m_frames); in xen_reserve_xen_mfnlist()
808 mem_end = PFN_PHYS(ini_nr_pages); in xen_memory_setup()
913 chunk_size = min(size, PFN_PHYS(extra_pages)); in xen_memory_setup()
H A Denlighten.c383 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem()
H A Dmmu_pv.c1486 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pte_init()
1496 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pmd_init()
1504 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pte_init()
1509 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pmd_init()
1819 xen_pt_base = PFN_PHYS(pt_base); in xen_setup_kernel_pagetable()
1908 new_area = xen_find_free_area(PFN_PHYS(n_frames)); in xen_relocate_p2m()
1923 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m()
1924 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m()
1990 memblock_phys_free(PFN_PHYS(pfn), PAGE_SIZE * (pfn_end - pfn)); in xen_relocate_p2m()
1996 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_relocate_p2m()
[all …]
/openbmc/linux/arch/xtensa/mm/
H A Dinit.c63 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in bootmem_init()
64 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in bootmem_init()
/openbmc/linux/include/linux/
H A Dpfn.h21 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) macro
/openbmc/linux/arch/hexagon/kernel/
H A Ddma.c41 return dma_init_global_coherent(PFN_PHYS(max_low_pfn), in hexagon_dma_init()
/openbmc/linux/arch/mips/mm/
H A Dinit.c291 cfg->lower = ALIGN(PFN_PHYS(start_pfn), maar_align); in maar_res_walk()
292 cfg->upper = ALIGN_DOWN(PFN_PHYS(start_pfn + nr_pages), maar_align) - 1; in maar_res_walk()
450 if (!memblock_is_memory(PFN_PHYS(tmp))) in mem_init_free_highmem()
487 void *addr = phys_to_virt(PFN_PHYS(pfn)); in free_init_pages()
/openbmc/linux/arch/powerpc/include/asm/
H A Dpte-walk.h53 pa = PFN_PHYS(pte_pfn(*ptep)); in ppc_find_vmap_phys()
/openbmc/linux/arch/sh/kernel/
H A Dsetup.c240 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
/openbmc/linux/arch/mips/include/asm/mach-generic/
H A Dspaces.h26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
/openbmc/linux/include/asm-generic/
H A Dmemory_model.h62 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
/openbmc/linux/arch/x86/include/asm/xen/
H A Dpage.h233 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); in phys_to_machine()
239 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); in machine_to_phys()

1234