Home
last modified time | relevance | path

Searched refs:pt_dma (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/media/pci/saa7164/
Dsaa7164-buffer.c65 buf->pt_cpu, (long long)buf->pt_dma, buf->pt_size); in saa7164_buffer_display()
112 &buf->pt_dma, GFP_KERNEL); in saa7164_buffer_alloc()
126 buf->pt_cpu, (long)buf->pt_dma, buf->pt_size); in saa7164_buffer_alloc()
166 buf->pt_dma); in saa7164_buffer_dealloc()
204 saa7164_writel(port->bufptr32h + ((sizeof(u32) * 2) * i), buf->pt_dma); in saa7164_buffer_activate()
Dsaa7164.h314 dma_addr_t pt_dma; /* Physical address */ member
/linux-6.12.1/drivers/iommu/
Domap-iommu.c470 dma_addr_t pt_dma; in iopte_free() local
475 pt_dma = virt_to_phys(iopte); in iopte_free()
476 dma_unmap_single(obj->dev, pt_dma, IOPTE_TABLE_SIZE, in iopte_free()
485 dma_addr_t *pt_dma, u32 da) in iopte_alloc() argument
505 *pt_dma = dma_map_single(obj->dev, iopte, IOPTE_TABLE_SIZE, in iopte_alloc()
507 if (dma_mapping_error(obj->dev, *pt_dma)) { in iopte_alloc()
517 if (WARN_ON(*pt_dma != virt_to_phys(iopte))) { in iopte_alloc()
519 dma_unmap_single(obj->dev, *pt_dma, IOPTE_TABLE_SIZE, in iopte_alloc()
536 *pt_dma = iopgd_page_paddr(iopgd); in iopte_alloc()
581 dma_addr_t pt_dma; in iopte_alloc_page() local
[all …]
Drockchip-iommu.c101 u32 (*mk_dtentries)(dma_addr_t pt_dma);
223 static inline u32 rk_mk_dte(dma_addr_t pt_dma) in rk_mk_dte() argument
225 return (pt_dma & RK_DTE_PT_ADDRESS_MASK) | RK_DTE_PT_VALID; in rk_mk_dte()
228 static inline u32 rk_mk_dte_v2(dma_addr_t pt_dma) in rk_mk_dte_v2() argument
230 pt_dma = (pt_dma & RK_DTE_PT_ADDRESS_MASK) | in rk_mk_dte_v2()
231 ((pt_dma & PAGE_DESC_HI_MASK1) >> DTE_HI_SHIFT1) | in rk_mk_dte_v2()
232 (pt_dma & PAGE_DESC_HI_MASK2) >> DTE_HI_SHIFT2; in rk_mk_dte_v2()
234 return (pt_dma & RK_DTE_PT_ADDRESS_MASK_V2) | RK_DTE_PT_VALID; in rk_mk_dte_v2()
722 dma_addr_t pt_dma; in rk_dte_get_page_table() local
736 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table()
[all …]
Dsun50i-iommu.c207 static u32 sun50i_mk_dte(dma_addr_t pt_dma) in sun50i_mk_dte() argument
209 return (pt_dma & SUN50I_DTE_PT_ADDRESS_MASK) | SUN50I_DTE_PT_VALID; in sun50i_mk_dte()
527 dma_addr_t pt_dma; in sun50i_iommu_alloc_page_table() local
534 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table()
535 if (dma_mapping_error(iommu->dev, pt_dma)) { in sun50i_iommu_alloc_page_table()
542 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table()