Home
last modified time | relevance | path

Searched refs:core_vdev (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/include/linux/
Dvfio_pci_core.h108 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);
/linux-6.1.9/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c22 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 …]
/linux-6.1.9/drivers/vfio/platform/
Dvfio_platform.c40 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()
86 vfio_free_device(core_vdev); in vfio_platform_release_dev()
Dvfio_platform_private.h84 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,
Dvfio_amba.c44 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()
98 vfio_free_device(core_vdev); in vfio_amba_release_dev()
Dvfio_platform_common.c220 void vfio_platform_close_device(struct vfio_device *core_vdev) in vfio_platform_close_device() argument
223 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_close_device()
240 int vfio_platform_open_device(struct vfio_device *core_vdev) in vfio_platform_open_device() argument
243 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_open_device()
278 long vfio_platform_ioctl(struct vfio_device *core_vdev, in vfio_platform_ioctl() argument
282 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_ioctl()
443 ssize_t vfio_platform_read(struct vfio_device *core_vdev, in vfio_platform_read() argument
447 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_read()
521 ssize_t vfio_platform_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_platform_write() argument
525 container_of(core_vdev, struct vfio_platform_device, vdev); in vfio_platform_write()
[all …]
/linux-6.1.9/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c1066 static int hisi_acc_pci_rw_access_check(struct vfio_device *core_vdev, in hisi_acc_pci_rw_access_check() argument
1072 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_pci_rw_access_check()
1088 static int hisi_acc_vfio_pci_mmap(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_mmap() argument
1092 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_mmap()
1109 return vfio_pci_core_mmap(core_vdev, vma); in hisi_acc_vfio_pci_mmap()
1112 static ssize_t hisi_acc_vfio_pci_write(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_write() argument
1119 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_write()
1123 return vfio_pci_core_write(core_vdev, buf, new_count, ppos); in hisi_acc_vfio_pci_write()
1126 static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_read() argument
1133 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count); in hisi_acc_vfio_pci_read()
[all …]
/linux-6.1.9/drivers/vfio/pci/mlx5/
Dmain.c551 static int mlx5vf_pci_open_device(struct vfio_device *core_vdev) in mlx5vf_pci_open_device() argument
554 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_open_device()
568 static void mlx5vf_pci_close_device(struct vfio_device *core_vdev) in mlx5vf_pci_close_device() argument
571 core_vdev, struct mlx5vf_pci_core_device, core_device.vdev); in mlx5vf_pci_close_device()
574 vfio_pci_core_close_device(core_vdev); in mlx5vf_pci_close_device()
588 static int mlx5vf_pci_init_dev(struct vfio_device *core_vdev) in mlx5vf_pci_init_dev() argument
590 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_init_dev()
594 ret = vfio_pci_core_init_dev(core_vdev); in mlx5vf_pci_init_dev()
604 static void mlx5vf_pci_release_dev(struct vfio_device *core_vdev) in mlx5vf_pci_release_dev() argument
606 struct mlx5vf_pci_core_device *mvdev = container_of(core_vdev, in mlx5vf_pci_release_dev()
[all …]
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_core.c678 void vfio_pci_core_close_device(struct vfio_device *core_vdev) in vfio_pci_core_close_device() argument
681 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_close_device()
1369 long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, in vfio_pci_core_ioctl() argument
1373 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_ioctl()
1493 ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, in vfio_pci_core_read() argument
1497 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_read()
1506 ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_pci_core_write() argument
1510 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_write()
1730 int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma) in vfio_pci_core_mmap() argument
1733 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_core_mmap()
[all …]
Dvfio_pci.c101 static int vfio_pci_open_device(struct vfio_device *core_vdev) in vfio_pci_open_device() argument
104 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_open_device()