Lines Matching refs:trigger
33 eventfd_signal(vdev->ctx[0].trigger, 1); in vfio_send_intx_eventfd()
175 struct eventfd_ctx *trigger; in vfio_intx_set_signal() local
179 if (vdev->ctx[0].trigger) { in vfio_intx_set_signal()
182 eventfd_ctx_put(vdev->ctx[0].trigger); in vfio_intx_set_signal()
183 vdev->ctx[0].trigger = NULL; in vfio_intx_set_signal()
194 trigger = eventfd_ctx_fdget(fd); in vfio_intx_set_signal()
195 if (IS_ERR(trigger)) { in vfio_intx_set_signal()
197 return PTR_ERR(trigger); in vfio_intx_set_signal()
200 vdev->ctx[0].trigger = trigger; in vfio_intx_set_signal()
208 vdev->ctx[0].trigger = NULL; in vfio_intx_set_signal()
210 eventfd_ctx_put(trigger); in vfio_intx_set_signal()
241 struct eventfd_ctx *trigger = arg; in vfio_msihandler() local
243 eventfd_signal(trigger, 1); in vfio_msihandler()
292 struct eventfd_ctx *trigger; in vfio_msi_set_vector_signal() local
301 if (vdev->ctx[vector].trigger) { in vfio_msi_set_vector_signal()
305 free_irq(irq, vdev->ctx[vector].trigger); in vfio_msi_set_vector_signal()
309 eventfd_ctx_put(vdev->ctx[vector].trigger); in vfio_msi_set_vector_signal()
310 vdev->ctx[vector].trigger = NULL; in vfio_msi_set_vector_signal()
322 trigger = eventfd_ctx_fdget(fd); in vfio_msi_set_vector_signal()
323 if (IS_ERR(trigger)) { in vfio_msi_set_vector_signal()
325 return PTR_ERR(trigger); in vfio_msi_set_vector_signal()
344 vdev->ctx[vector].name, trigger); in vfio_msi_set_vector_signal()
348 eventfd_ctx_put(trigger); in vfio_msi_set_vector_signal()
352 vdev->ctx[vector].producer.token = trigger; in vfio_msi_set_vector_signal()
362 vdev->ctx[vector].trigger = trigger; in vfio_msi_set_vector_signal()
503 uint8_t trigger = *(uint8_t *)data; in vfio_pci_set_intx_trigger() local
504 if (trigger) in vfio_pci_set_intx_trigger()
548 if (!vdev->ctx[i].trigger) in vfio_pci_set_msi_trigger()
551 eventfd_signal(vdev->ctx[i].trigger, 1); in vfio_pci_set_msi_trigger()
555 eventfd_signal(vdev->ctx[i].trigger, 1); in vfio_pci_set_msi_trigger()
577 uint8_t trigger; in vfio_pci_set_ctx_trigger_single() local
582 trigger = *(uint8_t *)data; in vfio_pci_set_ctx_trigger_single()
583 if (trigger && *ctx) in vfio_pci_set_ctx_trigger_single()