Searched refs:RW_LOCK_BIAS (Results 1 – 3 of 3) sorted by relevance
68 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()
137 : "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()
19 #define RW_LOCK_BIAS 0x01000000 macro20 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }