Lines Matching defs:wait
192 static int kyber_domain_wake(wait_queue_entry_t *wait, unsigned mode, int flags,
491 init_waitqueue_func_entry(&khd->domain_wait[i].wait,
493 khd->domain_wait[i].wait.private = hctx;
494 INIT_LIST_HEAD(&khd->domain_wait[i].wait.entry);
692 struct sbq_wait *wait = container_of(wqe, struct sbq_wait, wait);
694 sbitmap_del_wait_queue(wait);
705 struct sbq_wait *wait = &khd->domain_wait[sched_domain];
716 if (nr < 0 && list_empty_careful(&wait->wait.entry)) {
720 sbitmap_add_wait_queue(domain_tokens, ws, wait);
723 * Try again in case a token was freed before we got on the wait
730 * If we got a token while we were on the wait queue, remove ourselves
731 * from the wait queue to ensure that all wake ups make forward
736 if (nr >= 0 && !list_empty_careful(&wait->wait.entry)) {
738 spin_lock_irq(&ws->wait.lock);
739 sbitmap_del_wait_queue(wait);
740 spin_unlock_irq(&ws->wait.lock);
942 wait_queue_entry_t *wait = &khd->domain_wait[domain].wait; \
944 seq_printf(m, "%d\n", !list_empty_careful(&wait->entry)); \