Home
last modified time | relevance | path

Searched refs:wq (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/kernel/
A Dwait_queue.c20 void wq_init(struct wait_queue *wq) in wq_init() argument
22 *wq = (struct wait_queue)WAIT_QUEUE_INITIALIZER; in wq_init()
48 wqe_iter = SLIST_FIRST(wq); in slist_add_tail()
54 SLIST_INSERT_HEAD(wq, wqe, link); in slist_add_tail()
69 slist_add_tail(wq, wqe); in wq_wait_init_condvar()
88 SLIST_REMOVE(wq, wqe, wait_queue_elem, link); in wq_wait_final()
113 SLIST_FOREACH(wqe, wq, link) { in wq_wake_next()
162 SLIST_FOREACH(wqe, wq, link) { in wq_promote_condvar()
188 SLIST_FOREACH(wqe, wq, link) { in wq_have_condvar()
200 bool wq_is_empty(struct wait_queue *wq) in wq_is_empty() argument
[all …]
A Dmutex.c51 wq_wait_init(&m->wq, &wqe, false /* wait_read */); in __mutex_lock()
63 wq_wait_final(&m->wq, &wqe, m, fname, lineno); in __mutex_lock()
108 wq_wake_next(&m->wq, m, fname, lineno); in __mutex_unlock()
169 wq_wake_next(&m->wq, m, fname, lineno); in __mutex_read_unlock()
196 wq_wait_init(&m->wq, &wqe, true /* wait_read */); in __mutex_read_lock()
208 wq_wait_final(&m->wq, &wqe, m, fname, lineno); in __mutex_read_lock()
327 if (!wq_is_empty(&m->wq)) in mutex_destroy()
352 if (cv->m && wq_have_condvar(&cv->m->wq, cv)) in condvar_destroy()
420 wq_wait_init_condvar(&m->wq, &wqe, cv, m->state > 0); in __condvar_wait()
435 wq_wake_next(&m->wq, m, fname, lineno); in __condvar_wait()
[all …]
/optee_os/core/include/kernel/
A Dwait_queue.h28 void wq_init(struct wait_queue *wq);
38 void wq_wait_init_condvar(struct wait_queue *wq, struct wait_queue_elem *wqe,
41 static inline void wq_wait_init(struct wait_queue *wq, in wq_wait_init() argument
44 wq_wait_init_condvar(wq, wqe, NULL, wait_read); in wq_wait_init()
48 void wq_wait_final(struct wait_queue *wq, struct wait_queue_elem *wqe,
52 void wq_wake_next(struct wait_queue *wq, const void *sync_obj,
56 bool wq_is_empty(struct wait_queue *wq);
58 void wq_promote_condvar(struct wait_queue *wq, struct condvar *cv,
61 bool wq_have_condvar(struct wait_queue *wq, struct condvar *cv);
A Dmutex.h15 struct wait_queue wq; member
19 #define MUTEX_INITIALIZER { .wq = WAIT_QUEUE_INITIALIZER }

Completed in 5 milliseconds