Lines Matching refs:iommufd_device
66 if (vdev->iommufd_device) in vfio_iommufd_device_ictx()
67 return iommufd_device_to_ictx(vdev->iommufd_device); in vfio_iommufd_device_ictx()
74 if (vdev->iommufd_device) in vfio_iommufd_device_id()
75 return iommufd_device_to_id(vdev->iommufd_device); in vfio_iommufd_device_id()
116 struct iommufd_device *idev; in vfio_iommufd_physical_bind()
121 vdev->iommufd_device = idev; in vfio_iommufd_physical_bind()
131 iommufd_device_detach(vdev->iommufd_device); in vfio_iommufd_physical_unbind()
134 iommufd_device_unbind(vdev->iommufd_device); in vfio_iommufd_physical_unbind()
135 vdev->iommufd_device = NULL; in vfio_iommufd_physical_unbind()
145 if (WARN_ON(!vdev->iommufd_device)) in vfio_iommufd_physical_attach_ioas()
149 rc = iommufd_device_replace(vdev->iommufd_device, pt_id); in vfio_iommufd_physical_attach_ioas()
151 rc = iommufd_device_attach(vdev->iommufd_device, pt_id); in vfio_iommufd_physical_attach_ioas()
163 if (WARN_ON(!vdev->iommufd_device) || !vdev->iommufd_attached) in vfio_iommufd_physical_detach_ioas()
166 iommufd_device_detach(vdev->iommufd_device); in vfio_iommufd_physical_detach_ioas()