Lines Matching refs:mtk_mapping
301 struct dma_iommu_mapping *mtk_mapping; in mtk_iommu_v1_attach_device() local
305 mtk_mapping = data->mapping; in mtk_iommu_v1_attach_device()
306 if (mtk_mapping->domain != domain) in mtk_iommu_v1_attach_device()
398 struct dma_iommu_mapping *mtk_mapping; in mtk_iommu_v1_create_mapping() local
430 mtk_mapping = data->mapping; in mtk_iommu_v1_create_mapping()
431 if (!mtk_mapping) { in mtk_iommu_v1_create_mapping()
433 mtk_mapping = arm_iommu_create_mapping(&platform_bus_type, in mtk_iommu_v1_create_mapping()
435 if (IS_ERR(mtk_mapping)) in mtk_iommu_v1_create_mapping()
436 return PTR_ERR(mtk_mapping); in mtk_iommu_v1_create_mapping()
438 data->mapping = mtk_mapping; in mtk_iommu_v1_create_mapping()
514 struct dma_iommu_mapping *mtk_mapping; in mtk_iommu_v1_probe_finalize() local
519 mtk_mapping = data->mapping; in mtk_iommu_v1_probe_finalize()
521 err = arm_iommu_attach_device(dev, mtk_mapping); in mtk_iommu_v1_probe_finalize()