Lines Matching refs:SIX_LOCK_read
33 #define SIX_LOCK_WAITING_read (1U << (28 + SIX_LOCK_read))
52 [SIX_LOCK_read] = {
68 .unlock_wakeup = SIX_LOCK_read,
154 if (type == SIX_LOCK_read && lock->readers) { in __do_six_trylock()
188 ret = -1 - SIX_LOCK_read; in __do_six_trylock()
227 if (saw_one && lock_type != SIX_LOCK_read) in __six_lock_wakeup()
303 six_acquire(&lock->dep_map, 1, type == SIX_LOCK_read, ip); in six_trylock_ip()
495 six_lock_wakeup(lock, atomic_read(&lock->state), SIX_LOCK_read); in six_lock_slowpath()
550 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, ip); in six_lock_ip_waiter()
572 if (type == SIX_LOCK_read && in do_six_unlock_type()
581 if (type != SIX_LOCK_read) in do_six_unlock_type()
644 six_lock_increment(lock, SIX_LOCK_read); in six_lock_downgrade()
670 new -= l[SIX_LOCK_read].lock_val; in six_lock_tryupgrade()
705 if (to == SIX_LOCK_read) { in six_trylock_convert()
727 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, _RET_IP_); in six_lock_increment()
732 case SIX_LOCK_read: in six_lock_increment()
768 six_lock_wakeup(lock, state, SIX_LOCK_read); in six_lock_wakeup_all()
789 ret.n[SIX_LOCK_read] = !lock->readers in six_lock_counts()