/openbmc/linux/include/linux/ |
H A D | vfio_pci_core.h | 108 void vfio_pci_core_close_device(struct vfio_device *core_vdev); 109 int vfio_pci_core_init_dev(struct vfio_device *core_vdev); 110 void vfio_pci_core_release_dev(struct vfio_device *core_vdev); 116 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, 120 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, 122 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, 124 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma); 125 void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count); 126 int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf);
|
/openbmc/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() 46 static void vfio_cdx_close_device(struct vfio_device *core_vdev) in vfio_cdx_close_device() argument 49 container_of(core_vdev, struct vfio_cdx_device, vdev); in vfio_cdx_close_device() 52 cdx_dev_reset(core_vdev->dev); in vfio_cdx_close_device() 101 static long vfio_cdx_ioctl(struct vfio_device *core_vdev, in vfio_cdx_ioctl() argument 105 container_of(core_vdev, struct vfio_cdx_device, vdev); in vfio_cdx_ioctl() 114 return cdx_dev_reset(core_vdev->dev); in vfio_cdx_ioctl() 140 static int vfio_cdx_mmap(struct vfio_device *core_vdev, in vfio_cdx_mmap() argument [all …]
|
/openbmc/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 long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, in vfio_fsl_mc_ioctl() argument 125 container_of(core_vdev, struct vfio_fsl_mc_device, 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() argument 244 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_read() 318 static ssize_t vfio_fsl_mc_write(struct vfio_device *core_vdev, in vfio_fsl_mc_write() argument 323 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_write() [all …]
|
/openbmc/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 ssize_t vfio_platform_read(struct vfio_device *core_vdev, 91 ssize_t vfio_platform_write(struct vfio_device *core_vdev, 94 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() 91 static void vfio_amba_release_dev(struct vfio_device *core_vdev) in vfio_amba_release_dev() argument 94 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 long vfio_platform_ioctl(struct vfio_device *core_vdev, in vfio_platform_ioctl() argument 279 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_ioctl() 445 ssize_t vfio_platform_read(struct vfio_device *core_vdev, in vfio_platform_read() argument 449 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_read() 528 ssize_t vfio_platform_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_platform_write() argument 532 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_write() [all …]
|
/openbmc/linux/drivers/vfio/pci/hisilicon/ |
H A D | hisi_acc_vfio_pci.c | 1192 static int hisi_acc_pci_rw_access_check(struct vfio_device *core_vdev, in hisi_acc_pci_rw_access_check() argument 1198 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_pci_rw_access_check() 1214 static int hisi_acc_vfio_pci_mmap(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_mmap() argument 1218 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_mmap() 1235 return vfio_pci_core_mmap(core_vdev, vma); in hisi_acc_vfio_pci_mmap() 1238 static ssize_t hisi_acc_vfio_pci_write(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_write() argument 1245 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_write() 1249 return vfio_pci_core_write(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_write() 1252 static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_read() argument 1259 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_read() [all …]
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | main.c | 1244 static int mlx5vf_pci_open_device(struct vfio_device *core_vdev) in mlx5vf_pci_open_device() argument 1247 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_open_device() 1261 static void mlx5vf_pci_close_device(struct vfio_device *core_vdev) in mlx5vf_pci_close_device() argument 1264 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_close_device() 1267 vfio_pci_core_close_device(core_vdev); in mlx5vf_pci_close_device() 1282 static int mlx5vf_pci_init_dev(struct vfio_device *core_vdev) in mlx5vf_pci_init_dev() argument 1284 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_init_dev() 1288 ret = vfio_pci_core_init_dev(core_vdev); in mlx5vf_pci_init_dev() 1298 static void mlx5vf_pci_release_dev(struct vfio_device *core_vdev) in mlx5vf_pci_release_dev() argument 1300 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_release_dev() [all …]
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_core.c | 687 void vfio_pci_core_close_device(struct vfio_device *core_vdev) in vfio_pci_core_close_device() argument 690 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_close_device() 1460 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, in vfio_pci_core_ioctl() argument 1464 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_ioctl() 1584 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, in vfio_pci_core_read() argument 1588 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_read() 1597 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_pci_core_write() argument 1601 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_write() 1821 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma) in vfio_pci_core_mmap() argument 1824 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_mmap() [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()
|