Lines Matching refs:pwq
598 static void ep_remove_wait_queue(struct eppoll_entry *pwq)
609 whead = smp_load_acquire(&pwq->whead);
611 remove_wait_queue(whead, &pwq->wait);
623 struct eppoll_entry *pwq;
626 pwq = list_first_entry(lsthead, struct eppoll_entry, llink);
628 list_del(&pwq->llink);
629 ep_remove_wait_queue(pwq);
630 kmem_cache_free(pwq_cache, pwq);
1321 struct eppoll_entry *pwq;
1323 if (epi->nwait >= 0 && (pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL))) {
1324 init_waitqueue_func_entry(&pwq->wait, ep_poll_callback);
1325 pwq->whead = whead;
1326 pwq->base = epi;
1328 add_wait_queue_exclusive(whead, &pwq->wait);
1330 add_wait_queue(whead, &pwq->wait);
1331 list_add_tail(&pwq->llink, &epi->pwqlist);