Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/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 if (PageHighMem(page) || !DCACHE_ALIAS_EQ(page_to_phys(page), vaddr)) { in coherent_kvaddr()
85 *paddr = page_to_phys(page); in coherent_kvaddr()
146 unsigned long phys = page_to_phys(page); in flush_dcache_page()
203 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page()
233 unsigned long phys = page_to_phys(page); in update_mmu_cache()
269 unsigned long phys = page_to_phys(page); in copy_to_user_page()
309 unsigned long phys = page_to_phys(page); in copy_from_user_page()
/OK3568_Linux_fs/kernel/arch/nds32/mm/
H A Dcacheflush.c202 pto = page_to_phys(to); in copy_user_highpage()
203 pfrom = page_to_phys(from); in copy_user_highpage()
229 vto = kremap0(vaddr, page_to_phys(page)); in clear_user_highpage()
255 kto = kremap0(vaddr, page_to_phys(page)); in flush_dcache_page()
271 vto = kremap0(vaddr, page_to_phys(page)); in copy_to_user_page()
292 vto = kremap0(vaddr, page_to_phys(page)); in copy_from_user_page()
314 ktmp = kremap0(vaddr, page_to_phys(page)); in flush_anon_page()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Dvirtconvert.h33 #define page_to_phys(page) \ macro
36 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
/OK3568_Linux_fs/kernel/arch/s390/mm/
H A Dpage-states.c66 : "a" (page_to_phys(page)), in get_page_state()
78 : "a" (page_to_phys(page + i)), in set_page_unused()
89 : "a" (page_to_phys(page + i)), in set_page_stable_dat()
100 : "a" (page_to_phys(page + i)), in set_page_stable_nodat()
H A Dpgalloc.c61 return (unsigned long *) page_to_phys(page); in crst_table_alloc()
173 table = (u64 *)page_to_phys(page); in page_table_alloc_pgste()
206 table = (unsigned long *) page_to_phys(page); in page_table_alloc()
229 table = (unsigned long *) page_to_phys(page); in page_table_alloc()
/OK3568_Linux_fs/kernel/drivers/char/agp/
H A Duninorth-agp.c143 page_to_phys(agp_bridge->scratch_page_page) >> 12); in uninorth_configure()
186 gp[i] = (page_to_phys(mem->pages[i]) >> PAGE_SHIFT) | 0x80000000UL; in uninorth_insert_memory()
188 gp[i] = cpu_to_le32((page_to_phys(mem->pages[i]) & 0xFFFFF000UL) | in uninorth_insert_memory()
190 flush_dcache_range((unsigned long)__va(page_to_phys(mem->pages[i])), in uninorth_insert_memory()
191 (unsigned long)__va(page_to_phys(mem->pages[i]))+0x1000); in uninorth_insert_memory()
432 scratch_value = (page_to_phys(agp_bridge->scratch_page_page) >> PAGE_SHIFT) | 0x80000000UL; in uninorth_create_gatt_table()
434 scratch_value = cpu_to_le32((page_to_phys(agp_bridge->scratch_page_page) & 0xFFFFF000UL) | in uninorth_create_gatt_table()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_mem_pool.c315 WARN_ON(dma_addr != page_to_phys(p)); in kbase_mem_alloc_page()
738 pages[i++] = as_tagged_tag(page_to_phys(p), in kbase_mem_pool_alloc_pages()
741 pages[i++] = as_tagged_tag(page_to_phys(p) + in kbase_mem_pool_alloc_pages()
745 pages[i++] = as_tagged(page_to_phys(p)); in kbase_mem_pool_alloc_pages()
776 pages[i++] = as_tagged_tag(page_to_phys(p), in kbase_mem_pool_alloc_pages()
782 phys = page_to_phys(p) + PAGE_SIZE * j; in kbase_mem_pool_alloc_pages()
787 pages[i++] = as_tagged(page_to_phys(p)); in kbase_mem_pool_alloc_pages()
829 *pages++ = as_tagged_tag(page_to_phys(p), in kbase_mem_pool_alloc_pages_locked()
832 *pages++ = as_tagged_tag(page_to_phys(p) + in kbase_mem_pool_alloc_pages_locked()
837 *pages++ = as_tagged(page_to_phys(p)); in kbase_mem_pool_alloc_pages_locked()
H A Dmali_kbase_mem_migrate.c188 as_tagged(page_to_phys(old_page)), as_tagged(page_to_phys(new_page)), old_dma_addr, in kbasep_migrate_page_pt_mapped()
254 ret = kbase_mmu_migrate_page(as_tagged(page_to_phys(old_page)), in kbasep_migrate_page_allocated_mapped()
255 as_tagged(page_to_phys(new_page)), old_dma_addr, new_dma_addr, in kbasep_migrate_page_allocated_mapped()
/OK3568_Linux_fs/kernel/kernel/dma/
H A Ddirect.c91 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in __dma_direct_alloc_pages()
98 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in __dma_direct_alloc_pages()
131 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_from_pool()
154 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
230 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc()
309 *dma_handle = phys_to_dma_direct(dev, page_to_phys(page)); in dma_direct_alloc_pages()
/OK3568_Linux_fs/kernel/arch/microblaze/include/asm/
H A Dpage.h149 # define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
154 # define page_to_phys(page) (pfn_to_phys(page_to_pfn(page))) macro
155 # define page_to_bus(page) (page_to_phys(page))
/OK3568_Linux_fs/kernel/arch/csky/mm/
H A Ddma-mapping.c19 void *start = __va(page_to_phys(page)); in cache_op()
56 cache_op(page_to_phys(page), size, dma_wbinv_set_zero_range); in arch_dma_prep_coherent()
/OK3568_Linux_fs/kernel/arch/hexagon/include/asm/
H A Dpage.h127 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
132 #define page_to_virt(page) __va(page_to_phys(page))
/OK3568_Linux_fs/kernel/include/asm-generic/
H A Dpage.h87 #ifndef page_to_phys
88 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT) macro
/OK3568_Linux_fs/kernel/arch/riscv/include/asm/
H A Dpage.h127 #define page_to_phys(page) (pfn_to_phys(page_to_pfn(page))) macro
128 #define page_to_bus(page) (page_to_phys(page))
/OK3568_Linux_fs/kernel/arch/x86/kvm/svm/
H A Davic.c198 phys_addr_t bpa = __sme_set(page_to_phys(svm->avic_backing_page)); in avic_init_vmcb()
199 phys_addr_t lpa = __sme_set(page_to_phys(kvm_svm->avic_logical_id_table_page)); in avic_init_vmcb()
200 phys_addr_t ppa = __sme_set(page_to_phys(kvm_svm->avic_physical_id_table_page)); in avic_init_vmcb()
288 new_entry = __sme_set((page_to_phys(svm->avic_backing_page) & in avic_init_backing_page()
789 vcpu_info->pi_desc_addr = __sme_set(page_to_phys((*svm)->avic_backing_page)); in get_pi_vcpu_info()
847 pi.base = __sme_set(page_to_phys(svm->avic_backing_page) & in svm_update_pi_irte()
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Dcapsule.c171 sglist_phys = page_to_phys(sg_pages[0]); in efi_capsule_update_locked()
266 sglist[j].data = page_to_phys(sg_pages[i + 1]); in efi_capsule_update()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Dmachine_kexec.c210 reboot_code_buffer = (void *) page_to_phys(image->control_code_page); in machine_kexec_prepare()
250 data_mover = (relocate_kernel_t) page_to_phys(image->control_code_page); in __do_machine_kexec()
/OK3568_Linux_fs/kernel/arch/sparc/include/asm/
H A Dpage.h5 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) macro
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/microblaze/mm/
H A Dconsistent.c20 phys_addr_t paddr = page_to_phys(page); in arch_dma_prep_coherent()
/OK3568_Linux_fs/kernel/arch/nios2/include/asm/
H A Dio.h32 #define page_to_phys(page) virt_to_phys(page_to_virt(page)) macro
/OK3568_Linux_fs/kernel/arch/arm64/include/asm/
H A Dmemory.h280 #define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page))) macro
338 void *__addr = __va(page_to_phys(__page)); \
/OK3568_Linux_fs/kernel/tools/virtio/linux/
H A Ddma-mapping.h24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o))
/OK3568_Linux_fs/kernel/arch/arc/mm/
H A Ddma.c30 dma_cache_wback_inv(page_to_phys(page), size); in arch_dma_prep_coherent()
/OK3568_Linux_fs/kernel/arch/xtensa/include/asm/
H A Dhighmem.h34 return DCACHE_ALIAS(page_to_phys(page)); in get_pkmap_color()

12345678