Lines Matching defs:iommu
8 * Based on driver/iommu/mtk_iommu.c
18 #include <linux/iommu.h>
29 #include <asm/dma-iommu.h>
78 /* MTK generation one iommu HW only support 4K size mapping */
104 struct iommu_device iommu;
212 * MTK v1 iommu HW could not determine whether the fault is read or
245 dev_dbg(dev, "%s iommu port: %d\n",
390 * MTK generation one iommu HW only support one iommu domain, and all the client
402 dev_err(dev, "invalid #iommu-cells(%d) property for IOMMU\n",
432 /* MTK iommu support 4GB iova address space. */
468 "#iommu-cells",
482 return ERR_PTR(-ENODEV); /* Not a iommu client device */
509 return &data->iommu;
546 dev_err(data->dev, "Failed to enable iommu bclk(%d)\n", ret);
683 ret = iommu_device_sysfs_add(&data->iommu, &pdev->dev, NULL,
688 ret = iommu_device_register(&data->iommu, &mtk_iommu_v1_ops, dev);
698 iommu_device_unregister(&data->iommu);
700 iommu_device_sysfs_remove(&data->iommu);
710 iommu_device_sysfs_remove(&data->iommu);
711 iommu_device_unregister(&data->iommu);
756 .name = "mtk-iommu-v1",