Lines Matching defs:idev
62 * @idev: Device to get an iommu_domain for
63 * @immediate_attach: True if idev should be attached to the hwpt
75 struct iommufd_device *idev, bool immediate_attach)
91 hwpt->domain = iommu_domain_alloc(idev->dev->bus);
104 if (idev->enforce_cache_coherency) {
117 rc = iommufd_hw_pagetable_attach(hwpt, idev);
130 iommufd_hw_pagetable_detach(idev);
140 struct iommufd_device *idev;
147 idev = iommufd_get_device(ucmd, cmd->dev_id);
148 if (IS_ERR(idev))
149 return PTR_ERR(idev);
158 hwpt = iommufd_hw_pagetable_alloc(ucmd->ictx, ioas, idev, false);
177 iommufd_put_object(&idev->obj);