| /Linux-v5.15/include/linux/ |
| D | vfio.h | 30 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, 65 ssize_t (*write)(struct vfio_device *vdev, const char __user *buf, 67 long (*ioctl)(struct vfio_device *vdev, unsigned int cmd, 69 int (*mmap)(struct vfio_device *vdev, struct vm_area_struct *vma); 70 void (*request)(struct vfio_device *vdev, unsigned int count); 71 int (*match)(struct vfio_device *vdev, char *buf); 77 void vfio_init_group_dev(struct vfio_device *device, struct device *dev, [all …]
|
| D | vfio_pci_core.h | 99 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-v5.15/drivers/vfio/mdev/ |
| D | vfio_mdev.c | 20 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-v5.15/drivers/vfio/ |
| D | vfio.c | 101 int vfio_assign_device_set(struct vfio_device *device, void *set_id) in vfio_assign_device_set() 151 static void vfio_release_device_set(struct vfio_device *device) in vfio_release_device_set() 599 void vfio_device_put(struct vfio_device *device) in vfio_device_put() 606 static bool vfio_device_try_get(struct vfio_device *device) in vfio_device_try_get() 611 static struct vfio_device *vfio_group_get_device(struct vfio_group *group, in vfio_group_get_device() 614 struct vfio_device *device; in vfio_group_get_device() 676 struct vfio_device *device; in vfio_dev_viable() 707 struct vfio_device *device; in vfio_group_nb_add_dev() 816 void vfio_init_group_dev(struct vfio_device *device, struct device *dev, in vfio_init_group_dev() 825 void vfio_uninit_group_dev(struct vfio_device *device) in vfio_uninit_group_dev() [all …]
|
| /Linux-v5.15/drivers/vfio/fsl-mc/ |
| D | vfio_fsl_mc.c | 22 static int vfio_fsl_mc_open_device(struct vfio_device *core_vdev) in vfio_fsl_mc_open_device() 69 static void vfio_fsl_mc_close_device(struct vfio_device *core_vdev) in vfio_fsl_mc_close_device() 94 static long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, in vfio_fsl_mc_ioctl() 225 static ssize_t vfio_fsl_mc_read(struct vfio_device *core_vdev, char __user *buf, in vfio_fsl_mc_read() 303 static ssize_t vfio_fsl_mc_write(struct vfio_device *core_vdev, in vfio_fsl_mc_write() 369 static int vfio_fsl_mc_mmap(struct vfio_device *core_vdev, in vfio_fsl_mc_mmap()
|
| D | vfio_fsl_mc_private.h | 34 struct vfio_device vdev;
|
| /Linux-v5.15/drivers/vfio/platform/ |
| D | vfio_platform_common.c | 221 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()
|
| D | vfio_platform_private.h | 46 struct vfio_device vdev;
|
| /Linux-v5.15/drivers/s390/crypto/ |
| D | vfio_ap_private.h | 83 struct vfio_device vdev;
|
| D | vfio_ap_ops.c | 1285 static int vfio_ap_mdev_open_device(struct vfio_device *vdev) in vfio_ap_mdev_open_device() 1314 static void vfio_ap_mdev_close_device(struct vfio_device *vdev) in vfio_ap_mdev_close_device() 1346 static ssize_t vfio_ap_mdev_ioctl(struct vfio_device *vdev, in vfio_ap_mdev_ioctl()
|
| /Linux-v5.15/samples/vfio-mdev/ |
| D | mdpy.c | 92 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()
|
| D | mbochs.c | 164 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()
|
| D | mtty.c | 130 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-v5.15/drivers/vfio/pci/ |
| D | vfio_pci_core.c | 416 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() 1907 struct vfio_device *device; in vfio_pci_aer_err_detected() 1929 struct vfio_device *device; in vfio_pci_core_sriov_configure() [all …]
|
| D | vfio_pci.c | 101 static int vfio_pci_open_device(struct vfio_device *core_vdev) in vfio_pci_open_device()
|
| /Linux-v5.15/Documentation/driver-api/ |
| D | vfio.rst | 255 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-v5.15/drivers/gpu/drm/i915/gvt/ |
| D | kvmgt.c | 133 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()
|