/openbmc/linux/mm/ |
H A D | memremap.c | 67 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 75 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 89 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid() 90 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid() 121 PHYS_PFN(range_len(range))); in pageunmap_range() 123 __remove_pages(PHYS_PFN(range->start), in pageunmap_range() 124 PHYS_PFN(range_len(range)), NULL); in pageunmap_range() 206 PHYS_PFN(range->end), pgmap, GFP_KERNEL)); in pagemap_range() 238 PHYS_PFN(range_len(range)), params); in pagemap_range() 268 PHYS_PFN(range->start), in pagemap_range() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | svm.c | 48 uv_unshare_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_encrypted() 61 uv_share_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_decrypted() 85 unsigned long pfn = PHYS_PFN(__pa(addr)); in dtl_cache_ctor()
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | page.h | 32 #define MAX_LOW_PFN (PHYS_PFN(XCHAL_KSEG_PADDR) + \ 33 PHYS_PFN(XCHAL_KSEG_SIZE)) 37 #define MAX_LOW_PFN PHYS_PFN(0xfffffffful)
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | memtrace.c | 59 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap() 113 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_alloc_node() 216 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_free() 217 const unsigned long start_pfn = PHYS_PFN(start); in memtrace_free()
|
/openbmc/linux/arch/powerpc/mm/kasan/ |
H A D | init_32.c | 28 __set_pte_at(&init_mm, va, ptep, pfn_pte(PHYS_PFN(pa), prot), 1); in kasan_populate_pte() 75 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region() 109 pfn_pte(PHYS_PFN(pa), prot)); in kasan_remap_early_shadow_ro()
|
H A D | 8xx.c | 27 *new = pte_val(pte_mkhuge(pfn_pte(PHYS_PFN(__pa(block)), PAGE_KERNEL))); in kasan_init_shadow_8M() 63 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region()
|
H A D | book3s_32.c | 52 pte_t pte = pfn_pte(PHYS_PFN(phys + k_cur - k_nobat), PAGE_KERNEL); in kasan_init_region()
|
/openbmc/linux/mm/damon/ |
H A D | paddr.c | 36 struct folio *folio = damon_get_folio(PHYS_PFN(paddr)); in damon_pa_mkold() 116 struct folio *folio = damon_get_folio(PHYS_PFN(paddr)); in damon_pa_young() 234 struct folio *folio = damon_get_folio(PHYS_PFN(addr)); in damon_pa_pageout() 264 struct folio *folio = damon_get_folio(PHYS_PFN(addr)); in damon_pa_mark_accessed_or_deactivate()
|
/openbmc/linux/include/linux/ |
H A D | io-mapping.h | 77 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc() 98 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc()
|
H A D | pfn.h | 22 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) macro
|
/openbmc/linux/drivers/nvdimm/ |
H A D | pfn_devs.c | 668 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_base() 676 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_reserve() 698 .end_pfn = PHYS_PFN(end), in __nvdimm_setup_pfn() 711 nd_pfn->npfns = PHYS_PFN((range_len(range) - offset)); in __nvdimm_setup_pfn() 718 altmap->free = PHYS_PFN(offset - reserve); in __nvdimm_setup_pfn() 770 npfns = PHYS_PFN(size - SZ_8K); in nd_pfn_init() 825 npfns = PHYS_PFN(size - offset - end_trunc); in nd_pfn_init()
|
H A D | pmem.c | 74 pfn_start = PHYS_PFN(phys); in pmem_mkpage_present() 75 pfn_end = pfn_start + PHYS_PFN(len); in pmem_mkpage_present() 271 actual_nr = PHYS_PFN( in __pmem_direct_access() 286 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | ioremap.c | 34 unsigned long pfn = PHYS_PFN(offset); in arch_memremap_can_ram_remap()
|
/openbmc/linux/tools/testing/nvdimm/ |
H A D | dax-dev.c | 20 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
|
H A D | pmem-dax.c | 50 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
|
/openbmc/linux/include/asm-generic/ |
H A D | memory_model.h | 61 #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | page_no.h | 38 #define ARCH_PFN_OFFSET PHYS_PFN(PAGE_OFFSET_RAW)
|
/openbmc/linux/arch/x86/mm/ |
H A D | numa_emulation.c | 203 unsigned long max_pfn = PHYS_PFN(max_addr); in uniform_size() 204 unsigned long base_pfn = PHYS_PFN(base); in uniform_size() 205 unsigned long hole_pfns = PHYS_PFN(hole); in uniform_size()
|
/openbmc/linux/arch/xtensa/mm/ |
H A D | kasan_init.c | 62 set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); in populate()
|
/openbmc/linux/drivers/of/ |
H A D | kexec.c | 151 start_pfn = PHYS_PFN(tmp_addr); in ima_get_kexec_buffer() 152 end_pfn = PHYS_PFN(tmp_addr + tmp_size - 1); in ima_get_kexec_buffer()
|
/openbmc/linux/kernel/ |
H A D | iomem.c | 30 unsigned long pfn = PHYS_PFN(offset); in try_ram_remap()
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | mm.py | 167 if self.PHYS_PFN(self.PFN_PHYS(pfn)) != pfn: 219 def PHYS_PFN(self, phys): member in aarch64_page_ops 226 return self.PHYS_PFN(pa)
|
/openbmc/linux/arch/mips/loongson64/ |
H A D | numa.c | 152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | paca.c | 85 uv_share_page(PHYS_PFN(__pa(shared_lppaca)), in alloc_shared_lppaca()
|
/openbmc/linux/arch/x86/xen/ |
H A D | enlighten_hvm.c | 69 shared_info_pfn = PHYS_PFN(pa); in reserve_shared_info()
|