Lines Matching refs:msix
247 static int vfio_msi_enable(struct vfio_pci_device *vdev, int nvec, bool msix)
250 unsigned int flag = msix ? PCI_IRQ_MSIX : PCI_IRQ_MSI;
274 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX :
277 if (!msix) {
289 int vector, int fd, bool msix)
317 msix ? "x" : "", vector,
336 if (msix) {
368 unsigned count, int32_t *fds, bool msix)
377 ret = vfio_msi_set_vector_signal(vdev, j, fd, msix);
382 vfio_msi_set_vector_signal(vdev, j, -1, msix);
388 static void vfio_msi_disable(struct vfio_pci_device *vdev, bool msix)
399 vfio_msi_set_block(vdev, 0, vdev->num_ctx, NULL, msix);
515 bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX) ? true : false;
518 vfio_msi_disable(vdev, msix);
531 fds, msix);
533 ret = vfio_msi_enable(vdev, start + count, msix);
537 ret = vfio_msi_set_block(vdev, start, count, fds, msix);
539 vfio_msi_disable(vdev, msix);