Lines Matching refs:rw
139 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock() argument
143 prefetchw(&rw->lock); in arch_write_lock()
152 : "r" (&rw->lock), "r" (0x80000000) in arch_write_lock()
158 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock() argument
162 prefetchw(&rw->lock); in arch_write_trylock()
170 : "r" (&rw->lock), "r" (0x80000000) in arch_write_trylock()
182 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock() argument
189 : "r" (&rw->lock), "r" (0) in arch_write_unlock()
207 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock() argument
211 prefetchw(&rw->lock); in arch_read_lock()
221 : "r" (&rw->lock) in arch_read_lock()
227 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock() argument
233 prefetchw(&rw->lock); in arch_read_unlock()
241 : "r" (&rw->lock) in arch_read_unlock()
248 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock() argument
252 prefetchw(&rw->lock); in arch_read_trylock()
260 : "r" (&rw->lock) in arch_read_trylock()