Home
last modified time | relevance | path

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

1234567

/openbmc/linux/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()
202 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page()
275 unsigned long phys = page_to_phys(page); in copy_to_user_page()
315 unsigned long phys = page_to_phys(page); in copy_from_user_page()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/include/asm-generic/
H A Dpage.h91 #ifndef page_to_phys
92 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT) macro
/openbmc/linux/arch/hexagon/include/asm/
H A Dpage.h126 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
131 #define page_to_virt(page) __va(page_to_phys(page))
/openbmc/linux/arch/s390/mm/
H A Dpage-states.c68 : "a" (page_to_phys(page + i)), in set_page_unused()
79 : "a" (page_to_phys(page + i)), in set_page_stable_dat()
90 : "a" (page_to_phys(page + i)), in set_page_stable_nodat()
/openbmc/linux/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()
310 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
385 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_pages()
/openbmc/linux/arch/sparc/include/asm/
H A Dpage.h5 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
/openbmc/linux/arch/microblaze/mm/
H A Dconsistent.c20 phys_addr_t paddr = page_to_phys(page); in arch_dma_prep_coherent()
/openbmc/linux/arch/m68k/include/asm/
H A Dvirtconvert.h32 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
/openbmc/linux/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()
/openbmc/linux/arch/nios2/include/asm/
H A Dio.h32 #define page_to_phys(page) virt_to_phys(page_to_virt(page)) macro
/openbmc/linux/arch/arc/mm/
H A Ddma.c30 dma_cache_wback_inv(page_to_phys(page), size); in arch_dma_prep_coherent()
/openbmc/linux/arch/s390/kernel/
H A Duv.c421 rc = uv_destroy_owned_page(page_to_phys(page)); in gmap_destroy_page()
432 rc = uv_convert_owned_from_secure(page_to_phys(page)); in gmap_destroy_page()
466 rc = uv_pin_shared(page_to_phys(page)); in arch_make_page_accessible()
472 rc = uv_convert_from_secure(page_to_phys(page)); in arch_make_page_accessible()
/openbmc/linux/arch/ia64/include/asm/
H A Dpgalloc.h53 pmd_val(*pmd_entry) = page_to_phys(pte); in pmd_populate()
/openbmc/linux/arch/xtensa/include/asm/
H A Dhighmem.h34 return DCACHE_ALIAS(page_to_phys(page)); in get_pkmap_color()
/openbmc/linux/arch/m68k/kernel/
H A Ddma.c23 cache_push(page_to_phys(page), size); in arch_dma_prep_coherent()
/openbmc/linux/arch/m68k/mm/
H A Dcache.c117 : : "a" (page_to_phys(page))); in flush_icache_user_page()
/openbmc/linux/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()
879 vcpu_info->pi_desc_addr = __sme_set(page_to_phys((*svm)->avic_backing_page)); in get_pi_vcpu_info()
937 pi.base = __sme_set(page_to_phys(svm->avic_backing_page) & in avic_pi_update_irte()
/openbmc/linux/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()
/openbmc/linux/arch/openrisc/include/asm/
H A Dpage.h88 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT) macro
/openbmc/linux/tools/virtio/linux/
H A Ddma-mapping.h24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o))
/openbmc/linux/arch/loongarch/include/asm/
H A Dio.h20 #define page_to_phys(page) ((phys_addr_t)page_to_pfn(page) << PAGE_SHIFT) macro
/openbmc/linux/arch/arm64/include/asm/
H A Dmemory.h316 #define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page))) macro
363 void *__addr = __va(page_to_phys(__page)); \
/openbmc/linux/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()

1234567