Home
last modified time | relevance | path

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

/linux-2.6.39/arch/arm/include/asm/
Dlocks.h81 #define RW_LOCK_BIAS 0x01000000 macro
97 : "r" (ptr), "I" (RW_LOCK_BIAS) \
115 : "r" (ptr), "I" (RW_LOCK_BIAS) \
209 #define RW_LOCK_BIAS 0x01000000 macro
226 : "r" (ptr), "I" (RW_LOCK_BIAS) \
245 : "r" (ptr), "I" (RW_LOCK_BIAS) \
/linux-2.6.39/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-2.6.39/arch/cris/include/arch-v32/arch/
Dspinlock.h6 #define RW_LOCK_BIAS 0x01000000 macro
66 return (x)->lock == RW_LOCK_BIAS; in arch_write_can_lock()
80 while (rw->lock != RW_LOCK_BIAS); in arch_write_lock()
95 while (rw->lock != RW_LOCK_BIAS); in arch_write_unlock()
96 rw->lock = RW_LOCK_BIAS; in arch_write_unlock()
116 if (rw->lock == RW_LOCK_BIAS) { in arch_write_trylock()
/linux-2.6.39/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-2.6.39/arch/x86/lib/
Drwlock_64.S12 addl $RW_LOCK_BIAS,(%rdi)
15 cmpl $RW_LOCK_BIAS,(%rdi)
18 subl $RW_LOCK_BIAS,(%rdi)
Dsemaphore_32.S42 addl $ RW_LOCK_BIAS,(%eax)
44 cmpl $ RW_LOCK_BIAS,(%eax)
47 subl $ RW_LOCK_BIAS,(%eax)
/linux-2.6.39/arch/x86/include/asm/
Dspinlock.h246 return (lock)->lock == RW_LOCK_BIAS; in arch_write_can_lock()
264 ::LOCK_PTR_REG (rw), "i" (RW_LOCK_BIAS) : "memory"); in arch_write_lock()
281 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock()
283 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()
295 : "+m" (rw->lock) : "i" (RW_LOCK_BIAS) : "memory"); in arch_write_unlock()
Drwlock.h4 #define RW_LOCK_BIAS 0x01000000 macro
Dspinlock_types.h18 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
/linux-2.6.39/arch/m32r/include/asm/
Dspinlock_types.h18 #define RW_LOCK_BIAS 0x01000000 macro
21 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
Dspinlock.h149 #define arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS)
313 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock()
315 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()
/linux-2.6.39/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-2.6.39/arch/blackfin/mach-bf561/
Datomic.S474 r3.l = lo(RW_LOCK_BIAS);
475 r3.h = hi(RW_LOCK_BIAS);
526 r2.l = lo(RW_LOCK_BIAS);
527 r2.h = hi(RW_LOCK_BIAS);
562 r3.l = lo(RW_LOCK_BIAS);
563 r3.h = hi(RW_LOCK_BIAS);