Lines Matching refs:mutex
13 struct mutex { struct
22 struct mutex m; /* used when lock_depth goes 0 -> 1 or 1 -> 0 */ argument
30 TAILQ_HEAD(mutex_head, mutex);
32 void mutex_init(struct mutex *m);
33 void mutex_destroy(struct mutex *m);
40 void mutex_unlock_debug(struct mutex *m, const char *fname, int lineno);
43 void mutex_lock_debug(struct mutex *m, const char *fname, int lineno);
46 bool mutex_trylock_debug(struct mutex *m, const char *fname, int lineno);
49 void mutex_read_unlock_debug(struct mutex *m, const char *fname, int lineno);
52 void mutex_read_lock_debug(struct mutex *m, const char *fname, int lineno);
55 bool mutex_read_trylock_debug(struct mutex *m, const char *fname, int lineno);
68 void mutex_unlock(struct mutex *m);
69 void mutex_lock(struct mutex *m);
70 bool mutex_trylock(struct mutex *m);
71 void mutex_read_unlock(struct mutex *m);
72 void mutex_read_lock(struct mutex *m);
73 bool mutex_read_trylock(struct mutex *m);
81 struct mutex *m;
95 void condvar_wait_debug(struct condvar *cv, struct mutex *m,
103 TEE_Result condvar_wait_timeout_debug(struct condvar *cv, struct mutex *m,
111 void condvar_wait(struct condvar *cv, struct mutex *m);
116 TEE_Result condvar_wait_timeout(struct condvar *cv, struct mutex *m,
125 static inline bool mutex_is_locked(struct mutex *m) in mutex_is_locked()