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()
506 six_lock_wakeup(lock, atomic_read(&lock->state), SIX_LOCK_read); in six_lock_slowpath()
553 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, ip); in six_lock_ip_waiter()
575 if (type == SIX_LOCK_read && in do_six_unlock_type()
584 if (type != SIX_LOCK_read) in do_six_unlock_type()
640 six_lock_increment(lock, SIX_LOCK_read); in six_lock_downgrade()
666 new -= l[SIX_LOCK_read].lock_val; in six_lock_tryupgrade()
701 if (to == SIX_LOCK_read) { in six_trylock_convert()
723 six_acquire(&lock->dep_map, 0, type == SIX_LOCK_read, _RET_IP_); in six_lock_increment()
728 case SIX_LOCK_read: in six_lock_increment()
764 six_lock_wakeup(lock, state, SIX_LOCK_read); in six_lock_wakeup_all()
785 ret.n[SIX_LOCK_read] = !lock->readers in six_lock_counts()