Lines Matching refs:rw_semaphore
21 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem);
22 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem);
23 extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *);
28 struct rw_semaphore {
54 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
56 static inline void init_rwsem(struct rw_semaphore *sem)
66 static inline void __down_read(struct rw_semaphore *sem)
93 static inline int __down_read_trylock(struct rw_semaphore *sem)
108 static inline void __down_write(struct rw_semaphore *sem)
135 static inline int __down_write_trylock(struct rw_semaphore *sem)
144 static inline void __up_read(struct rw_semaphore *sem)
169 static inline void __up_write(struct rw_semaphore *sem)
195 static inline void rwsem_atomic_add(long val, struct rw_semaphore *sem)
214 static inline long rwsem_atomic_update(long val, struct rw_semaphore *sem)