/linux/arch/riscv/include/asm/ |
H A D | pgalloc.h | 30 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 D | page.h | 191 #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 D | page.h | 102 #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 D | page.h | 228 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 D | hibernate.c | 28 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 D | page.h | 75 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 D | init_book3s_64.c | 57 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 D | init_book3e_64.c | 87 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 D | memory.h | 296 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 D | page_mm.h | 123 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 D | page_no.h | 22 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
|
/linux/tools/testing/selftests/mm/ |
H A D | hugepage-vmemmap.c | 36 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 D | kasan_init.c | 66 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 D | page.h | 125 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 D | page.h | 298 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 D | page.h | 213 #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 D | memory.h | 382 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 D | context.c | 192 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 D | page.h | 258 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 D | dvma.c | 32 ptep = pfn_pte(virt_to_pfn((void *)kaddr), PAGE_KERNEL); in dvma_page()
|
/linux/arch/s390/kernel/ |
H A D | vdso.c | 75 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 D | xenstored.c | 42 virt_to_pfn(xen_store_interface), in xsd_kva_mmap()
|
/linux/drivers/xen/xenbus/ |
H A D | xenbus_dev_backend.c | 103 virt_to_pfn(xen_store_interface), in xenbus_backend_mmap()
|
/linux/arch/hexagon/include/asm/ |
H A D | page.h | 127 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
|
/linux/arch/csky/include/asm/ |
H A D | page.h | 80 static inline unsigned long virt_to_pfn(const void *kaddr) in virt_to_pfn() function
|