Home
last modified time | relevance | path

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

12

/drivers/vfio/
A Dvfio.h20 struct vfio_device *device;
30 void vfio_device_put_registration(struct vfio_device *device);
35 vfio_allocate_device_file(struct vfio_device *device);
99 int vfio_device_block_group(struct vfio_device *device);
100 void vfio_device_unblock_group(struct vfio_device *device);
101 int vfio_device_set_group(struct vfio_device *device,
103 void vfio_device_remove_group(struct vfio_device *device);
222 struct vfio_device *vdev);
224 struct vfio_device *vdev);
358 void vfio_init_device_cdev(struct vfio_device *device);
[all …]
A Diommufd.c13 bool vfio_iommufd_device_has_compat_ioas(struct vfio_device *vdev, in vfio_iommufd_device_has_compat_ioas()
23 struct vfio_device *vdev = df->device; in vfio_df_iommufd_bind()
35 int vfio_iommufd_compat_attach_ioas(struct vfio_device *vdev, in vfio_iommufd_compat_attach_ioas()
57 struct vfio_device *vdev = df->device; in vfio_df_iommufd_unbind()
76 static int vfio_iommufd_device_id(struct vfio_device *vdev) in vfio_iommufd_device_id()
117 int vfio_iommufd_physical_bind(struct vfio_device *vdev, in vfio_iommufd_physical_bind()
131 void vfio_iommufd_physical_unbind(struct vfio_device *vdev) in vfio_iommufd_physical_unbind()
173 void vfio_iommufd_physical_detach_ioas(struct vfio_device *vdev) in vfio_iommufd_physical_detach_ioas()
237 struct vfio_device *vdev = data; in vfio_emulated_unmap()
248 int vfio_iommufd_emulated_bind(struct vfio_device *vdev, in vfio_iommufd_emulated_bind()
[all …]
A Dvfio_main.c139 struct vfio_device *cur; in vfio_device_set_open_count()
150 struct vfio_device *
154 struct vfio_device *cur; in vfio_find_device_in_devset()
186 struct vfio_device *device = in vfio_device_release()
218 struct vfio_device *device; in _vfio_alloc_device()
507 struct vfio_device *device = df->device; in vfio_df_device_first_open()
542 struct vfio_device *device = df->device; in vfio_df_device_last_close()
558 struct vfio_device *device = df->device; in vfio_df_open()
582 struct vfio_device *device = df->device; in vfio_df_close()
1153 struct vfio_device *device = opaque; in vfio_device_log_read_and_clear()
[all …]
A Dgroup.c29 struct vfio_device *it, *device = ERR_PTR(-ENODEV); in vfio_device_get_from_name()
167 struct vfio_device *device = df->device; in vfio_df_group_open()
235 struct vfio_device *device = df->device; in vfio_df_group_close()
301 struct vfio_device *device; in vfio_group_ioctl_get_device_fd()
397 int vfio_device_block_group(struct vfio_device *device) in vfio_device_block_group()
415 void vfio_device_unblock_group(struct vfio_device *device) in vfio_device_unblock_group()
640 struct vfio_device *device; in vfio_group_has_device()
694 int vfio_device_set_group(struct vfio_device *device, in vfio_device_set_group()
712 void vfio_device_remove_group(struct vfio_device *device) in vfio_device_remove_group()
803 bool vfio_device_has_container(struct vfio_device *device) in vfio_device_has_container()
[all …]
A Ddevice_cdev.c12 void vfio_init_device_cdev(struct vfio_device *device) in vfio_init_device_cdev()
25 struct vfio_device *device = container_of(inode->i_cdev, in vfio_device_fops_cdev_open()
26 struct vfio_device, cdev); in vfio_device_fops_cdev_open()
63 static int vfio_df_check_token(struct vfio_device *device, in vfio_df_check_token()
87 struct vfio_device *device = df->device; in vfio_df_ioctl_bind_iommufd()
175 struct vfio_device *device = df->device; in vfio_df_unbind_iommufd()
198 struct vfio_device *device = df->device; in vfio_df_ioctl_attach_pt()
257 struct vfio_device *device = df->device; in vfio_df_ioctl_detach_pt()
A Ddebugfs.c17 struct vfio_device *vdev = container_of(vf_dev, in vfio_device_state_read()
18 struct vfio_device, device); in vfio_device_state_read()
61 void vfio_device_debugfs_init(struct vfio_device *vdev) in vfio_device_debugfs_init()
78 void vfio_device_debugfs_exit(struct vfio_device *vdev) in vfio_device_debugfs_exit()
A Dcontainer.c164 void vfio_device_container_register(struct vfio_device *device) in vfio_device_container_register()
174 void vfio_device_container_unregister(struct vfio_device *device) in vfio_device_container_unregister()
531 int vfio_device_container_pin_pages(struct vfio_device *device, in vfio_device_container_pin_pages()
548 void vfio_device_container_unpin_pages(struct vfio_device *device, in vfio_device_container_unpin_pages()
560 int vfio_device_container_dma_rw(struct vfio_device *device, in vfio_device_container_dma_rw()
/drivers/vfio/platform/
A Dvfio_platform_private.h46 struct vfio_device vdev;
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,
A Dvfio_platform_common.c217 void vfio_platform_close_device(struct vfio_device *core_vdev) in vfio_platform_close_device()
237 int vfio_platform_open_device(struct vfio_device *core_vdev) in vfio_platform_open_device()
275 long vfio_platform_ioctl(struct vfio_device *core_vdev, in vfio_platform_ioctl()
445 ssize_t vfio_platform_read(struct vfio_device *core_vdev, in vfio_platform_read()
528 ssize_t vfio_platform_write(struct vfio_device *core_vdev, const char __user *buf, in vfio_platform_write()
572 int vfio_platform_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma) in vfio_platform_mmap()
A Dvfio_platform.c40 static int vfio_platform_init_dev(struct vfio_device *core_vdev) in vfio_platform_init_dev()
80 static void vfio_platform_release_dev(struct vfio_device *core_vdev) in vfio_platform_release_dev()
/drivers/vfio/pci/pds/
A Dvfio_dev.c40 pds_vfio_set_device_state(struct vfio_device *vdev, in pds_vfio_set_device_state()
84 static int pds_vfio_get_device_state(struct vfio_device *vdev, in pds_vfio_get_device_state()
97 static int pds_vfio_get_device_state_size(struct vfio_device *vdev, in pds_vfio_get_device_state_size()
116 static int pds_vfio_init_device(struct vfio_device *vdev) in pds_vfio_init_device()
149 static void pds_vfio_release_device(struct vfio_device *vdev) in pds_vfio_release_device()
159 static int pds_vfio_open_device(struct vfio_device *vdev) in pds_vfio_open_device()
177 static void pds_vfio_close_device(struct vfio_device *vdev) in pds_vfio_close_device()
A Ddirty.h34 int pds_vfio_dma_logging_report(struct vfio_device *vdev, unsigned long iova,
37 int pds_vfio_dma_logging_start(struct vfio_device *vdev,
40 int pds_vfio_dma_logging_stop(struct vfio_device *vdev);
/drivers/vfio/pci/virtio/
A Dcommon.h112 long virtiovf_vfio_pci_core_ioctl(struct vfio_device *core_vdev,
114 int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev,
116 ssize_t virtiovf_pci_core_write(struct vfio_device *core_vdev,
119 ssize_t virtiovf_pci_core_read(struct vfio_device *core_vdev, char __user *buf,
A Dmain.c21 static int virtiovf_pci_open_device(struct vfio_device *core_vdev) in virtiovf_pci_open_device()
45 static void virtiovf_pci_close_device(struct vfio_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()
73 static void virtiovf_pci_core_release_dev(struct vfio_device *core_vdev) in virtiovf_pci_core_release_dev()
A Dlegacy_io.c124 static ssize_t virtiovf_pci_read_config(struct vfio_device *core_vdev, 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()
229 static ssize_t virtiovf_pci_write_config(struct vfio_device *core_vdev, in virtiovf_pci_write_config()
263 ssize_t virtiovf_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, in virtiovf_pci_core_write()
283 int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev, in virtiovf_pci_ioctl_get_region_info()
310 long virtiovf_vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, in virtiovf_vfio_pci_core_ioctl()
/drivers/gpu/drm/i915/gvt/
A Dkvmgt.c107 container_of((vfio_dev), struct intel_vgpu, vfio_device)
131 vfio_unpin_pages(&vgpu->vfio_device, gfn << PAGE_SHIFT, in gvt_unpin_guest_page()
152 ret = vfio_pin_pages(&vgpu->vfio_device, cur_iova, 1, in gvt_pin_guest_page()
652 if (vgpu->vfio_device.kvm == itr->vfio_device.kvm) { in __kvmgt_vgpu_exist()
710 kvm_page_track_unregister_notifier(vgpu->vfio_device.kvm, in intel_vgpu_close_device()
1013 static int intel_vgpu_mmap(struct vfio_device *vfio_dev, in intel_vgpu_mmap()
1443 static int intel_vgpu_init_dev(struct vfio_device *vfio_dev) in intel_vgpu_init_dev()
1507 vfio_put_device(&vgpu->vfio_device); in intel_vgpu_probe()
1515 vfio_unregister_group_dev(&vgpu->vfio_device); in intel_vgpu_remove()
1516 vfio_put_device(&vgpu->vfio_device); in intel_vgpu_remove()
[all …]
/drivers/vfio/pci/nvgrace-gpu/
A Dmain.c63 static void nvgrace_gpu_init_fake_bar_emu_regs(struct vfio_device *core_vdev) in nvgrace_gpu_init_fake_bar_emu_regs()
87 static int nvgrace_gpu_open_device(struct vfio_device *core_vdev) in nvgrace_gpu_open_device()
110 static void nvgrace_gpu_close_device(struct vfio_device *core_vdev) in nvgrace_gpu_close_device()
133 static int nvgrace_gpu_mmap(struct vfio_device *core_vdev, in nvgrace_gpu_mmap()
209 nvgrace_gpu_ioctl_get_region_info(struct vfio_device *core_vdev, in nvgrace_gpu_ioctl_get_region_info()
292 static long nvgrace_gpu_ioctl(struct vfio_device *core_vdev, in nvgrace_gpu_ioctl()
329 nvgrace_gpu_read_config_emu(struct vfio_device *core_vdev, in nvgrace_gpu_read_config_emu()
380 nvgrace_gpu_write_config_emu(struct vfio_device *core_vdev, in nvgrace_gpu_write_config_emu()
559 nvgrace_gpu_read(struct vfio_device *core_vdev, in nvgrace_gpu_read()
669 nvgrace_gpu_write(struct vfio_device *core_vdev, in nvgrace_gpu_write()
/drivers/s390/cio/
A Dvfio_ccw_ops.c35 static void vfio_ccw_dma_unmap(struct vfio_device *vdev, u64 iova, u64 length) in vfio_ccw_dma_unmap()
47 static int vfio_ccw_mdev_init_dev(struct vfio_device *vdev) in vfio_ccw_mdev_init_dev()
129 static void vfio_ccw_mdev_release_dev(struct vfio_device *vdev) in vfio_ccw_mdev_release_dev()
165 static int vfio_ccw_mdev_open_device(struct vfio_device *vdev) in vfio_ccw_mdev_open_device()
200 static void vfio_ccw_mdev_close_device(struct vfio_device *vdev) in vfio_ccw_mdev_close_device()
230 static ssize_t vfio_ccw_mdev_read(struct vfio_device *vdev, in vfio_ccw_mdev_read()
282 static ssize_t vfio_ccw_mdev_write(struct vfio_device *vdev, in vfio_ccw_mdev_write()
507 static ssize_t vfio_ccw_mdev_ioctl(struct vfio_device *vdev, in vfio_ccw_mdev_ioctl()
603 static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count) in vfio_ccw_mdev_request()
A Dvfio_ccw_cp.c92 struct vfio_device *vdev, int pa_nr, bool unaligned) in page_array_unpin()
131 static int page_array_pin(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_pin()
169 static void page_array_unpin_free(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_unpin_free()
423 struct vfio_device *vdev = in ccwchain_handle_ccw()
510 struct vfio_device *vdev = in get_guest_idal()
568 struct vfio_device *vdev = in ccw_count_idaws()
611 struct vfio_device *vdev = in ccwchain_fetch_ccw()
712 struct vfio_device *vdev = in cp_init()
757 struct vfio_device *vdev = in cp_free()
/drivers/vfio/cdx/
A Dmain.c11 static int vfio_cdx_open_device(struct vfio_device *core_vdev) in vfio_cdx_open_device()
57 static void vfio_cdx_close_device(struct vfio_device *core_vdev) in vfio_cdx_close_device()
67 static int vfio_cdx_bm_ctrl(struct vfio_device *core_vdev, u32 flags, in vfio_cdx_bm_ctrl()
99 static int vfio_cdx_ioctl_feature(struct vfio_device *device, u32 flags, in vfio_cdx_ioctl_feature()
212 static long vfio_cdx_ioctl(struct vfio_device *core_vdev, in vfio_cdx_ioctl()
255 static int vfio_cdx_mmap(struct vfio_device *core_vdev, in vfio_cdx_mmap()
/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()
512 static int vfio_fsl_mc_init_dev(struct vfio_device *core_vdev) in vfio_fsl_mc_init_dev()
564 static void vfio_fsl_mc_release_dev(struct vfio_device *core_vdev) in vfio_fsl_mc_release_dev()
/drivers/vfio/pci/hisilicon/
A Dhisi_acc_vfio_pci.c1120 hisi_acc_vfio_pci_set_device_state(struct vfio_device *vdev, in hisi_acc_vfio_pci_set_device_state()
1153 hisi_acc_vfio_pci_get_data_size(struct vfio_device *vdev, in hisi_acc_vfio_pci_get_data_size()
1161 hisi_acc_vfio_pci_get_device_state(struct vfio_device *vdev, in hisi_acc_vfio_pci_get_device_state()
1253 static int hisi_acc_pci_rw_access_check(struct vfio_device *core_vdev, in hisi_acc_pci_rw_access_check()
1275 static int hisi_acc_vfio_pci_mmap(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_mmap()
1299 static ssize_t hisi_acc_vfio_pci_write(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_write()
1313 static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev, in hisi_acc_vfio_pci_read()
1395 struct vfio_device *vdev = &core_device->vdev; in hisi_acc_vf_debug_cmd()
1424 struct vfio_device *vdev = &core_device->vdev; in hisi_acc_vf_dev_read()
1471 struct vfio_device *vdev = &core_device->vdev; in hisi_acc_vf_migf_read()
[all …]
/drivers/vfio/pci/qat/
A Dmain.c58 static int qat_vf_pci_open_device(struct vfio_device *core_vdev) 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()
484 static struct file *qat_vf_pci_set_device_state(struct vfio_device *vdev, in qat_vf_pci_set_device_state()
516 static int qat_vf_pci_get_device_state(struct vfio_device *vdev, in qat_vf_pci_get_device_state()
529 static int qat_vf_pci_get_data_size(struct vfio_device *vdev, in qat_vf_pci_get_data_size()
548 static void qat_vf_pci_release_dev(struct vfio_device *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()
/drivers/vfio/pci/
A Dvfio_pci_core.c323 struct vfio_device *device, u32 flags, in vfio_pci_core_pm_entry_with_wakeup()
379 static int vfio_pci_core_pm_exit(struct vfio_device *device, u32 flags, in vfio_pci_core_pm_exit()
682 void vfio_pci_core_close_device(struct vfio_device *core_vdev) in vfio_pci_core_close_device()
768 struct vfio_device *vdev;
792 struct vfio_device *vdev; in vfio_pci_fill_devs()
1598 struct vfio_device *core_vdev = &vdev->vdev; in vfio_pci_zap_bars()
1821 int vfio_pci_core_match_token_uuid(struct vfio_device *core_vdev, in vfio_pci_core_match_token_uuid()
1914 int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf) in vfio_pci_core_match()
2084 int vfio_pci_core_init_dev(struct vfio_device *core_vdev) in vfio_pci_core_init_dev()
2104 void vfio_pci_core_release_dev(struct vfio_device *core_vdev) in vfio_pci_core_release_dev()
[all …]
/drivers/vfio/pci/mlx5/
A Dcmd.h242 int mlx5vf_start_page_tracker(struct vfio_device *vdev,
244 int mlx5vf_stop_page_tracker(struct vfio_device *vdev);
245 int mlx5vf_tracker_read_and_clear(struct vfio_device *vdev, unsigned long iova,

Completed in 59 milliseconds

12