Searched refs:RW_LOCK_BIAS (Results 1 - 11 of 11) sorted by relevance

/linux-4.1.27/arch/blackfin/include/asm/
H A Drwlock.h4 #define RW_LOCK_BIAS 0x01000000 macro
H A Dspinlock_types.h26 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
H A Dspinlock.h62 return __raw_uncached_fetch_asm(&rw->lock) == RW_LOCK_BIAS; arch_write_can_lock()
/linux-4.1.27/arch/sh/include/asm/
H A Dspinlock_types.h18 #define RW_LOCK_BIAS 0x01000000 macro
19 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
H A Dspinlock.h109 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS)
158 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) arch_write_lock()
168 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) arch_write_unlock()
212 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) arch_write_trylock()
216 return (oldval > (RW_LOCK_BIAS - 1)); arch_write_trylock()
/linux-4.1.27/arch/m32r/include/asm/
H A Dspinlock_types.h18 #define RW_LOCK_BIAS 0x01000000 macro
21 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
H A Dspinlock.h150 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS)
314 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) arch_write_trylock()
316 atomic_add(RW_LOCK_BIAS, count); arch_write_trylock()
/linux-4.1.27/arch/mn10300/include/asm/
H A Dspinlock_types.h18 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
H A Dspinlock.h110 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS)
136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) arch_write_lock()
137 atomic_add(RW_LOCK_BIAS, count); arch_write_lock()
161 atomic_add(RW_LOCK_BIAS, count); arch_write_unlock()
179 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) arch_write_trylock()
181 atomic_add(RW_LOCK_BIAS, count); arch_write_trylock()
H A Drwlock.h23 #define RW_LOCK_BIAS 0x01000000 macro
/linux-4.1.27/arch/blackfin/mach-bf561/
H A Datomic.S481 r3.l = lo(RW_LOCK_BIAS);
482 r3.h = hi(RW_LOCK_BIAS);
533 r2.l = lo(RW_LOCK_BIAS);
534 r2.h = hi(RW_LOCK_BIAS);
569 r3.l = lo(RW_LOCK_BIAS);
570 r3.h = hi(RW_LOCK_BIAS);

Completed in 203 milliseconds