Lines Matching full:struct
13 struct mutex {
14 unsigned spin_lock; /* used when operating on this struct */
15 struct wait_queue wq;
21 struct recursive_mutex {
22 struct mutex m; /* used when lock_depth goes 0 -> 1 or 1 -> 0 */
24 struct refcount lock_depth;
32 void mutex_init(struct mutex *m);
33 void mutex_destroy(struct mutex *m);
35 void mutex_init_recursive(struct recursive_mutex *m);
36 void mutex_destroy_recursive(struct recursive_mutex *m);
37 unsigned int mutex_get_recursive_lock_depth(struct recursive_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);
58 void mutex_unlock_recursive_debug(struct recursive_mutex *m, const char *fname,
63 void mutex_lock_recursive_debug(struct recursive_mutex *m, const char *fname,
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);
75 void mutex_unlock_recursive(struct recursive_mutex *m);
76 void mutex_lock_recursive(struct recursive_mutex *m);
79 struct condvar {
81 struct mutex *m;
85 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);
92 void condvar_broadcast_debug(struct condvar *cv, const char *fname, int lineno);
95 void condvar_wait_debug(struct condvar *cv, struct mutex *m,
103 TEE_Result condvar_wait_timeout_debug(struct condvar *cv, struct mutex *m,
109 void condvar_signal(struct condvar *cv);
110 void condvar_broadcast(struct condvar *cv);
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()