Lines Matching refs:rwlock

194 int __sched rt_read_trylock(rwlock_t *rwlock)  in rt_read_trylock()  argument
198 ret = rwbase_read_trylock(&rwlock->rwbase); in rt_read_trylock()
200 rwlock_acquire_read(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_read_trylock()
208 int __sched rt_write_trylock(rwlock_t *rwlock) in rt_write_trylock() argument
212 ret = rwbase_write_trylock(&rwlock->rwbase); in rt_write_trylock()
214 rwlock_acquire(&rwlock->dep_map, 0, 1, _RET_IP_); in rt_write_trylock()
222 void __sched rt_read_lock(rwlock_t *rwlock) in rt_read_lock() argument
225 rwlock_acquire_read(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_read_lock()
226 rwbase_read_lock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_read_lock()
232 void __sched rt_write_lock(rwlock_t *rwlock) in rt_write_lock() argument
235 rwlock_acquire(&rwlock->dep_map, 0, 0, _RET_IP_); in rt_write_lock()
236 rwbase_write_lock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_write_lock()
242 void __sched rt_read_unlock(rwlock_t *rwlock) in rt_read_unlock() argument
244 rwlock_release(&rwlock->dep_map, _RET_IP_); in rt_read_unlock()
247 rwbase_read_unlock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_read_unlock()
251 void __sched rt_write_unlock(rwlock_t *rwlock) in rt_write_unlock() argument
253 rwlock_release(&rwlock->dep_map, _RET_IP_); in rt_write_unlock()
256 rwbase_write_unlock(&rwlock->rwbase); in rt_write_unlock()
260 int __sched rt_rwlock_is_contended(rwlock_t *rwlock) in rt_rwlock_is_contended() argument
262 return rw_base_is_contended(&rwlock->rwbase); in rt_rwlock_is_contended()
267 void __rt_rwlock_init(rwlock_t *rwlock, const char *name, in __rt_rwlock_init() argument
270 debug_check_no_locks_freed((void *)rwlock, sizeof(*rwlock)); in __rt_rwlock_init()
271 lockdep_init_map_wait(&rwlock->dep_map, name, key, 0, LD_WAIT_CONFIG); in __rt_rwlock_init()