Lines Matching refs:pwq
599 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
610 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
612 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
624 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
627 pwq = list_first_entry(lsthead, struct eppoll_entry, llink); in ep_unregister_pollwait()
629 list_del(&pwq->llink); in ep_unregister_pollwait()
630 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
631 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1256 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1258 if (epi->nwait >= 0 && (pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL))) { in ep_ptable_queue_proc()
1259 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1260 pwq->whead = whead; in ep_ptable_queue_proc()
1261 pwq->base = epi; in ep_ptable_queue_proc()
1263 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1265 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1266 list_add_tail(&pwq->llink, &epi->pwqlist); in ep_ptable_queue_proc()