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()
243 void __sched rt_write_lock_nested(rwlock_t *rwlock, int subclass) in rt_write_lock_nested() argument
246 rwlock_acquire(&rwlock->dep_map, subclass, 0, _RET_IP_); in rt_write_lock_nested()
247 rwbase_write_lock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_write_lock_nested()
254 void __sched rt_read_unlock(rwlock_t *rwlock) in rt_read_unlock() argument
256 rwlock_release(&rwlock->dep_map, _RET_IP_); in rt_read_unlock()
259 rwbase_read_unlock(&rwlock->rwbase, TASK_RTLOCK_WAIT); in rt_read_unlock()
263 void __sched rt_write_unlock(rwlock_t *rwlock) in rt_write_unlock() argument
265 rwlock_release(&rwlock->dep_map, _RET_IP_); in rt_write_unlock()
268 rwbase_write_unlock(&rwlock->rwbase); in rt_write_unlock()
273 void __rt_rwlock_init(rwlock_t *rwlock, const char *name, in __rt_rwlock_init() argument
276 debug_check_no_locks_freed((void *)rwlock, sizeof(*rwlock)); in __rt_rwlock_init()
277 lockdep_init_map_wait(&rwlock->dep_map, name, key, 0, LD_WAIT_CONFIG); in __rt_rwlock_init()