Searched refs:RW_LOCK_BIAS (Results 1 – 11 of 11) sorted by relevance
| /linux-4.4.14/arch/mn10300/include/asm/ |
| D | spinlock.h | 110 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS) 136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_lock() 137 atomic_add(RW_LOCK_BIAS, count); in arch_write_lock() 161 atomic_add(RW_LOCK_BIAS, count); in arch_write_unlock() 179 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock() 181 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()
|
| D | spinlock_types.h | 18 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
| D | rwlock.h | 23 #define RW_LOCK_BIAS 0x01000000 macro
|
| /linux-4.4.14/arch/sh/include/asm/ |
| D | spinlock.h | 109 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS) 158 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_lock() 168 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_unlock() 212 : "r" (&rw->lock), "r" (RW_LOCK_BIAS) in arch_write_trylock() 216 return (oldval > (RW_LOCK_BIAS - 1)); in arch_write_trylock()
|
| D | spinlock_types.h | 18 #define RW_LOCK_BIAS 0x01000000 macro 19 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
| /linux-4.4.14/arch/m32r/include/asm/ |
| D | spinlock_types.h | 18 #define RW_LOCK_BIAS 0x01000000 macro 21 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
| D | spinlock.h | 150 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS) 314 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock() 316 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()
|
| /linux-4.4.14/arch/blackfin/include/asm/ |
| D | rwlock.h | 4 #define RW_LOCK_BIAS 0x01000000 macro
|
| D | spinlock_types.h | 26 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
| D | spinlock.h | 62 return __raw_uncached_fetch_asm(&rw->lock) == RW_LOCK_BIAS; in arch_write_can_lock()
|
| /linux-4.4.14/arch/blackfin/mach-bf561/ |
| D | atomic.S | 481 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);
|