Searched refs:pgt_va (Results 1 – 2 of 2) sorted by relevance
/drivers/iommu/ |
D | sprd-iommu.c | 78 u32 *pgt_va; /* page table virtual address base */ member 236 dma_free_coherent(dom->sdev->dev, pgt_size, dom->pgt_va, dom->pgt_pa); in sprd_iommu_cleanup() 261 dom->pgt_va = dma_alloc_coherent(sdev->dev, pgt_size, &dom->pgt_pa, GFP_KERNEL); in sprd_iommu_attach_device() 262 if (!dom->pgt_va) in sprd_iommu_attach_device() 286 dma_free_coherent(sdev->dev, pgt_size, dom->pgt_va, dom->pgt_pa); in sprd_iommu_detach_device() 314 pgt_base_iova = dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT); in sprd_iommu_map() 339 pgt_base_iova = dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT); in sprd_iommu_unmap() 382 pa = *(dom->pgt_va + ((iova - start) >> SPRD_IOMMU_PAGE_SHIFT)); in sprd_iommu_iova_to_phys()
|
D | mtk_iommu_v1.c | 94 u32 *pgt_va; member 227 dom->pgt_va = dma_alloc_coherent(data->dev, M2701_IOMMU_PGT_SIZE, in mtk_iommu_domain_finalise() 229 if (!dom->pgt_va) in mtk_iommu_domain_finalise() 259 dom->pgt_va, dom->pgt_pa); in mtk_iommu_domain_free() 304 u32 *pgt_base_iova = dom->pgt_va + (iova >> MT2701_IOMMU_PAGE_SHIFT); in mtk_iommu_map() 332 u32 *pgt_base_iova = dom->pgt_va + (iova >> MT2701_IOMMU_PAGE_SHIFT); in mtk_iommu_unmap() 352 pa = *(dom->pgt_va + (iova >> MT2701_IOMMU_PAGE_SHIFT)); in mtk_iommu_iova_to_phys()
|