Lines Matching refs:pwq
532 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
543 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
545 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
557 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
559 while ((pwq = *p) != NULL) { in ep_unregister_pollwait()
560 *p = pwq->next; in ep_unregister_pollwait()
561 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
562 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1237 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1242 pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL); in ep_ptable_queue_proc()
1243 if (unlikely(!pwq)) { in ep_ptable_queue_proc()
1248 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1249 pwq->whead = whead; in ep_ptable_queue_proc()
1250 pwq->base = epi; in ep_ptable_queue_proc()
1252 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1254 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1255 pwq->next = epi->pwqlist; in ep_ptable_queue_proc()
1256 epi->pwqlist = pwq; in ep_ptable_queue_proc()