Home
last modified time | relevance | path

Searched refs:RW_LOCK_BIAS (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/sh/include/asm/
H A Dspinlock-cas.h68 while (__sl_cas(&rw->lock, RW_LOCK_BIAS, 0) != RW_LOCK_BIAS); in arch_write_lock()
73 __sl_cas(&rw->lock, 0, RW_LOCK_BIAS); in arch_write_unlock()
86 return __sl_cas(&rw->lock, RW_LOCK_BIAS, 0) == RW_LOCK_BIAS; in arch_write_trylock()
H A Dspinlock-llsc.h137 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_lock()
147 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_unlock()
191 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_trylock()
195 return (oldval > (RW_LOCK_BIAS - 1)); in arch_write_trylock()
H A Dspinlock_types.h19 #define RW_LOCK_BIAS 0x01000000 macro
20 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }