Lines Matching refs:wqh

32 	wait_queue_head_t wqh;  member
75 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal()
80 if (waitqueue_active(&ctx->wqh)) in eventfd_signal()
81 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in eventfd_signal()
83 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal()
120 wake_up_poll(&ctx->wqh, EPOLLHUP); in eventfd_release()
131 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
185 lockdep_assert_held(&ctx->wqh.lock); in eventfd_ctx_do_read()
210 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
212 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
213 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) in eventfd_ctx_remove_wait_queue()
214 wake_up_locked_poll(&ctx->wqh, EPOLLOUT); in eventfd_ctx_remove_wait_queue()
215 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
230 spin_lock_irq(&ctx->wqh.lock); in eventfd_read()
234 spin_unlock_irq(&ctx->wqh.lock); in eventfd_read()
237 __add_wait_queue(&ctx->wqh, &wait); in eventfd_read()
243 __remove_wait_queue(&ctx->wqh, &wait); in eventfd_read()
245 spin_unlock_irq(&ctx->wqh.lock); in eventfd_read()
248 spin_unlock_irq(&ctx->wqh.lock); in eventfd_read()
250 spin_lock_irq(&ctx->wqh.lock); in eventfd_read()
252 __remove_wait_queue(&ctx->wqh, &wait); in eventfd_read()
256 if (waitqueue_active(&ctx->wqh)) in eventfd_read()
257 wake_up_locked_poll(&ctx->wqh, EPOLLOUT); in eventfd_read()
258 spin_unlock_irq(&ctx->wqh.lock); in eventfd_read()
279 spin_lock_irq(&ctx->wqh.lock); in eventfd_write()
284 __add_wait_queue(&ctx->wqh, &wait); in eventfd_write()
295 spin_unlock_irq(&ctx->wqh.lock); in eventfd_write()
297 spin_lock_irq(&ctx->wqh.lock); in eventfd_write()
299 __remove_wait_queue(&ctx->wqh, &wait); in eventfd_write()
304 if (waitqueue_active(&ctx->wqh)) in eventfd_write()
305 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in eventfd_write()
307 spin_unlock_irq(&ctx->wqh.lock); in eventfd_write()
317 spin_lock_irq(&ctx->wqh.lock); in eventfd_show_fdinfo()
320 spin_unlock_irq(&ctx->wqh.lock); in eventfd_show_fdinfo()
423 init_waitqueue_head(&ctx->wqh); in do_eventfd()