Lines Matching full:vdev
37 struct vfio_pci_core_device *vdev; member
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,
99 struct vfio_device vdev; member
142 #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX) argument
143 #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX) argument
144 #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX) argument
145 #define is_irq_none(vdev) (!(is_intx(vdev) || is_msi(vdev) || is_msix(vdev))) argument
146 #define irq_is(vdev, type) (vdev->irq_type == type) argument
148 extern void vfio_pci_intx_mask(struct vfio_pci_core_device *vdev);
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,
155 extern ssize_t vfio_pci_config_rw(struct vfio_pci_core_device *vdev,
159 extern ssize_t vfio_pci_bar_rw(struct vfio_pci_core_device *vdev, char __user *buf,
162 extern ssize_t vfio_pci_vga_rw(struct vfio_pci_core_device *vdev, char __user *buf,
165 extern long vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset,
171 extern int vfio_config_init(struct vfio_pci_core_device *vdev);
172 extern void vfio_config_free(struct vfio_pci_core_device *vdev);
174 extern int vfio_pci_register_dev_region(struct vfio_pci_core_device *vdev,
179 extern int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev,
182 extern bool __vfio_pci_memory_enabled(struct vfio_pci_core_device *vdev);
184 *vdev);
185 extern u16 vfio_pci_memory_lock_and_enable(struct vfio_pci_core_device *vdev);
186 extern void vfio_pci_memory_unlock_and_restore(struct vfio_pci_core_device *vdev,
190 extern int vfio_pci_igd_init(struct vfio_pci_core_device *vdev);
192 static inline int vfio_pci_igd_init(struct vfio_pci_core_device *vdev) in vfio_pci_igd_init() argument
199 extern int vfio_pci_info_zdev_add_caps(struct vfio_pci_core_device *vdev,
202 static inline int vfio_pci_info_zdev_add_caps(struct vfio_pci_core_device *vdev, in vfio_pci_info_zdev_add_caps() argument
213 void vfio_pci_core_init_device(struct vfio_pci_core_device *vdev,
216 int vfio_pci_core_register_device(struct vfio_pci_core_device *vdev);
217 void vfio_pci_core_uninit_device(struct vfio_pci_core_device *vdev);
218 void vfio_pci_core_unregister_device(struct vfio_pci_core_device *vdev);
230 int vfio_pci_core_enable(struct vfio_pci_core_device *vdev);
231 void vfio_pci_core_disable(struct vfio_pci_core_device *vdev);
232 void vfio_pci_core_finish_enable(struct vfio_pci_core_device *vdev);