Lines Matching refs:mutex
16 void mutex_init(struct mutex *m) in mutex_init()
18 *m = (struct mutex)MUTEX_INITIALIZER; in mutex_init()
26 static void __mutex_lock(struct mutex *m, const char *fname, int lineno) in __mutex_lock()
91 static void __mutex_unlock(struct mutex *m, const char *fname, int lineno) in __mutex_unlock()
128 static bool __mutex_trylock(struct mutex *m, const char *fname __unused, in __mutex_trylock()
151 static void __mutex_read_unlock(struct mutex *m, const char *fname, int lineno) in __mutex_read_unlock()
173 static void __mutex_read_lock(struct mutex *m, const char *fname, int lineno) in __mutex_read_lock()
215 static bool __mutex_read_trylock(struct mutex *m, const char *fname __unused, in __mutex_read_trylock()
237 void mutex_unlock_debug(struct mutex *m, const char *fname, int lineno) in mutex_unlock_debug()
242 void mutex_lock_debug(struct mutex *m, const char *fname, int lineno) in mutex_lock_debug()
247 bool mutex_trylock_debug(struct mutex *m, const char *fname, int lineno) in mutex_trylock_debug()
252 void mutex_read_unlock_debug(struct mutex *m, const char *fname, int lineno) in mutex_read_unlock_debug()
257 void mutex_read_lock_debug(struct mutex *m, const char *fname, int lineno) in mutex_read_lock_debug()
262 bool mutex_read_trylock_debug(struct mutex *m, const char *fname, int lineno) in mutex_read_trylock_debug()
279 void mutex_unlock(struct mutex *m) in mutex_unlock()
289 void mutex_lock(struct mutex *m) in mutex_lock()
299 bool mutex_trylock(struct mutex *m) in mutex_trylock()
304 void mutex_read_unlock(struct mutex *m) in mutex_read_unlock()
309 void mutex_read_lock(struct mutex *m) in mutex_read_lock()
314 bool mutex_read_trylock(struct mutex *m) in mutex_read_trylock()
320 void mutex_destroy(struct mutex *m) in mutex_destroy()
353 mutex_destroy(&m->mutex); in mutex_pm_aware_destroy()
359 if (!cpu_spin_trylock(&m->lock) || m->mutex.state) in mutex_pm_aware_lock()
362 mutex_lock(&m->mutex); in mutex_pm_aware_lock()
371 assert(!m->mutex.state); in mutex_pm_aware_unlock()
375 mutex_unlock(&m->mutex); in mutex_pm_aware_unlock()
396 struct mutex *m; in cv_signal()
430 static TEE_Result __condvar_wait_timeout(struct condvar *cv, struct mutex *m, in __condvar_wait_timeout()
484 void condvar_wait_debug(struct condvar *cv, struct mutex *m, in condvar_wait_debug()
490 TEE_Result condvar_wait_timeout_debug(struct condvar *cv, struct mutex *m, in condvar_wait_timeout_debug()
497 void condvar_wait(struct condvar *cv, struct mutex *m) in condvar_wait()
502 TEE_Result condvar_wait_timeout(struct condvar *cv, struct mutex *m, in condvar_wait_timeout()