Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 4 of 4) sorted by relevance

/kernel/locking/
Drwsem.c70 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument
80 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument
142 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner()
148 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner()
157 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags()
172 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
181 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned()
189 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
210 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
221 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
[all …]
Dpercpu-rwsem.c37 unsigned long settime, struct percpu_rw_semaphore *sem) in _trace_android_vh_record_pcpu_rwsem_time_early()
43 int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, in __percpu_init_rwsem()
62 void percpu_free_rwsem(struct percpu_rw_semaphore *sem) in percpu_free_rwsem()
77 static bool __percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_read_trylock()
113 static inline bool __percpu_down_write_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_write_trylock()
121 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock()
153 struct percpu_rw_semaphore *sem = key; in percpu_rwsem_wake_function() local
170 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait()
197 bool __sched __percpu_down_read(struct percpu_rw_semaphore *sem, bool try) in __percpu_down_read()
225 bool percpu_is_read_locked(struct percpu_rw_semaphore *sem) in percpu_is_read_locked()
[all …]
Dsemaphore.c54 void __sched down(struct semaphore *sem) in down()
77 int __sched down_interruptible(struct semaphore *sem) in down_interruptible()
104 int __sched down_killable(struct semaphore *sem) in down_killable()
134 int __sched down_trylock(struct semaphore *sem) in down_trylock()
159 int __sched down_timeout(struct semaphore *sem, long timeout) in down_timeout()
183 void __sched up(struct semaphore *sem) in up()
209 static inline int __sched ___down_common(struct semaphore *sem, long state, in ___down_common()
240 static inline int __sched __down_common(struct semaphore *sem, long state, in __down_common()
252 static noinline void __sched __down(struct semaphore *sem) in __down()
257 static noinline int __sched __down_interruptible(struct semaphore *sem) in __down_interruptible()
[all …]
/kernel/
Dtaskstats.c55 struct rw_semaphore sem; member