Home
last modified time | relevance | path

Searched refs:vfio_device (Results 1 – 19 of 19) sorted by relevance

/linux/include/linux/
A Dvfio.h30 struct vfio_device { struct
61 int (*open_device)(struct vfio_device *vdev); argument
62 void (*close_device)(struct vfio_device *vdev);
63 ssize_t (*read)(struct vfio_device *vdev, char __user *buf,
67 long (*ioctl)(struct vfio_device *vdev, unsigned int cmd,
70 void (*request)(struct vfio_device *vdev, unsigned int count);
71 int (*match)(struct vfio_device *vdev, char *buf);
76 void vfio_uninit_group_dev(struct vfio_device *device);
77 int vfio_register_group_dev(struct vfio_device *device);
79 void vfio_unregister_group_dev(struct vfio_device *device);
[all …]
A Dvfio_pci_core.h99 struct vfio_device vdev;
212 void vfio_pci_core_close_device(struct vfio_device *core_vdev);
221 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd,
223 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf,
225 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf,
227 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma);
228 void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count);
229 int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf);
/linux/drivers/vfio/mdev/
A Dvfio_mdev.c20 static int vfio_mdev_open_device(struct vfio_device *core_vdev) in vfio_mdev_open_device()
31 static void vfio_mdev_close_device(struct vfio_device *core_vdev) in vfio_mdev_close_device()
40 static long vfio_mdev_unlocked_ioctl(struct vfio_device *core_vdev, in vfio_mdev_unlocked_ioctl()
52 static ssize_t vfio_mdev_read(struct vfio_device *core_vdev, char __user *buf, in vfio_mdev_read()
64 static ssize_t vfio_mdev_write(struct vfio_device *core_vdev, in vfio_mdev_write()
77 static int vfio_mdev_mmap(struct vfio_device *core_vdev, in vfio_mdev_mmap()
89 static void vfio_mdev_request(struct vfio_device *core_vdev, unsigned int count) in vfio_mdev_request()
114 struct vfio_device *vdev; in vfio_mdev_probe()
137 struct vfio_device *vdev = dev_get_drvdata(&mdev->dev); in vfio_mdev_remove()
/linux/drivers/vfio/
A Dvfio.c495 void vfio_device_put(struct vfio_device *device) in vfio_device_put()
510 struct vfio_device *device; in vfio_group_get_device()
572 struct vfio_device *device; in vfio_dev_viable()
603 struct vfio_device *device; in vfio_group_nb_add_dev()
778 struct vfio_device *existing_device; in __vfio_register_dev()
844 struct vfio_device *device; in vfio_device_get_from_dev()
1335 struct vfio_device *device; in vfio_group_get_device_fd()
1544 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1563 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1574 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
[all …]
/linux/drivers/vfio/fsl-mc/
A Dvfio_fsl_mc.c22 static int vfio_fsl_mc_open_device(struct vfio_device *core_vdev) in vfio_fsl_mc_open_device()
97 static void vfio_fsl_mc_close_device(struct vfio_device *core_vdev) in vfio_fsl_mc_close_device()
120 static long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, in vfio_fsl_mc_ioctl()
240 static ssize_t vfio_fsl_mc_read(struct vfio_device *core_vdev, char __user *buf, in vfio_fsl_mc_read()
318 static ssize_t vfio_fsl_mc_write(struct vfio_device *core_vdev, in vfio_fsl_mc_write()
384 static int vfio_fsl_mc_mmap(struct vfio_device *core_vdev, in vfio_fsl_mc_mmap()
A Dvfio_fsl_mc_private.h34 struct vfio_device vdev;
/linux/drivers/s390/cio/
A Dvfio_ccw_ops.c177 static int vfio_ccw_mdev_open_device(struct vfio_device *vdev) in vfio_ccw_mdev_open_device()
212 static void vfio_ccw_mdev_close_device(struct vfio_device *vdev) in vfio_ccw_mdev_close_device()
250 static ssize_t vfio_ccw_mdev_read(struct vfio_device *vdev, in vfio_ccw_mdev_read()
302 static ssize_t vfio_ccw_mdev_write(struct vfio_device *vdev, in vfio_ccw_mdev_write()
527 static ssize_t vfio_ccw_mdev_ioctl(struct vfio_device *vdev, in vfio_ccw_mdev_ioctl()
623 static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count) in vfio_ccw_mdev_request()
A Dvfio_ccw_private.h95 struct vfio_device vdev;
/linux/drivers/vfio/platform/
A Dvfio_platform_common.c221 static void vfio_platform_close_device(struct vfio_device *core_vdev) in vfio_platform_close_device()
240 static int vfio_platform_open_device(struct vfio_device *core_vdev) in vfio_platform_open_device()
277 static long vfio_platform_ioctl(struct vfio_device *core_vdev, in vfio_platform_ioctl()
441 static ssize_t vfio_platform_read(struct vfio_device *core_vdev, in vfio_platform_read()
518 static ssize_t vfio_platform_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_platform_write()
561 static int vfio_platform_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma) in vfio_platform_mmap()
A Dvfio_platform_private.h46 struct vfio_device vdev;
/linux/samples/vfio-mdev/
A Dmdpy.c92 struct vfio_device vdev;
291 static ssize_t mdpy_read(struct vfio_device *vdev, char __user *buf, in mdpy_read()
352 static ssize_t mdpy_write(struct vfio_device *vdev, const char __user *buf, in mdpy_write()
411 static int mdpy_mmap(struct vfio_device *vdev, struct vm_area_struct *vma) in mdpy_mmap()
505 static long mdpy_ioctl(struct vfio_device *vdev, unsigned int cmd, in mdpy_ioctl()
A Dmbochs.c164 struct vfio_device vdev;
583 static ssize_t mbochs_read(struct vfio_device *vdev, char __user *buf, in mbochs_read()
644 static ssize_t mbochs_write(struct vfio_device *vdev, const char __user *buf, in mbochs_write()
771 static int mbochs_mmap(struct vfio_device *vdev, struct vm_area_struct *vma) in mbochs_mmap()
1161 static long mbochs_ioctl(struct vfio_device *vdev, unsigned int cmd, in mbochs_ioctl()
1281 static void mbochs_close_device(struct vfio_device *vdev) in mbochs_close_device()
A Dmtty.c130 struct vfio_device vdev;
780 static ssize_t mtty_read(struct vfio_device *vdev, char __user *buf, in mtty_read()
841 static ssize_t mtty_write(struct vfio_device *vdev, const char __user *buf, in mtty_write()
1094 static long mtty_ioctl(struct vfio_device *vdev, unsigned int cmd, in mtty_ioctl()
/linux/drivers/vfio/pci/
A Dvfio_pci_core.c416 struct vfio_device *pf_dev; in get_pf_vdev()
448 void vfio_pci_core_close_device(struct vfio_device *core_vdev) in vfio_pci_core_close_device()
637 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, in vfio_pci_core_ioctl()
1213 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, in vfio_pci_core_read()
1226 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_pci_core_write()
1446 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma) in vfio_pci_core_mmap()
1518 void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count) in vfio_pci_core_request()
1635 int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf) in vfio_pci_core_match()
1898 struct vfio_device *device; in vfio_pci_aer_err_detected()
1920 struct vfio_device *device; in vfio_pci_core_sriov_configure()
[all …]
A Dvfio_pci.c101 static int vfio_pci_open_device(struct vfio_device *core_vdev) in vfio_pci_open_device()
/linux/Documentation/driver-api/
A Dvfio.rst255 void vfio_init_group_dev(struct vfio_device *device,
258 void vfio_uninit_group_dev(struct vfio_device *device);
259 int vfio_register_group_dev(struct vfio_device *device);
260 void vfio_unregister_group_dev(struct vfio_device *device);
262 The driver should embed the vfio_device in its own structure and call
273 int (*open)(struct vfio_device *vdev);
274 void (*release)(struct vfio_device *vdev);
275 ssize_t (*read)(struct vfio_device *vdev, char __user *buf,
277 ssize_t (*write)(struct vfio_device *vdev,
280 long (*ioctl)(struct vfio_device *vdev, unsigned int cmd,
[all …]
/linux/drivers/s390/crypto/
A Dvfio_ap_private.h94 struct vfio_device vdev;
A Dvfio_ap_ops.c1286 static int vfio_ap_mdev_open_device(struct vfio_device *vdev) in vfio_ap_mdev_open_device()
1315 static void vfio_ap_mdev_close_device(struct vfio_device *vdev) in vfio_ap_mdev_close_device()
1347 static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev, in vfio_ap_mdev_ioctl()
/linux/drivers/gpu/drm/i915/gvt/
A Dkvmgt.c133 struct vfio_device *vfio_device; member
712 vdev->vfio_device = vfio_device_get_from_dev( in kvmgt_get_vfio_device()
714 if (!vdev->vfio_device) { in kvmgt_get_vfio_device()
784 if (WARN_ON(!vdev->vfio_device)) in kvmgt_put_vfio_device()
787 vfio_device_put(vdev->vfio_device); in kvmgt_put_vfio_device()

Completed in 78 milliseconds