Home
last modified time | relevance | path

Searched refs:virt_to_pfn (Results 1 – 25 of 43) sorted by relevance

12

/linux/arch/riscv/include/asm/
H A Dpgalloc.h30 unsigned long pfn = virt_to_pfn(pte); in pmd_populate_kernel()
38 unsigned long pfn = virt_to_pfn(page_address(pte)); in pmd_populate()
46 unsigned long pfn = virt_to_pfn(pmd); in pud_populate()
54 unsigned long pfn = virt_to_pfn(pud); in p4d_populate()
64 unsigned long pfn = virt_to_pfn(pud); in p4d_populate_safe()
74 unsigned long pfn = virt_to_pfn(p4d); in pgd_populate()
84 unsigned long pfn = virt_to_pfn(p4d); in pgd_populate_safe()
H A Dpage.h191 #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) macro
194 #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
213 (unsigned long)(_addr) >= PAGE_OFFSET && pfn_valid(virt_to_pfn(_addr)); \
/linux/arch/arc/include/asm/
H A Dpage.h102 #define ARCH_PFN_OFFSET virt_to_pfn((void *)CONFIG_LINUX_RAM_BASE)
123 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
128 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
129 #define virt_addr_valid(kaddr) pfn_valid(virt_to_pfn(kaddr))
/linux/arch/powerpc/include/asm/
H A Dpage.h228 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
239 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
243 pfn_valid(virt_to_pfn((void *)_addr)); \
/linux/arch/arm/kernel/
H A Dhibernate.c28 unsigned long nosave_begin_pfn = virt_to_pfn(&__nosave_begin); in pfn_is_nosave()
29 unsigned long nosave_end_pfn = virt_to_pfn(&__nosave_end - 1); in pfn_is_nosave()
/linux/arch/openrisc/include/asm/
H A Dpage.h75 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
85 #define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr)))
/linux/arch/powerpc/mm/kasan/
H A Dinit_book3s_64.c57 pte_t zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL); in kasan_init()
83 zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL_RO); in kasan_init()
H A Dinit_book3e_64.c87 pte_t zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL); in kasan_early_init()
112 pte_t zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL_RO); in kasan_init()
/linux/arch/arm/include/asm/
H A Dmemory.h296 static inline unsigned long virt_to_pfn(const void *p) in virt_to_pfn() function
390 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
392 && pfn_valid(virt_to_pfn(kaddr)))
/linux/arch/m68k/include/asm/
H A Dpage_mm.h123 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
136 pfn_to_page(virt_to_pfn(addr)); \
H A Dpage_no.h22 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
/linux/tools/testing/selftests/mm/
H A Dhugepage-vmemmap.c36 static unsigned long virt_to_pfn(void *addr) in virt_to_pfn() function
112 pfn = virt_to_pfn(addr); in main()
/linux/arch/arm/mm/
H A Dkasan_init.c66 entry = pfn_pte(virt_to_pfn(p), in kasan_pte_populate()
76 entry = pfn_pte(virt_to_pfn(kasan_early_shadow_page), in kasan_pte_populate()
295 pfn_pte(virt_to_pfn(kasan_early_shadow_page), in kasan_init()
/linux/arch/microblaze/include/asm/
H A Dpage.h125 static inline unsigned long virt_to_pfn(const void *vaddr) in virt_to_pfn() function
135 #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr)))
/linux/arch/x86/include/asm/xen/
H A Dpage.h298 static inline unsigned long virt_to_pfn(const void *v) in virt_to_pfn() function
302 #define virt_to_mfn(v) (pfn_to_mfn(virt_to_pfn(v)))
306 #define virt_to_gfn(v) (pfn_to_gfn(virt_to_pfn(v)))
/linux/arch/mips/include/asm/
H A Dpage.h213 #define virt_to_pfn(kaddr) PFN_DOWN(virt_to_phys((void *)(kaddr))) macro
214 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/linux/arch/arm64/include/asm/
H A Dmemory.h382 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
409 #define virt_to_page(x) pfn_to_page(virt_to_pfn(x))
427 __is_lm_address(__addr) && pfn_is_map_memory(virt_to_pfn(__addr)); \
/linux/arch/riscv/mm/
H A Dcontext.c192 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | in set_mm_asid()
203 csr_write(CSR_SATP, virt_to_pfn(mm->pgd) | satp_mode); in set_mm_noasid()
/linux/arch/s390/include/asm/
H A Dpage.h258 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
265 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/linux/arch/m68k/sun3/
H A Ddvma.c32 ptep = pfn_pte(virt_to_pfn((void *)kaddr), PAGE_KERNEL); in dvma_page()
/linux/arch/s390/kernel/
H A Dvdso.c75 pfn = virt_to_pfn(vdso_data); in vvar_fault()
99 pfn = virt_to_pfn(vdso_data); in vvar_fault()
/linux/drivers/xen/xenfs/
H A Dxenstored.c42 virt_to_pfn(xen_store_interface), in xsd_kva_mmap()
/linux/drivers/xen/xenbus/
H A Dxenbus_dev_backend.c103 virt_to_pfn(xen_store_interface), in xenbus_backend_mmap()
/linux/arch/hexagon/include/asm/
H A Dpage.h127 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
/linux/arch/csky/include/asm/
H A Dpage.h80 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function

12