Lines Matching refs:pwq
541 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
552 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
554 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
566 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
568 while ((pwq = *p) != NULL) { in ep_unregister_pollwait()
569 *p = pwq->next; in ep_unregister_pollwait()
570 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
571 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1246 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1251 pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL); in ep_ptable_queue_proc()
1252 if (unlikely(!pwq)) { in ep_ptable_queue_proc()
1257 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1258 pwq->whead = whead; in ep_ptable_queue_proc()
1259 pwq->base = epi; in ep_ptable_queue_proc()
1261 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1263 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1264 pwq->next = epi->pwqlist; in ep_ptable_queue_proc()
1265 epi->pwqlist = pwq; in ep_ptable_queue_proc()