Home
last modified time | relevance | path

Searched refs:mdev_device (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/include/linux/
Dmdev.h16 struct mdev_device;
73 int (*create)(struct kobject *kobj, struct mdev_device *mdev);
74 int (*remove)(struct mdev_device *mdev);
75 int (*open)(struct mdev_device *mdev);
76 void (*release)(struct mdev_device *mdev);
77 ssize_t (*read)(struct mdev_device *mdev, char __user *buf,
79 ssize_t (*write)(struct mdev_device *mdev, const char __user *buf,
81 long (*ioctl)(struct mdev_device *mdev, unsigned int cmd,
83 int (*mmap)(struct mdev_device *mdev, struct vm_area_struct *vma);
121 extern void *mdev_get_drvdata(struct mdev_device *mdev);
[all …]
/Linux-v4.19/drivers/vfio/mdev/
Dvfio_mdev.c29 struct mdev_device *mdev = device_data; in vfio_mdev_open()
48 struct mdev_device *mdev = device_data; in vfio_mdev_release()
60 struct mdev_device *mdev = device_data; in vfio_mdev_unlocked_ioctl()
72 struct mdev_device *mdev = device_data; in vfio_mdev_read()
84 struct mdev_device *mdev = device_data; in vfio_mdev_write()
95 struct mdev_device *mdev = device_data; in vfio_mdev_mmap()
116 struct mdev_device *mdev = to_mdev_device(dev); in vfio_mdev_probe()
Dmdev_core.c33 struct device *mdev_parent_dev(struct mdev_device *mdev) in mdev_parent_dev()
39 void *mdev_get_drvdata(struct mdev_device *mdev) in mdev_get_drvdata()
45 void mdev_set_drvdata(struct mdev_device *mdev, void *data) in mdev_set_drvdata()
51 struct device *mdev_dev(struct mdev_device *mdev) in mdev_dev()
57 struct mdev_device *mdev_from_dev(struct device *dev) in mdev_from_dev()
63 uuid_le mdev_uuid(struct mdev_device *mdev) in mdev_uuid()
107 struct mdev_device *mdev) in mdev_device_create_ops()
134 static int mdev_device_remove_ops(struct mdev_device *mdev, bool force_remove) in mdev_device_remove_ops()
269 struct mdev_device *mdev = to_mdev_device(dev); in mdev_device_release()
282 struct mdev_device *mdev, *tmp; in mdev_device_create()
[all …]
Dmdev_driver.c19 static int mdev_attach_iommu(struct mdev_device *mdev) in mdev_attach_iommu()
37 static void mdev_detach_iommu(struct mdev_device *mdev) in mdev_detach_iommu()
46 struct mdev_device *mdev = to_mdev_device(dev); in mdev_probe()
65 struct mdev_device *mdev = to_mdev_device(dev); in mdev_remove()
Dmdev_private.h28 struct mdev_device { struct
39 #define to_mdev_device(dev) container_of(dev, struct mdev_device, dev) argument
/Linux-v4.19/drivers/s390/cio/
Dvfio_ccw_ops.c16 static int vfio_ccw_mdev_reset(struct mdev_device *mdev) in vfio_ccw_mdev_reset()
109 static int vfio_ccw_mdev_create(struct kobject *kobj, struct mdev_device *mdev) in vfio_ccw_mdev_create()
126 static int vfio_ccw_mdev_remove(struct mdev_device *mdev) in vfio_ccw_mdev_remove()
144 static int vfio_ccw_mdev_open(struct mdev_device *mdev) in vfio_ccw_mdev_open()
156 static void vfio_ccw_mdev_release(struct mdev_device *mdev) in vfio_ccw_mdev_release()
165 static ssize_t vfio_ccw_mdev_read(struct mdev_device *mdev, in vfio_ccw_mdev_read()
184 static ssize_t vfio_ccw_mdev_write(struct mdev_device *mdev, in vfio_ccw_mdev_write()
248 static int vfio_ccw_mdev_set_irqs(struct mdev_device *mdev, in vfio_ccw_mdev_set_irqs()
311 static ssize_t vfio_ccw_mdev_ioctl(struct mdev_device *mdev, in vfio_ccw_mdev_ioctl()
Dvfio_ccw_private.h42 struct mdev_device *mdev;
Dvfio_ccw_fsm.c130 struct mdev_device *mdev = private->mdev; in fsm_io_request()
/Linux-v4.19/samples/vfio-mdev/
Dmdpy.c94 struct mdev_device *mdev;
175 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access()
215 static int mdpy_reset(struct mdev_device *mdev) in mdpy_reset()
229 static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) in mdpy_create()
275 static int mdpy_remove(struct mdev_device *mdev) in mdpy_remove()
291 static ssize_t mdpy_read(struct mdev_device *mdev, char __user *buf, in mdpy_read()
350 static ssize_t mdpy_write(struct mdev_device *mdev, const char __user *buf, in mdpy_write()
407 static int mdpy_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in mdpy_mmap()
425 static int mdpy_get_region_info(struct mdev_device *mdev, in mdpy_get_region_info()
463 static int mdpy_get_irq_info(struct mdev_device *mdev, in mdpy_get_irq_info()
[all …]
Dmbochs.c146 struct mdev_device *mdev;
368 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access()
424 static int mbochs_reset(struct mdev_device *mdev) in mbochs_reset()
437 static int mbochs_create(struct kobject *kobj, struct mdev_device *mdev) in mbochs_create()
486 static int mbochs_remove(struct mdev_device *mdev) in mbochs_remove()
498 static ssize_t mbochs_read(struct mdev_device *mdev, char __user *buf, in mbochs_read()
557 static ssize_t mbochs_write(struct mdev_device *mdev, const char __user *buf, in mbochs_write()
682 static int mbochs_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in mbochs_mmap()
934 static int mbochs_get_region_info(struct mdev_device *mdev, in mbochs_get_region_info()
976 static int mbochs_get_irq_info(struct mdev_device *mdev, in mbochs_get_irq_info()
[all …]
Dmtty.c140 struct mdev_device *mdev;
653 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access()
730 int mtty_create(struct kobject *kobj, struct mdev_device *mdev) in mtty_create()
780 int mtty_remove(struct mdev_device *mdev) in mtty_remove()
802 int mtty_reset(struct mdev_device *mdev) in mtty_reset()
818 ssize_t mtty_read(struct mdev_device *mdev, char __user *buf, size_t count, in mtty_read()
877 ssize_t mtty_write(struct mdev_device *mdev, const char __user *buf, in mtty_write()
934 static int mtty_set_irqs(struct mdev_device *mdev, uint32_t flags, in mtty_set_irqs()
1070 int mtty_get_region_info(struct mdev_device *mdev, in mtty_get_region_info()
1119 int mtty_get_irq_info(struct mdev_device *mdev, struct vfio_irq_info *irq_info) in mtty_get_irq_info()
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dkvmgt.c109 static int kvmgt_guest_init(struct mdev_device *mdev);
504 static int intel_vgpu_create(struct kobject *kobj, struct mdev_device *mdev) in intel_vgpu_create()
543 static int intel_vgpu_remove(struct mdev_device *mdev) in intel_vgpu_remove()
603 static int intel_vgpu_open(struct mdev_device *mdev) in intel_vgpu_open()
691 static void intel_vgpu_release(struct mdev_device *mdev) in intel_vgpu_release()
781 static ssize_t intel_vgpu_rw(struct mdev_device *mdev, char *buf, in intel_vgpu_rw()
830 static bool gtt_entry(struct mdev_device *mdev, loff_t *ppos) in gtt_entry()
849 static ssize_t intel_vgpu_read(struct mdev_device *mdev, char __user *buf, in intel_vgpu_read()
922 static ssize_t intel_vgpu_write(struct mdev_device *mdev, in intel_vgpu_write()
995 static int intel_vgpu_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in intel_vgpu_mmap()
[all …]
Dgvt.h204 struct mdev_device *mdev;