Home
last modified time | relevance | path

Searched refs:vfio_pci_core_device (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/include/linux/
Dvfio_pci_core.h37 struct vfio_pci_core_device *vdev;
56 struct vfio_pci_core_device;
60 ssize_t (*rw)(struct vfio_pci_core_device *vdev, char __user *buf,
62 void (*release)(struct vfio_pci_core_device *vdev,
64 int (*mmap)(struct vfio_pci_core_device *vdev,
67 int (*add_capability)(struct vfio_pci_core_device *vdev,
98 struct vfio_pci_core_device { struct
148 extern void vfio_pci_intx_mask(struct vfio_pci_core_device *vdev); argument
149 extern void vfio_pci_intx_unmask(struct vfio_pci_core_device *vdev);
151 extern int vfio_pci_set_irqs_ioctl(struct vfio_pci_core_device *vdev,
[all …]
/Linux-v5.15/drivers/vfio/pci/
Dvfio_pci_core.c86 static void vfio_pci_probe_mmaps(struct vfio_pci_core_device *vdev) in vfio_pci_probe_mmaps()
190 static void vfio_pci_probe_power_state(struct vfio_pci_core_device *vdev) in vfio_pci_probe_power_state()
210 int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev, pci_power_t state) in vfio_pci_set_power_state()
241 int vfio_pci_core_enable(struct vfio_pci_core_device *vdev) in vfio_pci_core_enable()
315 void vfio_pci_core_disable(struct vfio_pci_core_device *vdev) in vfio_pci_core_disable()
413 static struct vfio_pci_core_device *get_pf_vdev(struct vfio_pci_core_device *vdev) in get_pf_vdev()
430 return container_of(pf_dev, struct vfio_pci_core_device, vdev); in get_pf_vdev()
433 static void vfio_pci_vf_token_user_add(struct vfio_pci_core_device *vdev, int val) in vfio_pci_vf_token_user_add()
435 struct vfio_pci_core_device *pf_vdev = get_pf_vdev(vdev); in vfio_pci_vf_token_user_add()
450 struct vfio_pci_core_device *vdev = in vfio_pci_core_close_device()
[all …]
Dvfio_pci_intrs.c30 struct vfio_pci_core_device *vdev = opaque; in vfio_send_intx_eventfd()
36 void vfio_pci_intx_mask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_mask()
76 struct vfio_pci_core_device *vdev = opaque; in vfio_pci_intx_unmask_handler()
110 void vfio_pci_intx_unmask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_unmask()
118 struct vfio_pci_core_device *vdev = dev_id; in vfio_intx_handler()
142 static int vfio_intx_enable(struct vfio_pci_core_device *vdev) in vfio_intx_enable()
171 static int vfio_intx_set_signal(struct vfio_pci_core_device *vdev, int fd) in vfio_intx_set_signal()
226 static void vfio_intx_disable(struct vfio_pci_core_device *vdev) in vfio_intx_disable()
247 static int vfio_msi_enable(struct vfio_pci_core_device *vdev, int nvec, bool msix) in vfio_msi_enable()
288 static int vfio_msi_set_vector_signal(struct vfio_pci_core_device *vdev, in vfio_msi_set_vector_signal()
[all …]
Dvfio_pci_igd.c28 static ssize_t vfio_pci_igd_rw(struct vfio_pci_core_device *vdev, in vfio_pci_igd_rw()
49 static void vfio_pci_igd_release(struct vfio_pci_core_device *vdev, in vfio_pci_igd_release()
60 static int vfio_pci_igd_opregion_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_opregion_init()
164 static ssize_t vfio_pci_igd_cfg_rw(struct vfio_pci_core_device *vdev, in vfio_pci_igd_cfg_rw()
257 static void vfio_pci_igd_cfg_release(struct vfio_pci_core_device *vdev, in vfio_pci_igd_cfg_release()
270 static int vfio_pci_igd_cfg_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_cfg_init()
318 int vfio_pci_igd_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_init()
Dvfio_pci_config.c111 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 …]
Dvfio_pci_rdwr.c41 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()
291 ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf, in vfio_pci_vga_rw()
387 struct vfio_pci_core_device *vdev = ioeventfd->vdev; in vfio_pci_ioeventfd_handler()
413 long vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset, in vfio_pci_ioeventfd()
Dvfio_pci.c103 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()
142 struct vfio_pci_core_device *vdev; in vfio_pci_probe()
167 struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); in vfio_pci_remove()
Dvfio_pci_zdev.c112 int vfio_pci_info_zdev_add_caps(struct vfio_pci_core_device *vdev, in vfio_pci_info_zdev_add_caps()