Lines Matching refs:SIX_LOCK_write
34 #define SIX_LOCK_WAITING_write (1U << (28 + SIX_LOCK_write))
56 .unlock_wakeup = SIX_LOCK_write,
64 [SIX_LOCK_write] = {
123 EBUG_ON(type == SIX_LOCK_write && lock->owner != task); in __do_six_trylock()
124 EBUG_ON(type == SIX_LOCK_write && in __do_six_trylock()
169 ret = -1 - SIX_LOCK_write; in __do_six_trylock()
171 } else if (type == SIX_LOCK_write && lock->readers) { in __do_six_trylock()
194 if (!ret || (type == SIX_LOCK_write && !try)) { in __do_six_trylock()
206 EBUG_ON(type == SIX_LOCK_write && try && ret <= 0 && in __do_six_trylock()
268 if (lock_type == SIX_LOCK_write && (state & SIX_LOCK_HELD_read)) in six_lock_wakeup()
302 if (type != SIX_LOCK_write) in six_trylock_ip()
357 if (type == SIX_LOCK_write) in six_optimistic_spin()
417 if (type == SIX_LOCK_write) { in six_lock_slowpath()
504 if (ret && type == SIX_LOCK_write) { in six_lock_slowpath()
552 if (type != SIX_LOCK_write) in six_lock_ip_waiter()
558 if (ret && type != SIX_LOCK_write) in six_lock_ip_waiter()
611 EBUG_ON(type == SIX_LOCK_write && in six_unlock_ip()
613 EBUG_ON((type == SIX_LOCK_write || in six_unlock_ip()
617 if (type != SIX_LOCK_write) in six_unlock_ip()
696 EBUG_ON(to == SIX_LOCK_write || from == SIX_LOCK_write); in six_trylock_convert()
742 case SIX_LOCK_write: in six_lock_increment()
766 six_lock_wakeup(lock, state, SIX_LOCK_write); in six_lock_wakeup_all()
790 ret.n[SIX_LOCK_write] = !!(atomic_read(&lock->state) & SIX_LOCK_HELD_write); in six_lock_counts()