Home
last modified time | relevance | path

Searched refs:PHYS_PFN (Results 1 – 25 of 58) sorted by relevance

123

/openbmc/linux/mm/
H A Dmemremap.c67 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 Dsvm.c48 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 Dpage.h32 #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 Dmemtrace.c59 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 Dinit_32.c28 __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 D8xx.c27 *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 Dbook3s_32.c52 pte_t pte = pfn_pte(PHYS_PFN(phys + k_cur - k_nobat), PAGE_KERNEL); in kasan_init_region()
/openbmc/linux/mm/damon/
H A Dpaddr.c36 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 Dio-mapping.h77 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 Dpfn.h22 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) macro
/openbmc/linux/drivers/nvdimm/
H A Dpfn_devs.c668 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 Dpmem.c74 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 Dioremap.c34 unsigned long pfn = PHYS_PFN(offset); in arch_memremap_can_ram_remap()
/openbmc/linux/tools/testing/nvdimm/
H A Ddax-dev.c20 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
H A Dpmem-dax.c50 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
/openbmc/linux/include/asm-generic/
H A Dmemory_model.h61 #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
/openbmc/linux/arch/m68k/include/asm/
H A Dpage_no.h38 #define ARCH_PFN_OFFSET PHYS_PFN(PAGE_OFFSET_RAW)
/openbmc/linux/arch/x86/mm/
H A Dnuma_emulation.c203 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 Dkasan_init.c62 set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); in populate()
/openbmc/linux/drivers/of/
H A Dkexec.c151 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 Diomem.c30 unsigned long pfn = PHYS_PFN(offset); in try_ram_remap()
/openbmc/linux/scripts/gdb/linux/
H A Dmm.py167 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 Dnuma.c152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
/openbmc/linux/arch/powerpc/kernel/
H A Dpaca.c85 uv_share_page(PHYS_PFN(__pa(shared_lppaca)), in alloc_shared_lppaca()
/openbmc/linux/arch/x86/xen/
H A Denlighten_hvm.c69 shared_info_pfn = PHYS_PFN(pa); in reserve_shared_info()

123