/Linux-v6.1/drivers/vfio/pci/ |
D | vfio_pci_priv.h | 16 struct vfio_pci_core_device *vdev; 26 bool vfio_pci_intx_mask(struct vfio_pci_core_device *vdev); 27 void vfio_pci_intx_unmask(struct vfio_pci_core_device *vdev); 29 int vfio_pci_set_irqs_ioctl(struct vfio_pci_core_device *vdev, uint32_t flags, 33 ssize_t vfio_pci_config_rw(struct vfio_pci_core_device *vdev, char __user *buf, 36 ssize_t vfio_pci_bar_rw(struct vfio_pci_core_device *vdev, char __user *buf, 40 ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf, 43 static inline ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, in vfio_pci_vga_rw() 51 int vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset, 57 int vfio_config_init(struct vfio_pci_core_device *vdev); [all …]
|
D | vfio_pci_core.c | 108 static void vfio_pci_probe_mmaps(struct vfio_pci_core_device *vdev) in vfio_pci_probe_mmaps() 212 static void vfio_pci_probe_power_state(struct vfio_pci_core_device *vdev) in vfio_pci_probe_power_state() 232 int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev, pci_power_t state) in vfio_pci_set_power_state() 280 static int vfio_pci_runtime_pm_entry(struct vfio_pci_core_device *vdev, in vfio_pci_runtime_pm_entry() 304 struct vfio_pci_core_device *vdev = in vfio_pci_core_pm_entry() 305 container_of(device, struct vfio_pci_core_device, vdev); in vfio_pci_core_pm_entry() 326 struct vfio_pci_core_device *vdev = in vfio_pci_core_pm_entry_with_wakeup() 327 container_of(device, struct vfio_pci_core_device, vdev); in vfio_pci_core_pm_entry_with_wakeup() 354 static void __vfio_pci_runtime_pm_exit(struct vfio_pci_core_device *vdev) in __vfio_pci_runtime_pm_exit() 367 static void vfio_pci_runtime_pm_exit(struct vfio_pci_core_device *vdev) in vfio_pci_runtime_pm_exit() [all …]
|
D | vfio_pci_intrs.c | 34 static bool irq_is(struct vfio_pci_core_device *vdev, int type) in irq_is() 39 static bool is_intx(struct vfio_pci_core_device *vdev) in is_intx() 44 static bool is_irq_none(struct vfio_pci_core_device *vdev) in is_irq_none() 56 struct vfio_pci_core_device *vdev = opaque; in vfio_send_intx_eventfd() 63 bool vfio_pci_intx_mask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_mask() 106 struct vfio_pci_core_device *vdev = opaque; in vfio_pci_intx_unmask_handler() 140 void vfio_pci_intx_unmask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_unmask() 148 struct vfio_pci_core_device *vdev = dev_id; in vfio_intx_handler() 172 static int vfio_intx_enable(struct vfio_pci_core_device *vdev) in vfio_intx_enable() 201 static int vfio_intx_set_signal(struct vfio_pci_core_device *vdev, int fd) in vfio_intx_set_signal() [all …]
|
D | vfio_pci_config.c | 111 int (*readfn)(struct vfio_pci_core_device *vdev, int pos, int count, 113 int (*writefn)(struct vfio_pci_core_device *vdev, int pos, int count, 174 static int vfio_default_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_read() 200 static int vfio_default_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_write() 247 static int vfio_direct_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_direct_config_read() 272 static int vfio_raw_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_raw_config_write() 285 static int vfio_raw_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_raw_config_read() 299 static int vfio_virt_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_virt_config_write() 307 static int vfio_virt_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_virt_config_read() 399 bool __vfio_pci_memory_enabled(struct vfio_pci_core_device *vdev) in __vfio_pci_memory_enabled() [all …]
|
D | vfio_pci.c | 103 struct vfio_pci_core_device *vdev = in vfio_pci_open_device() 104 container_of(core_vdev, struct vfio_pci_core_device, vdev); in vfio_pci_open_device() 145 struct vfio_pci_core_device *vdev; in vfio_pci_probe() 151 vdev = vfio_alloc_device(vfio_pci_core_device, vdev, &pdev->dev, in vfio_pci_probe() 169 struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); in vfio_pci_remove() 177 struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); in vfio_pci_sriov_configure()
|
D | vfio_pci_igd.c | 64 static ssize_t vfio_pci_igd_rw(struct vfio_pci_core_device *vdev, in vfio_pci_igd_rw() 151 static void vfio_pci_igd_release(struct vfio_pci_core_device *vdev, in vfio_pci_igd_release() 168 static int vfio_pci_igd_opregion_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_opregion_init() 281 static ssize_t vfio_pci_igd_cfg_rw(struct vfio_pci_core_device *vdev, in vfio_pci_igd_cfg_rw() 377 static void vfio_pci_igd_cfg_release(struct vfio_pci_core_device *vdev, in vfio_pci_igd_cfg_release() 390 static int vfio_pci_igd_cfg_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_cfg_init() 438 int vfio_pci_igd_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_init()
|
D | vfio_pci_rdwr.c | 41 static int vfio_pci_iowrite##size(struct vfio_pci_core_device *vdev, \ 68 static int vfio_pci_ioread##size(struct vfio_pci_core_device *vdev, \ 97 static ssize_t do_io_rw(struct vfio_pci_core_device *vdev, bool test_mem, in do_io_rw() 203 static int vfio_pci_setup_barmap(struct vfio_pci_core_device *vdev, int bar) in vfio_pci_setup_barmap() 227 ssize_t vfio_pci_bar_rw(struct vfio_pci_core_device *vdev, char __user *buf, in vfio_pci_bar_rw() 292 ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf, in vfio_pci_vga_rw() 389 struct vfio_pci_core_device *vdev = ioeventfd->vdev; in vfio_pci_ioeventfd_handler() 415 int vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset, in vfio_pci_ioeventfd()
|
D | vfio_pci_zdev.c | 116 int vfio_pci_info_zdev_add_caps(struct vfio_pci_core_device *vdev, in vfio_pci_info_zdev_add_caps() 144 int vfio_pci_zdev_open_device(struct vfio_pci_core_device *vdev) in vfio_pci_zdev_open_device() 160 void vfio_pci_zdev_close_device(struct vfio_pci_core_device *vdev) in vfio_pci_zdev_close_device()
|
/Linux-v6.1/include/linux/ |
D | vfio_pci_core.h | 27 struct vfio_pci_core_device; 31 ssize_t (*rw)(struct vfio_pci_core_device *vdev, char __user *buf, 33 void (*release)(struct vfio_pci_core_device *vdev, 35 int (*mmap)(struct vfio_pci_core_device *vdev, 38 int (*add_capability)(struct vfio_pci_core_device *vdev, 52 struct vfio_pci_core_device { struct 94 struct vfio_pci_core_device *sriov_pf_core_dev; argument 102 int vfio_pci_core_register_dev_region(struct vfio_pci_core_device *vdev, argument 111 int vfio_pci_core_register_device(struct vfio_pci_core_device *vdev); 112 void vfio_pci_core_unregister_device(struct vfio_pci_core_device *vdev); [all …]
|
/Linux-v6.1/drivers/vfio/pci/hisilicon/ |
D | hisi_acc_vfio_pci.c | 548 struct vfio_pci_core_device *core_device = dev_get_drvdata(&pdev->dev); in hisi_acc_drvdata() 1000 struct vfio_pci_core_device *vdev = &hisi_acc_vdev->core_device; in hisi_acc_vf_qm_init() 1071 struct vfio_pci_core_device *vdev = in hisi_acc_pci_rw_access_check() 1072 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_pci_rw_access_check() 1091 struct vfio_pci_core_device *vdev = in hisi_acc_vfio_pci_mmap() 1092 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_mmap() 1144 struct vfio_pci_core_device *vdev = in hisi_acc_vfio_pci_ioctl() 1145 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_ioctl() 1183 struct vfio_pci_core_device *vdev = &hisi_acc_vdev->core_device; in hisi_acc_vfio_pci_open_device()
|
D | hisi_acc_vfio_pci.h | 99 struct vfio_pci_core_device core_device;
|
/Linux-v6.1/drivers/vfio/pci/mlx5/ |
D | cmd.h | 95 struct vfio_pci_core_device core_device;
|
D | main.c | 29 struct vfio_pci_core_device *core_device = dev_get_drvdata(&pdev->dev); in mlx5vf_drvdata() 555 struct vfio_pci_core_device *vdev = &mvdev->core_device; in mlx5vf_pci_open_device()
|