Searched refs:RW_LOCK_BIAS (Results 1 – 18 of 18) sorted by relevance
/linux-2.6.39/arch/arm/include/asm/ ! |
D | locks.h | 81 #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/ ! |
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-2.6.39/arch/cris/include/arch-v32/arch/ ! |
D | spinlock.h | 6 #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/ ! |
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-2.6.39/arch/x86/lib/ ! |
D | rwlock_64.S | 12 addl $RW_LOCK_BIAS,(%rdi) 15 cmpl $RW_LOCK_BIAS,(%rdi) 18 subl $RW_LOCK_BIAS,(%rdi)
|
D | semaphore_32.S | 42 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/ ! |
D | spinlock.h | 246 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()
|
D | rwlock.h | 4 #define RW_LOCK_BIAS 0x01000000 macro
|
D | spinlock_types.h | 18 #define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
|
/linux-2.6.39/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 | 149 #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/ ! |
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-2.6.39/arch/blackfin/mach-bf561/ ! |
D | atomic.S | 474 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);
|