Lines Matching refs:cdx_irqs

30 	vdev->cdx_irqs = kcalloc(nvec, sizeof(struct vfio_cdx_irq), GFP_KERNEL);  in vfio_cdx_msi_enable()
31 if (!vdev->cdx_irqs) in vfio_cdx_msi_enable()
36 kfree(vdev->cdx_irqs); in vfio_cdx_msi_enable()
44 kfree(vdev->cdx_irqs); in vfio_cdx_msi_enable()
49 vdev->cdx_irqs[msi_idx].irq_no = msi_get_virq(dev, msi_idx); in vfio_cdx_msi_enable()
66 irq_no = vdev->cdx_irqs[vector].irq_no; in vfio_cdx_msi_set_vector_signal()
68 if (vdev->cdx_irqs[vector].trigger) { in vfio_cdx_msi_set_vector_signal()
69 free_irq(irq_no, vdev->cdx_irqs[vector].trigger); in vfio_cdx_msi_set_vector_signal()
70 kfree(vdev->cdx_irqs[vector].name); in vfio_cdx_msi_set_vector_signal()
71 eventfd_ctx_put(vdev->cdx_irqs[vector].trigger); in vfio_cdx_msi_set_vector_signal()
72 vdev->cdx_irqs[vector].trigger = NULL; in vfio_cdx_msi_set_vector_signal()
78 vdev->cdx_irqs[vector].name = kasprintf(GFP_KERNEL, "vfio-msi[%d](%s)", in vfio_cdx_msi_set_vector_signal()
80 if (!vdev->cdx_irqs[vector].name) in vfio_cdx_msi_set_vector_signal()
85 kfree(vdev->cdx_irqs[vector].name); in vfio_cdx_msi_set_vector_signal()
90 vdev->cdx_irqs[vector].name, trigger); in vfio_cdx_msi_set_vector_signal()
92 kfree(vdev->cdx_irqs[vector].name); in vfio_cdx_msi_set_vector_signal()
97 vdev->cdx_irqs[vector].trigger = trigger; in vfio_cdx_msi_set_vector_signal()
137 kfree(vdev->cdx_irqs); in vfio_cdx_msi_disable()
139 vdev->cdx_irqs = NULL; in vfio_cdx_msi_disable()
179 if (!vdev->cdx_irqs[i].trigger) in vfio_cdx_set_msi_trigger()
182 eventfd_signal(vdev->cdx_irqs[i].trigger); in vfio_cdx_set_msi_trigger()
187 eventfd_signal(vdev->cdx_irqs[i].trigger); in vfio_cdx_set_msi_trigger()
213 if (!vdev->cdx_irqs) in vfio_cdx_irqs_cleanup()