Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dmdev.h13 struct mdev_device;
84 int (*create)(struct kobject *kobj, struct mdev_device *mdev);
85 int (*remove)(struct mdev_device *mdev);
86 int (*open)(struct mdev_device *mdev);
87 void (*release)(struct mdev_device *mdev);
88 ssize_t (*read)(struct mdev_device *mdev, char __user *buf,
90 ssize_t (*write)(struct mdev_device *mdev, const char __user *buf,
92 long (*ioctl)(struct mdev_device *mdev, unsigned int cmd,
94 int (*mmap)(struct mdev_device *mdev, struct vm_area_struct *vma);
132 void *mdev_get_drvdata(struct mdev_device *mdev);
[all …]
/Linux-v5.10/drivers/vfio/mdev/
Dmdev_core.c30 struct device *mdev_parent_dev(struct mdev_device *mdev) in mdev_parent_dev()
36 void *mdev_get_drvdata(struct mdev_device *mdev) in mdev_get_drvdata()
42 void mdev_set_drvdata(struct mdev_device *mdev, void *data) in mdev_set_drvdata()
48 struct device *mdev_dev(struct mdev_device *mdev) in mdev_dev()
54 struct mdev_device *mdev_from_dev(struct device *dev) in mdev_from_dev()
60 const guid_t *mdev_uuid(struct mdev_device *mdev) in mdev_uuid()
103 static void mdev_device_remove_common(struct mdev_device *mdev) in mdev_device_remove_common()
126 struct mdev_device *mdev; in mdev_device_remove_cb()
255 static void mdev_device_free(struct mdev_device *mdev) in mdev_device_free()
267 struct mdev_device *mdev = to_mdev_device(dev); in mdev_device_release()
[all …]
Dvfio_mdev.c26 struct mdev_device *mdev = device_data; in vfio_mdev_open()
45 struct mdev_device *mdev = device_data; in vfio_mdev_release()
57 struct mdev_device *mdev = device_data; in vfio_mdev_unlocked_ioctl()
69 struct mdev_device *mdev = device_data; in vfio_mdev_read()
81 struct mdev_device *mdev = device_data; in vfio_mdev_write()
92 struct mdev_device *mdev = device_data; in vfio_mdev_mmap()
113 struct mdev_device *mdev = to_mdev_device(dev); in vfio_mdev_probe()
Dmdev_driver.c16 static int mdev_attach_iommu(struct mdev_device *mdev) in mdev_attach_iommu()
34 static void mdev_detach_iommu(struct mdev_device *mdev) in mdev_detach_iommu()
43 struct mdev_device *mdev = to_mdev_device(dev); in mdev_probe()
62 struct mdev_device *mdev = to_mdev_device(dev); in mdev_remove()
Dmdev_private.h27 struct mdev_device { struct
38 #define to_mdev_device(dev) container_of(dev, struct mdev_device, dev) argument
/Linux-v5.10/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.c167 struct mdev_device *mdev;
438 static ssize_t mdev_access(struct mdev_device *mdev, char *buf, size_t count, in mdev_access()
506 static int mbochs_reset(struct mdev_device *mdev) in mbochs_reset()
519 static int mbochs_create(struct kobject *kobj, struct mdev_device *mdev) in mbochs_create()
572 static int mbochs_remove(struct mdev_device *mdev) in mbochs_remove()
584 static ssize_t mbochs_read(struct mdev_device *mdev, char __user *buf, in mbochs_read()
643 static ssize_t mbochs_write(struct mdev_device *mdev, const char __user *buf, in mbochs_write()
768 static int mbochs_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in mbochs_mmap()
1005 static int mbochs_get_region_info(struct mdev_device *mdev, in mbochs_get_region_info()
1061 static int mbochs_get_irq_info(struct mdev_device *mdev, in mbochs_get_irq_info()
[all …]
Dmtty.c136 struct mdev_device *mdev;
634 static ssize_t mdev_access(struct mdev_device *mdev, u8 *buf, size_t count, in mdev_access()
711 static int mtty_create(struct kobject *kobj, struct mdev_device *mdev) in mtty_create()
761 static int mtty_remove(struct mdev_device *mdev) in mtty_remove()
783 static int mtty_reset(struct mdev_device *mdev) in mtty_reset()
799 static ssize_t mtty_read(struct mdev_device *mdev, char __user *buf, in mtty_read()
858 static ssize_t mtty_write(struct mdev_device *mdev, const char __user *buf, in mtty_write()
915 static int mtty_set_irqs(struct mdev_device *mdev, uint32_t flags, in mtty_set_irqs()
1043 static int mtty_get_region_info(struct mdev_device *mdev, in mtty_get_region_info()
1092 static int mtty_get_irq_info(struct mdev_device *mdev, in mtty_get_irq_info()
[all …]
/Linux-v5.10/drivers/s390/cio/
Dvfio_ccw_ops.c20 static int vfio_ccw_mdev_reset(struct mdev_device *mdev) in vfio_ccw_mdev_reset()
113 static int vfio_ccw_mdev_create(struct kobject *kobj, struct mdev_device *mdev) in vfio_ccw_mdev_create()
135 static int vfio_ccw_mdev_remove(struct mdev_device *mdev) in vfio_ccw_mdev_remove()
159 static int vfio_ccw_mdev_open(struct mdev_device *mdev) in vfio_ccw_mdev_open()
194 static void vfio_ccw_mdev_release(struct mdev_device *mdev) in vfio_ccw_mdev_release()
233 static ssize_t vfio_ccw_mdev_read(struct mdev_device *mdev, in vfio_ccw_mdev_read()
288 static ssize_t vfio_ccw_mdev_write(struct mdev_device *mdev, in vfio_ccw_mdev_write()
314 struct mdev_device *mdev) in vfio_ccw_mdev_get_device_info()
327 struct mdev_device *mdev, in vfio_ccw_mdev_get_region_info()
407 static int vfio_ccw_mdev_set_irqs(struct mdev_device *mdev, in vfio_ccw_mdev_set_irqs()
[all …]
Dvfio_ccw_private.h94 struct mdev_device *mdev;
Dvfio_ccw_fsm.c245 struct mdev_device *mdev = private->mdev; in fsm_io_request()
/Linux-v5.10/drivers/s390/crypto/
Dvfio_ap_ops.c27 static int vfio_ap_mdev_reset_queues(struct mdev_device *mdev);
324 static int vfio_ap_mdev_create(struct kobject *kobj, struct mdev_device *mdev) in vfio_ap_mdev_create()
349 static int vfio_ap_mdev_remove(struct mdev_device *mdev) in vfio_ap_mdev_remove()
605 struct mdev_device *mdev = mdev_from_dev(dev); in assign_adapter_store()
671 struct mdev_device *mdev = mdev_from_dev(dev); in unassign_adapter_store()
751 struct mdev_device *mdev = mdev_from_dev(dev); in assign_domain_store()
813 struct mdev_device *mdev = mdev_from_dev(dev); in unassign_domain_store()
857 struct mdev_device *mdev = mdev_from_dev(dev); in assign_control_domain_store()
906 struct mdev_device *mdev = mdev_from_dev(dev); in unassign_control_domain_store()
936 struct mdev_device *mdev = mdev_from_dev(dev); in control_domains_show()
[all …]
Dvfio_ap_private.h88 struct mdev_device *mdev;
/Linux-v5.10/drivers/gpu/drm/i915/gvt/
Dkvmgt.c113 struct mdev_device *mdev;
147 static int kvmgt_guest_init(struct mdev_device *mdev);
692 static int intel_vgpu_create(struct kobject *kobj, struct mdev_device *mdev) in intel_vgpu_create()
731 static int intel_vgpu_remove(struct mdev_device *mdev) in intel_vgpu_remove()
792 static int intel_vgpu_open(struct mdev_device *mdev) in intel_vgpu_open()
911 static void intel_vgpu_release(struct mdev_device *mdev) in intel_vgpu_release()
1001 static ssize_t intel_vgpu_rw(struct mdev_device *mdev, char *buf, in intel_vgpu_rw()
1051 static bool gtt_entry(struct mdev_device *mdev, loff_t *ppos) in gtt_entry()
1070 static ssize_t intel_vgpu_read(struct mdev_device *mdev, char __user *buf, in intel_vgpu_read()
1143 static ssize_t intel_vgpu_write(struct mdev_device *mdev, in intel_vgpu_write()
[all …]