Searched refs:pt_dma (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/ |
D | saa7164-buffer.c | 65 buf->pt_cpu, (long long)buf->pt_dma, buf->pt_size); in saa7164_buffer_display() 112 &buf->pt_dma); in saa7164_buffer_alloc() 126 buf->pt_cpu, (long)buf->pt_dma, buf->pt_size); in saa7164_buffer_alloc() 164 pci_free_consistent(dev->pci, buf->pt_size, buf->pt_cpu, buf->pt_dma); in saa7164_buffer_dealloc() 202 saa7164_writel(port->bufptr32h + ((sizeof(u32) * 2) * i), buf->pt_dma); in saa7164_buffer_activate()
|
D | saa7164.h | 314 dma_addr_t pt_dma; /* Physical address */ member
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | omap-iommu.c | 471 dma_addr_t pt_dma; in iopte_free() local 476 pt_dma = virt_to_phys(iopte); in iopte_free() 477 dma_unmap_single(obj->dev, pt_dma, IOPTE_TABLE_SIZE, in iopte_free() 486 dma_addr_t *pt_dma, u32 da) in iopte_alloc() argument 506 *pt_dma = dma_map_single(obj->dev, iopte, IOPTE_TABLE_SIZE, in iopte_alloc() 508 if (dma_mapping_error(obj->dev, *pt_dma)) { in iopte_alloc() 518 if (WARN_ON(*pt_dma != virt_to_phys(iopte))) { in iopte_alloc() 520 dma_unmap_single(obj->dev, *pt_dma, IOPTE_TABLE_SIZE, in iopte_alloc() 537 *pt_dma = iopgd_page_paddr(iopgd); in iopte_alloc() 582 dma_addr_t pt_dma; in iopte_alloc_page() local [all …]
|
D | sun50i-iommu.c | 204 static u32 sun50i_mk_dte(dma_addr_t pt_dma) in sun50i_mk_dte() argument 206 return (pt_dma & SUN50I_DTE_PT_ADDRESS_MASK) | SUN50I_DTE_PT_VALID; in sun50i_mk_dte() 453 dma_addr_t pt_dma; in sun50i_iommu_alloc_page_table() local 460 pt_dma = dma_map_single(iommu->dev, page_table, PT_SIZE, DMA_TO_DEVICE); in sun50i_iommu_alloc_page_table() 461 if (dma_mapping_error(iommu->dev, pt_dma)) { in sun50i_iommu_alloc_page_table() 468 WARN_ON(pt_dma != virt_to_phys(page_table)); in sun50i_iommu_alloc_page_table()
|
D | rockchip-iommu.c | 187 static inline u32 rk_mk_dte(dma_addr_t pt_dma) in rk_mk_dte() argument 189 return (pt_dma & RK_DTE_PT_ADDRESS_MASK) | RK_DTE_PT_VALID; in rk_mk_dte() 661 dma_addr_t pt_dma; in rk_dte_get_page_table() local 675 pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); in rk_dte_get_page_table() 676 if (dma_mapping_error(dma_dev, pt_dma)) { in rk_dte_get_page_table() 682 dte = rk_mk_dte(pt_dma); in rk_dte_get_page_table() 685 rk_table_flush(rk_domain, pt_dma, NUM_PT_ENTRIES); in rk_dte_get_page_table()
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | drivers.patch | 39587 @@ -189,6 +246,15 @@ static inline u32 rk_mk_dte(dma_addr_t pt_dma) 39588 return (pt_dma & RK_DTE_PT_ADDRESS_MASK) | RK_DTE_PT_VALID; 39591 +static inline u32 rk_mk_dte_v2(dma_addr_t pt_dma) 39593 + pt_dma = (pt_dma & PAGE_DESC_LO_MASK) | 39594 + ((pt_dma & PAGE_DESC_HI_MASK1) >> PAGE_DESC_HI_SHIFT1) | 39595 + (pt_dma & PAGE_DESC_HI_MASK2) >> PAGE_DESC_HI_SHIFT2; 39597 + return (pt_dma & RK_DTE_PT_ADDRESS_MASK_V2) | RK_DTE_PT_VALID; 39603 @@ -215,11 +281,37 @@ static inline u32 rk_mk_dte(dma_addr_t pt_dma) 39949 + dma_addr_t pt_dma; 39963 + pt_dma = dma_map_single(dma_dev, page_table, SPAGE_SIZE, DMA_TO_DEVICE); [all …]
|