Lines Matching refs:vdev

36 	struct vfio_pci_device	*vdev;
59 size_t (*rw)(struct vfio_pci_device *vdev, char __user *buf,
61 void (*release)(struct vfio_pci_device *vdev,
63 int (*mmap)(struct vfio_pci_device *vdev,
66 int (*add_capability)(struct vfio_pci_device *vdev,
147 #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX)
148 #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX)
149 #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX)
150 #define is_irq_none(vdev) (!(is_intx(vdev) || is_msi(vdev) || is_msix(vdev)))
151 #define irq_is(vdev, type) (vdev->irq_type == type)
153 extern void vfio_pci_intx_mask(struct vfio_pci_device *vdev);
154 extern void vfio_pci_intx_unmask(struct vfio_pci_device *vdev);
156 extern int vfio_pci_set_irqs_ioctl(struct vfio_pci_device *vdev,
160 extern ssize_t vfio_pci_config_rw(struct vfio_pci_device *vdev,
164 extern ssize_t vfio_pci_bar_rw(struct vfio_pci_device *vdev, char __user *buf,
167 extern ssize_t vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf,
170 extern long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset,
176 extern int vfio_config_init(struct vfio_pci_device *vdev);
177 extern void vfio_config_free(struct vfio_pci_device *vdev);
179 extern int vfio_pci_register_dev_region(struct vfio_pci_device *vdev,
184 extern int vfio_pci_set_power_state(struct vfio_pci_device *vdev,
187 extern bool __vfio_pci_memory_enabled(struct vfio_pci_device *vdev);
189 *vdev);
190 extern u16 vfio_pci_memory_lock_and_enable(struct vfio_pci_device *vdev);
191 extern void vfio_pci_memory_unlock_and_restore(struct vfio_pci_device *vdev,
195 extern int vfio_pci_igd_init(struct vfio_pci_device *vdev);
197 static inline int vfio_pci_igd_init(struct vfio_pci_device *vdev)
203 extern int vfio_pci_nvdia_v100_nvlink2_init(struct vfio_pci_device *vdev);
204 extern int vfio_pci_ibm_npu2_init(struct vfio_pci_device *vdev);
206 static inline int vfio_pci_nvdia_v100_nvlink2_init(struct vfio_pci_device *vdev)
211 static inline int vfio_pci_ibm_npu2_init(struct vfio_pci_device *vdev)
218 extern int vfio_pci_info_zdev_add_caps(struct vfio_pci_device *vdev,
221 static inline int vfio_pci_info_zdev_add_caps(struct vfio_pci_device *vdev,