Lines Matching defs:mdev
27 static int vfio_ap_mdev_reset_queues(struct mdev_device *mdev);
126 vfio_unpin_pages(mdev_dev(q->matrix_mdev->mdev),
213 ret = vfio_pin_pages(mdev_dev(q->matrix_mdev->mdev), &g_pfn, 1,
242 vfio_unpin_pages(mdev_dev(q->matrix_mdev->mdev), &g_pfn, 1);
325 static int vfio_ap_mdev_create(struct kobject *kobj, struct mdev_device *mdev)
338 matrix_mdev->mdev = mdev;
340 mdev_set_drvdata(mdev, matrix_mdev);
350 static int vfio_ap_mdev_remove(struct mdev_device *mdev)
352 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
358 vfio_ap_mdev_reset_queues(mdev);
363 mdev_set_drvdata(mdev, NULL);
606 struct mdev_device *mdev = mdev_from_dev(dev);
607 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
672 struct mdev_device *mdev = mdev_from_dev(dev);
673 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
752 struct mdev_device *mdev = mdev_from_dev(dev);
753 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
814 struct mdev_device *mdev = mdev_from_dev(dev);
815 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
858 struct mdev_device *mdev = mdev_from_dev(dev);
859 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
907 struct mdev_device *mdev = mdev_from_dev(dev);
908 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
937 struct mdev_device *mdev = mdev_from_dev(dev);
938 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
956 struct mdev_device *mdev = mdev_from_dev(dev);
957 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
1080 vfio_unpin_pages(mdev_dev(matrix_mdev->mdev), &g_pfn, 1);
1184 static int vfio_ap_mdev_reset_queues(struct mdev_device *mdev)
1190 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
1211 static int vfio_ap_mdev_open(struct mdev_device *mdev)
1213 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
1224 ret = vfio_register_notifier(mdev_dev(mdev), VFIO_GROUP_NOTIFY,
1233 ret = vfio_register_notifier(mdev_dev(mdev), VFIO_IOMMU_NOTIFY,
1238 vfio_unregister_notifier(mdev_dev(mdev), VFIO_GROUP_NOTIFY,
1244 static void vfio_ap_mdev_release(struct mdev_device *mdev)
1246 struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev);
1252 vfio_ap_mdev_reset_queues(mdev);
1258 vfio_unregister_notifier(mdev_dev(mdev), VFIO_IOMMU_NOTIFY,
1260 vfio_unregister_notifier(mdev_dev(mdev), VFIO_GROUP_NOTIFY,
1285 static ssize_t vfio_ap_mdev_ioctl(struct mdev_device *mdev,
1296 ret = vfio_ap_mdev_reset_queues(mdev);