Home
last modified time | relevance | path

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

/optee_os/core/kernel/
A Dmutex.c345 void condvar_init(struct condvar *cv) in condvar_init() argument
350 void condvar_destroy(struct condvar *cv) in condvar_destroy() argument
352 if (cv->m && wq_have_condvar(&cv->m->wq, cv)) in condvar_destroy()
355 condvar_init(cv); in condvar_destroy()
365 m = cv->m; in cv_signal()
385 void condvar_signal(struct condvar *cv) in condvar_signal() argument
408 if (cv->m && cv->m != m) in __condvar_wait()
411 cv->m = m; in __condvar_wait()
412 cpu_spin_unlock(&cv->spin_lock); in __condvar_wait()
449 __condvar_wait(cv, m, fname, lineno); in condvar_wait_debug()
[all …]
A Dwait_queue.c58 struct condvar *cv, bool wait_read) in wq_wait_init_condvar() argument
65 wqe->cv = cv; in wq_wait_init_condvar()
114 if (wqe->cv) in wq_wake_next()
144 void wq_promote_condvar(struct wait_queue *wq, struct condvar *cv, in wq_promote_condvar() argument
151 if (!cv) in wq_promote_condvar()
163 if (wqe->cv == cv) { in wq_promote_condvar()
166 wqe->handle, (void *)cv->m, fname, lineno); in wq_promote_condvar()
169 wqe->handle, (void *)cv->m); in wq_promote_condvar()
171 wqe->cv = NULL; in wq_promote_condvar()
180 bool wq_have_condvar(struct wait_queue *wq, struct condvar *cv) in wq_have_condvar() argument
[all …]
/optee_os/core/include/kernel/
A Dmutex.h85 void condvar_init(struct condvar *cv);
86 void condvar_destroy(struct condvar *cv);
89 void condvar_signal_debug(struct condvar *cv, const char *fname, int lineno);
90 #define condvar_signal(cv) condvar_signal_debug((cv), __FILE__, __LINE__) argument
92 void condvar_broadcast_debug(struct condvar *cv, const char *fname, int lineno);
93 #define condvar_broadcast(cv) condvar_broadcast_debug((cv), __FILE__, __LINE__) argument
95 void condvar_wait_debug(struct condvar *cv, struct mutex *m,
97 #define condvar_wait(cv, m) condvar_wait_debug((cv), (m), __FILE__, __LINE__) argument
99 void condvar_signal(struct condvar *cv);
100 void condvar_broadcast(struct condvar *cv);
[all …]
A Dwait_queue.h21 struct condvar *cv; member
39 struct condvar *cv, bool wait_read);
58 void wq_promote_condvar(struct wait_queue *wq, struct condvar *cv,
61 bool wq_have_condvar(struct wait_queue *wq, struct condvar *cv);

Completed in 6 milliseconds