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()
288 struct eventfd_ctx *trigger; in vfio_msi_set_vector_signal() local
296 if (vdev->ctx[vector].trigger) { in vfio_msi_set_vector_signal()
297 free_irq(irq, vdev->ctx[vector].trigger); in vfio_msi_set_vector_signal()
300 eventfd_ctx_put(vdev->ctx[vector].trigger); in vfio_msi_set_vector_signal()
301 vdev->ctx[vector].trigger = NULL; in vfio_msi_set_vector_signal()
313 trigger = eventfd_ctx_fdget(fd); in vfio_msi_set_vector_signal()
314 if (IS_ERR(trigger)) { in vfio_msi_set_vector_signal()
316 return PTR_ERR(trigger); in vfio_msi_set_vector_signal()
334 vdev->ctx[vector].name, trigger); in vfio_msi_set_vector_signal()
337 eventfd_ctx_put(trigger); in vfio_msi_set_vector_signal()
341 vdev->ctx[vector].producer.token = trigger; in vfio_msi_set_vector_signal()
349 vdev->ctx[vector].trigger = trigger; in vfio_msi_set_vector_signal()
487 uint8_t trigger = *(uint8_t *)data; in vfio_pci_set_intx_trigger() local
488 if (trigger) in vfio_pci_set_intx_trigger()
532 if (!vdev->ctx[i].trigger) in vfio_pci_set_msi_trigger()
535 eventfd_signal(vdev->ctx[i].trigger, 1); in vfio_pci_set_msi_trigger()
539 eventfd_signal(vdev->ctx[i].trigger, 1); in vfio_pci_set_msi_trigger()
561 uint8_t trigger; in vfio_pci_set_ctx_trigger_single() local
566 trigger = *(uint8_t *)data; in vfio_pci_set_ctx_trigger_single()
567 if (trigger && *ctx) in vfio_pci_set_ctx_trigger_single()