Lines Matching refs:vdev
279 vfio_unpin_pages(&q->matrix_mdev->vdev, q->saved_iova, 1);
428 ret = vfio_pin_pages(&q->matrix_mdev->vdev, nib, 1,
451 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1);
461 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1);
480 vfio_unpin_pages(&q->matrix_mdev->vdev, nib, 1);
739 static int vfio_ap_mdev_init_dev(struct vfio_device *vdev)
742 container_of(vdev, struct ap_matrix_mdev, vdev);
744 matrix_mdev->mdev = to_mdev_device(vdev->dev);
758 matrix_mdev = vfio_alloc_device(ap_matrix_mdev, vdev, &mdev->dev,
763 ret = vfio_register_emulated_iommu_dev(&matrix_mdev->vdev);
774 vfio_put_device(&matrix_mdev->vdev);
825 vfio_unregister_group_dev(&matrix_mdev->vdev);
834 vfio_put_device(&matrix_mdev->vdev);
1630 static void vfio_ap_mdev_dma_unmap(struct vfio_device *vdev, u64 iova,
1634 container_of(vdev, struct ap_matrix_mdev, vdev);
1833 static int vfio_ap_mdev_open_device(struct vfio_device *vdev)
1836 container_of(vdev, struct ap_matrix_mdev, vdev);
1838 if (!vdev->kvm)
1841 return vfio_ap_mdev_set_kvm(matrix_mdev, vdev->kvm);
1844 static void vfio_ap_mdev_close_device(struct vfio_device *vdev)
1847 container_of(vdev, struct ap_matrix_mdev, vdev);
1852 static void vfio_ap_mdev_request(struct vfio_device *vdev, unsigned int count)
1854 struct device *dev = vdev->dev;
1857 matrix_mdev = container_of(vdev, struct ap_matrix_mdev, vdev);
1996 static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev,
2000 container_of(vdev, struct ap_matrix_mdev, vdev);