Lines Matching refs:pwq
546 static void ep_remove_wait_queue(struct eppoll_entry *pwq) in ep_remove_wait_queue() argument
557 whead = smp_load_acquire(&pwq->whead); in ep_remove_wait_queue()
559 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
570 struct eppoll_entry *pwq; in ep_unregister_pollwait() local
572 while ((pwq = *p) != NULL) { in ep_unregister_pollwait()
573 *p = pwq->next; in ep_unregister_pollwait()
574 ep_remove_wait_queue(pwq); in ep_unregister_pollwait()
575 kmem_cache_free(pwq_cache, pwq); in ep_unregister_pollwait()
1277 struct eppoll_entry *pwq; in ep_ptable_queue_proc() local
1282 pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL); in ep_ptable_queue_proc()
1283 if (unlikely(!pwq)) { in ep_ptable_queue_proc()
1288 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); in ep_ptable_queue_proc()
1289 pwq->whead = whead; in ep_ptable_queue_proc()
1290 pwq->base = epi; in ep_ptable_queue_proc()
1292 add_wait_queue_exclusive(whead, &pwq->wait); in ep_ptable_queue_proc()
1294 add_wait_queue(whead, &pwq->wait); in ep_ptable_queue_proc()
1295 pwq->next = epi->pwqlist; in ep_ptable_queue_proc()
1296 epi->pwqlist = pwq; in ep_ptable_queue_proc()