Home
last modified time | relevance | path

Searched refs:page_to_phys (Results 1 – 25 of 124) sorted by relevance

12345

/linux-6.15/arch/xtensa/mm/
H A Dcache.c62 if (!DCACHE_ALIAS_EQ(page_to_phys(page), vaddr)) { in kmap_invalidate_coherent()
71 (page_to_phys(page) & DCACHE_ALIAS_MASK); in kmap_invalidate_coherent()
75 page_to_phys(page)); in kmap_invalidate_coherent()
84 *paddr = page_to_phys(page); in coherent_kvaddr()
204 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page()
277 unsigned long phys = page_to_phys(page); in copy_to_user_page()
317 unsigned long phys = page_to_phys(page); in copy_from_user_page()
/linux-6.15/include/asm-generic/
H A Dmemory_model.h69 #define page_to_phys(page) \ macro
77 #define page_to_phys(page) PFN_PHYS(page_to_pfn(page)) macro
/linux-6.15/drivers/char/agp/
H A Duninorth-agp.c144 page_to_phys(agp_bridge->scratch_page_page) >> 12); in uninorth_configure()
187 gp[i] = (page_to_phys(mem->pages[i]) >> PAGE_SHIFT) | 0x80000000UL; in uninorth_insert_memory()
189 gp[i] = cpu_to_le32((page_to_phys(mem->pages[i]) & 0xFFFFF000UL) | in uninorth_insert_memory()
191 flush_dcache_range((unsigned long)__va(page_to_phys(mem->pages[i])), in uninorth_insert_memory()
192 (unsigned long)__va(page_to_phys(mem->pages[i]))+0x1000); in uninorth_insert_memory()
433 scratch_value = (page_to_phys(agp_bridge->scratch_page_page) >> PAGE_SHIFT) | 0x80000000UL; in uninorth_create_gatt_table()
435 scratch_value = cpu_to_le32((page_to_phys(agp_bridge->scratch_page_page) & 0xFFFFF000UL) | in uninorth_create_gatt_table()
H A Dali-agp.c155 page_to_phys(page)) | ALI_CACHE_FLUSH_EN )); in m1541_alloc_page()
183 page_to_phys(page)) | ALI_CACHE_FLUSH_EN)); in m1541_destroy_page()
/linux-6.15/arch/csky/mm/
H A Ddma-mapping.c18 void *start = __va(page_to_phys(page)); in cache_op()
55 cache_op(page_to_phys(page), size, dma_wbinv_set_zero_range); in arch_dma_prep_coherent()
/linux-6.15/kernel/dma/
H A Ddirect.c110 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in dma_direct_alloc_swiotlb()
133 if (!dma_coherent_ok(dev, page_to_phys(page), size) || in __dma_direct_alloc_pages()
142 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in __dma_direct_alloc_pages()
185 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_from_pool()
203 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_no_mapping()
301 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
374 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_pages()
/linux-6.15/arch/loongarch/include/asm/
H A Dpage.h81 #define page_to_virt(page) __va(page_to_phys(page))
91 (__kfence_pool == NULL) ? __va(page_to_phys(page)) : page_address(page); \
H A Dio.h71 page_to_phys(tlb_virt_to_page((unsigned long)kaddr)) + offset_in_page((unsigned long)kaddr);\
/linux-6.15/arch/microblaze/mm/
H A Dconsistent.c20 phys_addr_t paddr = page_to_phys(page); in arch_dma_prep_coherent()
/linux-6.15/drivers/firmware/efi/
H A Dcapsule.c172 sglist_phys = page_to_phys(sg_pages[0]); in efi_capsule_update_locked()
267 sglist[j].data = page_to_phys(sg_pages[i + 1]); in efi_capsule_update()
/linux-6.15/arch/m68k/kernel/
H A Ddma.c14 cache_push(page_to_phys(page), size); in arch_dma_prep_coherent()
/linux-6.15/arch/arc/mm/
H A Ddma.c30 dma_cache_wback_inv(page_to_phys(page), size); in arch_dma_prep_coherent()
/linux-6.15/arch/x86/kvm/svm/
H A Davic.c247 phys_addr_t bpa = __sme_set(page_to_phys(svm->avic_backing_page)); in avic_init_vmcb()
248 phys_addr_t lpa = __sme_set(page_to_phys(kvm_svm->avic_logical_id_table_page)); in avic_init_vmcb()
249 phys_addr_t ppa = __sme_set(page_to_phys(kvm_svm->avic_physical_id_table_page)); in avic_init_vmcb()
311 new_entry = __sme_set((page_to_phys(svm->avic_backing_page) & in avic_init_backing_page()
882 vcpu_info->pi_desc_addr = __sme_set(page_to_phys((*svm)->avic_backing_page)); in get_pi_vcpu_info()
942 pi.base = __sme_set(page_to_phys(svm->avic_backing_page) & in avic_pi_update_irte()
/linux-6.15/drivers/virt/
H A Dfsl_hypervisor.c263 sg_list[0].source = page_to_phys(pages[0]) + lb_offset; in ioctl_memcpy()
267 sg_list[0].target = page_to_phys(pages[0]) + lb_offset; in ioctl_memcpy()
277 sg_list[i].source = page_to_phys(pages[i]); in ioctl_memcpy()
282 sg_list[i].target = page_to_phys(pages[i]); in ioctl_memcpy()
/linux-6.15/arch/xtensa/include/asm/
H A Dhighmem.h34 return DCACHE_ALIAS(page_to_phys(page)); in get_pkmap_color()
/linux-6.15/arch/m68k/mm/
H A Dcache.c117 : : "a" (page_to_phys(page))); in flush_icache_user_page()
/linux-6.15/tools/virtio/linux/
H A Ddma-mapping.h24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o))
H A Dscatterlist.h158 return page_to_phys(sg_page(sg)) + sg->offset; in sg_phys()
/linux-6.15/arch/hexagon/include/asm/
H A Dpage.h124 #define page_to_virt(page) __va(page_to_phys(page))
/linux-6.15/sound/virtio/
H A Dvirtio_pcm_msg.c56 phys_addr_t pg_address = page_to_phys(pg); in virtsnd_pcm_sg_num()
104 sg_phys(&sgs[idx]) + sgs[idx].length != page_to_phys(pg)) { in virtsnd_pcm_sg_from()
/linux-6.15/arch/parisc/kernel/
H A Dkexec.c80 unsigned long phys = page_to_phys(image->control_code_page); in machine_kexec()
H A Dpatch.c42 set_fixmap(fixmap, page_to_phys(page)); in patch_map()
/linux-6.15/arch/arm/include/asm/
H A Dpgalloc.h144 __pmd_populate(pmdp, page_to_phys(ptep), prot); in pmd_populate()
/linux-6.15/drivers/crypto/nx/
H A Dnx-842.h110 return page_to_phys(vmalloc_to_page(addr)) + offset_in_page(addr); in nx842_get_pa()
/linux-6.15/arch/riscv/kvm/
H A Dnacl.c148 nacl->shmem_phys = page_to_phys(shmem_page); in kvm_riscv_nacl_init()

12345