Lines Matching refs:wq
20 void wq_init(struct wait_queue *wq) in wq_init() argument
22 *wq = (struct wait_queue)WAIT_QUEUE_INITIALIZER; in wq_init()
43 static void slist_add_tail(struct wait_queue *wq, struct wait_queue_elem *wqe) in slist_add_tail() argument
48 wqe_iter = SLIST_FIRST(wq); in slist_add_tail()
54 SLIST_INSERT_HEAD(wq, wqe, link); in slist_add_tail()
57 void wq_wait_init_condvar(struct wait_queue *wq, struct wait_queue_elem *wqe, in wq_wait_init_condvar() argument
69 slist_add_tail(wq, wqe); in wq_wait_init_condvar()
74 void wq_wait_final(struct wait_queue *wq, struct wait_queue_elem *wqe, in wq_wait_final() argument
88 SLIST_REMOVE(wq, wqe, wait_queue_elem, link); in wq_wait_final()
94 void wq_wake_next(struct wait_queue *wq, const void *sync_obj, in wq_wake_next() argument
113 SLIST_FOREACH(wqe, wq, link) { in wq_wake_next()
144 void wq_promote_condvar(struct wait_queue *wq, struct condvar *cv, in wq_promote_condvar() argument
162 SLIST_FOREACH(wqe, wq, link) { in wq_promote_condvar()
180 bool wq_have_condvar(struct wait_queue *wq, struct condvar *cv) in wq_have_condvar() argument
188 SLIST_FOREACH(wqe, wq, link) { in wq_have_condvar()
200 bool wq_is_empty(struct wait_queue *wq) in wq_is_empty() argument
207 ret = SLIST_EMPTY(wq); in wq_is_empty()