| /linux/drivers/vfio/pci/nvgrace-gpu/ |
| H A D | main.c | 67 static void nvgrace_gpu_init_fake_bar_emu_regs(struct vfio_device *core_vdev) in nvgrace_gpu_init_fake_bar_emu_regs() argument 70 container_of(core_vdev, struct nvgrace_gpu_pci_core_device, in nvgrace_gpu_init_fake_bar_emu_regs() 91 static int nvgrace_gpu_open_device(struct vfio_device *core_vdev) in nvgrace_gpu_open_device() argument 94 container_of(core_vdev, struct vfio_pci_core_device, vdev); in nvgrace_gpu_open_device() 96 container_of(core_vdev, struct nvgrace_gpu_pci_core_device, in nvgrace_gpu_open_device() 105 nvgrace_gpu_init_fake_bar_emu_regs(core_vdev); in nvgrace_gpu_open_device() 127 static void nvgrace_gpu_close_device(struct vfio_device *core_vdev) in nvgrace_gpu_close_device() argument 130 container_of(core_vdev, struct nvgrace_gpu_pci_core_device, in nvgrace_gpu_close_device() 147 vfio_pci_core_close_device(core_vdev); in nvgrace_gpu_close_device() 250 static int nvgrace_gpu_mmap(struct vfio_device *core_vdev, in nvgrace_gpu_mmap() argument [all …]
|
| /linux/drivers/vfio/cdx/ |
| H A D | main.c | 11 static int vfio_cdx_open_device(struct vfio_device *core_vdev) in vfio_cdx_open_device() argument 14 container_of(core_vdev, struct vfio_cdx_device, vdev); in vfio_cdx_open_device() 15 struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev); in vfio_cdx_open_device() 42 ret = cdx_dev_reset(core_vdev->dev); in vfio_cdx_open_device() 57 static void vfio_cdx_close_device(struct vfio_device *core_vdev) in vfio_cdx_close_device() argument 60 container_of(core_vdev, struct vfio_cdx_device, vdev); in vfio_cdx_close_device() 63 cdx_dev_reset(core_vdev->dev); in vfio_cdx_close_device() 67 static int vfio_cdx_bm_ctrl(struct vfio_device *core_vdev, u32 flags, in vfio_cdx_bm_ctrl() argument 73 container_of(core_vdev, struct vfio_cdx_device, vdev); in vfio_cdx_bm_ctrl() 74 struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev); in vfio_cdx_bm_ctrl() [all …]
|
| /linux/drivers/vfio/pci/virtio/ |
| H A D | main.c | 21 static int virtiovf_pci_open_device(struct vfio_device *core_vdev) in virtiovf_pci_open_device() argument 23 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_open_device() 45 static void virtiovf_pci_close_device(struct vfio_device *core_vdev) in virtiovf_pci_close_device() argument 47 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_close_device() 51 vfio_pci_core_close_device(core_vdev); in virtiovf_pci_close_device() 55 static int virtiovf_pci_init_device(struct vfio_device *core_vdev) in virtiovf_pci_init_device() argument 57 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_init_device() 61 ret = vfio_pci_core_init_dev(core_vdev); in virtiovf_pci_init_device() 73 static void virtiovf_pci_core_release_dev(struct vfio_device *core_vdev) in virtiovf_pci_core_release_dev() argument 76 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_core_release_dev() [all …]
|
| H A D | legacy_io.c | 124 static ssize_t virtiovf_pci_read_config(struct vfio_device *core_vdev, in virtiovf_pci_read_config() argument 129 core_vdev, struct virtiovf_pci_core_device, core_device.vdev); in virtiovf_pci_read_config() 139 ret = vfio_pci_core_read(core_vdev, buf, count, ppos); in virtiovf_pci_read_config() 209 ssize_t virtiovf_pci_core_read(struct vfio_device *core_vdev, char __user *buf, in virtiovf_pci_core_read() argument 213 core_vdev, struct virtiovf_pci_core_device, core_device.vdev); in virtiovf_pci_core_read() 221 return virtiovf_pci_read_config(core_vdev, buf, count, ppos); in virtiovf_pci_core_read() 226 return vfio_pci_core_read(core_vdev, buf, count, ppos); in virtiovf_pci_core_read() 229 static ssize_t virtiovf_pci_write_config(struct vfio_device *core_vdev, in virtiovf_pci_write_config() argument 234 core_vdev, struct virtiovf_pci_core_device, core_device.vdev); in virtiovf_pci_write_config() 260 return vfio_pci_core_write(core_vdev, buf, count, ppos); in virtiovf_pci_write_config() [all …]
|
| H A D | common.h | 112 int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev, 115 ssize_t virtiovf_pci_core_write(struct vfio_device *core_vdev, 118 ssize_t virtiovf_pci_core_read(struct vfio_device *core_vdev, char __user *buf,
|
| /linux/drivers/vfio/pci/xe/ |
| H A D | main.c | 134 static int xe_vfio_pci_open_device(struct vfio_device *core_vdev) in xe_vfio_pci_open_device() argument 137 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev); in xe_vfio_pci_open_device() 152 static void xe_vfio_pci_close_device(struct vfio_device *core_vdev) in xe_vfio_pci_close_device() argument 155 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev); in xe_vfio_pci_close_device() 160 vfio_pci_core_close_device(core_vdev); in xe_vfio_pci_close_device() 386 xe_vfio_pci_set_device_state(struct vfio_device *core_vdev, in xe_vfio_pci_set_device_state() argument 390 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev); in xe_vfio_pci_set_device_state() 397 ret = vfio_mig_get_next_state(core_vdev, xe_vdev->mig_state, in xe_vfio_pci_set_device_state() 422 static int xe_vfio_pci_get_device_state(struct vfio_device *core_vdev, in xe_vfio_pci_get_device_state() argument 426 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev); in xe_vfio_pci_get_device_state() [all …]
|
| /linux/drivers/vfio/fsl-mc/ |
| H A D | vfio_fsl_mc.c | 22 static int vfio_fsl_mc_open_device(struct vfio_device *core_vdev) in vfio_fsl_mc_open_device() argument 25 container_of(core_vdev, struct vfio_fsl_mc_device, 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() argument 100 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_close_device() 120 static int vfio_fsl_mc_ioctl_get_region_info(struct vfio_device *core_vdev, in vfio_fsl_mc_ioctl_get_region_info() argument 125 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_ioctl_get_region_info() 138 static long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, in vfio_fsl_mc_ioctl() argument 143 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_ioctl() 234 static ssize_t vfio_fsl_mc_read(struct vfio_device *core_vdev, char __user *buf, in vfio_fsl_mc_read() argument 238 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_read() [all …]
|
| /linux/include/linux/ |
| H A D | vfio_pci_core.h | 162 void vfio_pci_core_close_device(struct vfio_device *core_vdev); 163 int vfio_pci_core_init_dev(struct vfio_device *core_vdev); 164 void vfio_pci_core_release_dev(struct vfio_device *core_vdev); 170 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, 174 int vfio_pci_ioctl_get_region_info(struct vfio_device *core_vdev, 177 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, 179 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, 184 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma); 185 void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count); 186 int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf); [all …]
|
| /linux/drivers/vfio/platform/ |
| H A D | vfio_platform_private.h | 84 int vfio_platform_open_device(struct vfio_device *core_vdev); 85 void vfio_platform_close_device(struct vfio_device *core_vdev); 86 long vfio_platform_ioctl(struct vfio_device *core_vdev, 88 int vfio_platform_ioctl_get_region_info(struct vfio_device *core_vdev, 91 ssize_t vfio_platform_read(struct vfio_device *core_vdev, 94 ssize_t vfio_platform_write(struct vfio_device *core_vdev, 97 int vfio_platform_mmap(struct vfio_device *core_vdev,
|
| H A D | vfio_platform.c | 40 static int vfio_platform_init_dev(struct vfio_device *core_vdev) in vfio_platform_init_dev() argument 43 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_init_dev() 44 struct platform_device *pdev = to_platform_device(core_vdev->dev); in vfio_platform_init_dev() 80 static void vfio_platform_release_dev(struct vfio_device *core_vdev) in vfio_platform_release_dev() argument 83 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_release_dev()
|
| H A D | vfio_amba.c | 44 static int vfio_amba_init_dev(struct vfio_device *core_vdev) in vfio_amba_init_dev() argument 47 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_amba_init_dev() 48 struct amba_device *adev = to_amba_device(core_vdev->dev); in vfio_amba_init_dev() 93 static void vfio_amba_release_dev(struct vfio_device *core_vdev) in vfio_amba_release_dev() argument 96 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_amba_release_dev()
|
| H A D | vfio_platform_common.c | 217 void vfio_platform_close_device(struct vfio_device *core_vdev) in vfio_platform_close_device() argument 220 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_close_device() 237 int vfio_platform_open_device(struct vfio_device *core_vdev) in vfio_platform_open_device() argument 240 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_open_device() 275 int vfio_platform_ioctl_get_region_info(struct vfio_device *core_vdev, in vfio_platform_ioctl_get_region_info() argument 280 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_ioctl_get_region_info() 293 long vfio_platform_ioctl(struct vfio_device *core_vdev, in vfio_platform_ioctl() argument 297 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_ioctl() 441 ssize_t vfio_platform_read(struct vfio_device *core_vdev, in vfio_platform_read() argument 445 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_read() [all …]
|
| /linux/drivers/vfio/pci/qat/ |
| H A D | main.c | 58 static int qat_vf_pci_open_device(struct vfio_device *core_vdev) in qat_vf_pci_open_device() argument 61 container_of(core_vdev, struct qat_vf_core_device, in qat_vf_pci_open_device() 106 static void qat_vf_pci_close_device(struct vfio_device *core_vdev) in qat_vf_pci_close_device() argument 108 struct qat_vf_core_device *qat_vdev = container_of(core_vdev, in qat_vf_pci_close_device() 113 vfio_pci_core_close_device(core_vdev); in qat_vf_pci_close_device() 548 static void qat_vf_pci_release_dev(struct vfio_device *core_vdev) in qat_vf_pci_release_dev() argument 550 struct qat_vf_core_device *qat_vdev = container_of(core_vdev, in qat_vf_pci_release_dev() 556 vfio_pci_core_release_dev(core_vdev); in qat_vf_pci_release_dev() 559 static int qat_vf_pci_init_dev(struct vfio_device *core_vdev) in qat_vf_pci_init_dev() argument 561 struct qat_vf_core_device *qat_vdev = container_of(core_vdev, in qat_vf_pci_init_dev() [all …]
|
| /linux/drivers/vfio/pci/hisilicon/ |
| H A D | hisi_acc_vfio_pci.c | 1312 static int hisi_acc_pci_rw_access_check(struct vfio_device *core_vdev, in hisi_acc_pci_rw_access_check() argument 1318 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_pci_rw_access_check() 1335 static int hisi_acc_vfio_pci_mmap(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_mmap() argument 1339 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_mmap() 1357 return vfio_pci_core_mmap(core_vdev, vma); in hisi_acc_vfio_pci_mmap() 1360 static ssize_t hisi_acc_vfio_pci_write(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_write() argument 1367 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_write() 1371 return vfio_pci_core_write(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_write() 1374 static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_read() argument 1381 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_read() [all …]
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_core.c | 715 void vfio_pci_core_close_device(struct vfio_device *core_vdev) in vfio_pci_core_close_device() argument 718 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_close_device() 1028 int vfio_pci_ioctl_get_region_info(struct vfio_device *core_vdev, in vfio_pci_ioctl_get_region_info() argument 1033 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_ioctl_get_region_info() 1456 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, in vfio_pci_core_ioctl() argument 1460 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_ioctl() 1582 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, in vfio_pci_core_read() argument 1586 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_read() 1595 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_pci_core_write() argument 1599 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_write() [all …]
|
| H A D | vfio_pci.c | 103 static int vfio_pci_open_device(struct vfio_device *core_vdev) in vfio_pci_open_device() argument 106 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_open_device()
|
| /linux/drivers/vfio/pci/mlx5/ |
| H A D | main.c | 1299 static int mlx5vf_pci_open_device(struct vfio_device *core_vdev) in mlx5vf_pci_open_device() argument 1302 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_open_device() 1316 static void mlx5vf_pci_close_device(struct vfio_device *core_vdev) in mlx5vf_pci_close_device() argument 1319 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_close_device() 1322 vfio_pci_core_close_device(core_vdev); in mlx5vf_pci_close_device() 1337 static int mlx5vf_pci_init_dev(struct vfio_device *core_vdev) in mlx5vf_pci_init_dev() argument 1339 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_init_dev() 1343 ret = vfio_pci_core_init_dev(core_vdev); in mlx5vf_pci_init_dev() 1353 static void mlx5vf_pci_release_dev(struct vfio_device *core_vdev) in mlx5vf_pci_release_dev() argument 1355 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_release_dev() [all …]
|