Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/vfio/pci/
Dvfio_pci_priv.h16 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 …]
Dvfio_pci_intrs.c34 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()
52 struct vfio_pci_irq_ctx *vfio_irq_ctx_get(struct vfio_pci_core_device *vdev, in vfio_irq_ctx_get()
58 static void vfio_irq_ctx_free(struct vfio_pci_core_device *vdev, in vfio_irq_ctx_free()
66 vfio_irq_ctx_alloc(struct vfio_pci_core_device *vdev, unsigned long index) in vfio_irq_ctx_alloc()
89 struct vfio_pci_core_device *vdev = opaque; in vfio_send_intx_eventfd()
102 bool vfio_pci_intx_mask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_mask()
154 struct vfio_pci_core_device *vdev = opaque; in vfio_pci_intx_unmask_handler()
197 void vfio_pci_intx_unmask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_unmask()
[all …]
Dvfio_pci_core.c112 static void vfio_pci_probe_mmaps(struct vfio_pci_core_device *vdev) in vfio_pci_probe_mmaps()
218 static void vfio_pci_probe_power_state(struct vfio_pci_core_device *vdev) in vfio_pci_probe_power_state()
238 int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev, pci_power_t state) in vfio_pci_set_power_state()
286 static int vfio_pci_runtime_pm_entry(struct vfio_pci_core_device *vdev, in vfio_pci_runtime_pm_entry()
310 struct vfio_pci_core_device *vdev = in vfio_pci_core_pm_entry()
311 container_of(device, struct vfio_pci_core_device, vdev); in vfio_pci_core_pm_entry()
332 struct vfio_pci_core_device *vdev = in vfio_pci_core_pm_entry_with_wakeup()
333 container_of(device, struct vfio_pci_core_device, vdev); in vfio_pci_core_pm_entry_with_wakeup()
360 static void __vfio_pci_runtime_pm_exit(struct vfio_pci_core_device *vdev) in __vfio_pci_runtime_pm_exit()
373 static void vfio_pci_runtime_pm_exit(struct vfio_pci_core_device *vdev) in vfio_pci_runtime_pm_exit()
[all …]
Dvfio_pci_config.c112 int (*readfn)(struct vfio_pci_core_device *vdev, int pos, int count,
114 int (*writefn)(struct vfio_pci_core_device *vdev, int pos, int count,
175 static int vfio_default_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_read()
201 static int vfio_default_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_write()
248 static int vfio_direct_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_direct_config_read()
273 static int vfio_raw_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_raw_config_write()
286 static int vfio_raw_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_raw_config_read()
300 static int vfio_virt_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_virt_config_write()
308 static int vfio_virt_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_virt_config_read()
400 bool __vfio_pci_memory_enabled(struct vfio_pci_core_device *vdev) in __vfio_pci_memory_enabled()
[all …]
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()
149 struct vfio_pci_core_device *vdev; in vfio_pci_probe()
155 vdev = vfio_alloc_device(vfio_pci_core_device, vdev, &pdev->dev, in vfio_pci_probe()
173 struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); in vfio_pci_remove()
181 struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); in vfio_pci_sriov_configure()
Dvfio_pci_igd.c64 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()
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()
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()
Dvfio_pci_zdev.c116 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-6.6.21/include/linux/
Dvfio_pci_core.h27 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-6.6.21/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c545 struct vfio_pci_core_device *core_device = dev_get_drvdata(&pdev->dev); in hisi_acc_drvdata()
1126 struct vfio_pci_core_device *vdev = &hisi_acc_vdev->core_device; in hisi_acc_vf_qm_init()
1197 struct vfio_pci_core_device *vdev = in hisi_acc_pci_rw_access_check()
1198 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_pci_rw_access_check()
1217 struct vfio_pci_core_device *vdev = in hisi_acc_vfio_pci_mmap()
1218 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_mmap()
1270 struct vfio_pci_core_device *vdev = in hisi_acc_vfio_pci_ioctl()
1271 container_of(core_vdev, struct vfio_pci_core_device, vdev); in hisi_acc_vfio_pci_ioctl()
1309 struct vfio_pci_core_device *vdev = &hisi_acc_vdev->core_device; in hisi_acc_vfio_pci_open_device()
Dhisi_acc_vfio_pci.h100 struct vfio_pci_core_device core_device;
/linux-6.6.21/drivers/vfio/pci/pds/
Dvfio_dev.h14 struct vfio_pci_core_device vfio_coredev;
Dvfio_dev.c23 struct vfio_pci_core_device *core_device = dev_get_drvdata(&pdev->dev); in pds_vfio_pci_drvdata()
/linux-6.6.21/drivers/vfio/pci/mlx5/
Dcmd.h160 struct vfio_pci_core_device core_device;
Dmain.c29 struct vfio_pci_core_device *core_device = dev_get_drvdata(&pdev->dev); in mlx5vf_drvdata()
1248 struct vfio_pci_core_device *vdev = &mvdev->core_device; in mlx5vf_pci_open_device()