Lines Matching refs:pwq
656 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
667 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
669 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
680 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
682 while ((pwq = *p) != NULL) { in ep_unregister_pollwait()
683 *p = pwq->next; in ep_unregister_pollwait()
684 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
685 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1365 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1370 pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL); in ep_ptable_queue_proc()
1371 if (unlikely(!pwq)) { in ep_ptable_queue_proc()
1376 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1377 pwq->whead = whead; in ep_ptable_queue_proc()
1378 pwq->base = epi; in ep_ptable_queue_proc()
1380 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1382 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1383 pwq->next = epi->pwqlist; in ep_ptable_queue_proc()
1384 epi->pwqlist = pwq; in ep_ptable_queue_proc()