Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/arc/include/asm/
Dpage.h96 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
98 #define ARCH_PFN_OFFSET virt_to_pfn(CONFIG_LINUX_RAM_BASE)
114 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
115 #define virt_addr_valid(kaddr) pfn_valid(virt_to_pfn(kaddr))
Dmmzone.h19 is_end_low = pfn <= virt_to_pfn(0xFFFFFFFFUL); in pfn_to_nid()
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dpgalloc.h19 unsigned long pfn = virt_to_pfn(pte); in pmd_populate_kernel()
27 unsigned long pfn = virt_to_pfn(page_address(pte)); in pmd_populate()
35 unsigned long pfn = virt_to_pfn(pmd); in pud_populate()
Dpage.h143 #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) macro
146 #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
162 (unsigned long)(_addr) >= PAGE_OFFSET && pfn_valid(virt_to_pfn(_addr)); \
/kernel/linux/linux-5.10/arch/arm/kernel/
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()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dpage.h131 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
132 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
138 pfn_valid(virt_to_pfn(_addr)); \
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dpage_no.h23 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
30 #define page_to_pfn(page) virt_to_pfn(page_to_virt(page))
Dpage_mm.h124 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
150 pfn_to_page(virt_to_pfn(addr)); \
/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Dpage.h142 # define virt_to_pfn(vaddr) (phys_to_pfn((__pa(vaddr)))) macro
152 # define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
170 #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr)))
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dpage.h176 #define virt_to_pfn(kaddr) (phys_to_pfn(__pa(kaddr))) macro
179 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
182 #define virt_addr_valid(kaddr) pfn_valid(virt_to_pfn(kaddr))
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
Dpage.h75 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
85 #define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr)))
/kernel/linux/linux-5.10/include/asm-generic/
Dpage.h81 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro
84 #define virt_to_page(addr) pfn_to_page(virt_to_pfn(addr))
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dmemory.h306 #define virt_to_pfn(kaddr) \ macro
411 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
413 && pfn_valid(virt_to_pfn(kaddr)))
Ddma-direct.h31 return pfn_to_dma(dev, virt_to_pfn(addr)); in virt_to_dma()
/kernel/linux/linux-5.10/arch/arm/mm/
Dkasan_init.c61 entry = pfn_pte(virt_to_pfn(p), in kasan_pte_populate()
71 entry = pfn_pte(virt_to_pfn(kasan_early_shadow_page), in kasan_pte_populate()
281 pfn_pte(virt_to_pfn(kasan_early_shadow_page), in kasan_init()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dmemory.h299 #define virt_to_pfn(x) __phys_to_pfn(__virt_to_phys((unsigned long)(x))) macro
330 #define virt_to_page(x) pfn_to_page(virt_to_pfn(x))
348 __is_lm_address(__addr) && pfn_valid(virt_to_pfn(__addr)); \
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/
Dpage.h306 #define virt_to_pfn(v) (PFN_DOWN(__pa(v))) macro
307 #define virt_to_mfn(v) (pfn_to_mfn(virt_to_pfn(v)))
311 #define virt_to_gfn(v) (pfn_to_gfn(virt_to_pfn(v)))
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dpage.h249 #define virt_to_pfn(kaddr) PFN_DOWN(virt_to_phys((void *)(kaddr))) macro
250 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/kernel/linux/linux-5.10/arch/riscv/mm/
Dcontext.c62 csr_write(CSR_SATP, virt_to_pfn(next->pgd) | SATP_MODE); in switch_mm()
/kernel/linux/linux-5.10/arch/m68k/sun3/
Ddvma.c32 ptep = pfn_pte(virt_to_pfn(kaddr), PAGE_KERNEL); in dvma_page()
/kernel/linux/linux-5.10/drivers/xen/xenfs/
Dxenstored.c42 virt_to_pfn(xen_store_interface), in xsd_kva_mmap()
/kernel/linux/linux-5.10/arch/m68k/mm/
Dsun3mmu.c78 pte_t pte = pfn_pte(virt_to_pfn(address), PAGE_INIT); in paging_init()
/kernel/linux/linux-5.10/drivers/xen/xenbus/
Dxenbus_dev_backend.c103 virt_to_pfn(xen_store_interface), in xenbus_backend_mmap()
/kernel/linux/linux-5.10/arch/arm64/mm/
Dkasan_init.c238 early_pfn_to_nid(virt_to_pfn(lm_alias(_text)))); in kasan_init()
258 early_pfn_to_nid(virt_to_pfn(start))); in kasan_init()
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Dpage.h129 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) macro

12