Home
last modified time | relevance | path

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

/linux-4.4.14/arch/mn10300/include/asm/
Dspinlock.h110 #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()
Dspinlock_types.h18 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
Drwlock.h23 #define RW_LOCK_BIAS 0x01000000 macro
/linux-4.4.14/arch/sh/include/asm/
Dspinlock.h109 #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()
Dspinlock_types.h18 #define RW_LOCK_BIAS 0x01000000 macro
19 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
/linux-4.4.14/arch/m32r/include/asm/
Dspinlock_types.h18 #define RW_LOCK_BIAS 0x01000000 macro
21 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
Dspinlock.h150 #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/
Drwlock.h4 #define RW_LOCK_BIAS 0x01000000 macro
Dspinlock_types.h26 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
Dspinlock.h62 return __raw_uncached_fetch_asm(&rw->lock) == RW_LOCK_BIAS; in arch_write_can_lock()
/linux-4.4.14/arch/blackfin/mach-bf561/
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);