Lines Matching +full:0 +full:x30000
50 return lock.lock == 0; in arch_spin_value_unlocked()
55 return READ_ONCE(lp->lock) != 0; in arch_spin_is_locked()
61 return likely(__atomic_cmpxchg_bool(&lp->lock, 0, SPINLOCK_LOCKVAL)); in arch_spin_trylock_once()
89 ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */ in arch_spin_unlock()
90 " sth %1,%0\n" in arch_spin_unlock()
92 : "d" (0) : "cc", "memory"); in arch_spin_unlock()
117 if (old & 0xffff0000) in arch_read_lock()
128 if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) in arch_write_lock()
134 __atomic_add_barrier(-0x30000, &rw->cnts); in arch_write_unlock()
143 return (!(old & 0xffff0000) && in arch_read_trylock()
152 return !old && __atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000); in arch_write_trylock()