Lines Matching refs:pwq
539 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
550 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
552 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
564 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
566 while ((pwq = *p) != NULL) { in ep_unregister_pollwait()
567 *p = pwq->next; in ep_unregister_pollwait()
568 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
569 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1244 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1249 pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL); in ep_ptable_queue_proc()
1250 if (unlikely(!pwq)) { in ep_ptable_queue_proc()
1255 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1256 pwq->whead = whead; in ep_ptable_queue_proc()
1257 pwq->base = epi; in ep_ptable_queue_proc()
1259 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1261 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1262 pwq->next = epi->pwqlist; in ep_ptable_queue_proc()
1263 epi->pwqlist = pwq; in ep_ptable_queue_proc()