Lines Matching refs:eventfd
2357 struct eventfd_ctx *eventfd; in kvm_hvcall_signal_event() local
2386 eventfd = idr_find(&hv->conn_to_evt, hc->ingpa); in kvm_hvcall_signal_event()
2388 if (!eventfd) in kvm_hvcall_signal_event()
2391 eventfd_signal(eventfd, 1); in kvm_hvcall_signal_event()
2650 struct eventfd_ctx *eventfd; in kvm_hv_destroy_vm() local
2653 idr_for_each_entry(&hv->conn_to_evt, eventfd, i) in kvm_hv_destroy_vm()
2654 eventfd_ctx_put(eventfd); in kvm_hv_destroy_vm()
2661 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_assign() local
2664 eventfd = eventfd_ctx_fdget(fd); in kvm_hv_eventfd_assign()
2665 if (IS_ERR(eventfd)) in kvm_hv_eventfd_assign()
2666 return PTR_ERR(eventfd); in kvm_hv_eventfd_assign()
2669 ret = idr_alloc(&hv->conn_to_evt, eventfd, conn_id, conn_id + 1, in kvm_hv_eventfd_assign()
2678 eventfd_ctx_put(eventfd); in kvm_hv_eventfd_assign()
2685 struct eventfd_ctx *eventfd; in kvm_hv_eventfd_deassign() local
2688 eventfd = idr_remove(&hv->conn_to_evt, conn_id); in kvm_hv_eventfd_deassign()
2691 if (!eventfd) in kvm_hv_eventfd_deassign()
2695 eventfd_ctx_put(eventfd); in kvm_hv_eventfd_deassign()