Lines Matching refs:vdev
35 static void vfio_ccw_dma_unmap(struct vfio_device *vdev, u64 iova, u64 length)
38 container_of(vdev, struct vfio_ccw_private, vdev);
47 static int vfio_ccw_mdev_init_dev(struct vfio_device *vdev)
50 container_of(vdev, struct vfio_ccw_private, vdev);
105 private = vfio_alloc_device(vfio_ccw_private, vdev, &mdev->dev,
117 ret = vfio_register_emulated_iommu_dev(&private->vdev);
125 vfio_put_device(&private->vdev);
129 static void vfio_ccw_mdev_release_dev(struct vfio_device *vdev)
132 container_of(vdev, struct vfio_ccw_private, vdev);
159 vfio_unregister_group_dev(&private->vdev);
162 vfio_put_device(&private->vdev);
165 static int vfio_ccw_mdev_open_device(struct vfio_device *vdev)
168 container_of(vdev, struct vfio_ccw_private, vdev);
200 static void vfio_ccw_mdev_close_device(struct vfio_device *vdev)
203 container_of(vdev, struct vfio_ccw_private, vdev);
230 static ssize_t vfio_ccw_mdev_read(struct vfio_device *vdev,
236 container_of(vdev, struct vfio_ccw_private, vdev);
282 static ssize_t vfio_ccw_mdev_write(struct vfio_device *vdev,
288 container_of(vdev, struct vfio_ccw_private, vdev);
507 static ssize_t vfio_ccw_mdev_ioctl(struct vfio_device *vdev,
512 container_of(vdev, struct vfio_ccw_private, vdev);
603 static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count)
606 container_of(vdev, struct vfio_ccw_private, vdev);
607 struct device *dev = vdev->dev;