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