Home
last modified time | relevance | path

Searched refs:RWSEM_ACTIVE_WRITE_BIAS (Results 1 – 9 of 9) sorted by relevance

/linux-2.6.39/arch/xtensa/include/asm/
Drwsem.h25 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
59 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
61 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
72 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
96 if (atomic_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-2.6.39/arch/powerpc/include/asm/
Drwsem.h29 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
60 tmp = atomic_long_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_nested()
62 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
76 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
97 if (unlikely(atomic_long_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-2.6.39/arch/sh/include/asm/
Drwsem.h20 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
54 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
56 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
67 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
91 if (atomic_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-2.6.39/arch/sparc/include/asm/
Drwsem.h21 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
52 tmp = atomic64_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_nested()
54 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
68 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
89 if (unlikely(atomic64_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-2.6.39/arch/alpha/include/asm/
Drwsem.h22 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
71 sem->count += RWSEM_ACTIVE_WRITE_BIAS; in __down_write()
84 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __down_write()
96 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
131 sem->count -= RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
146 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __up_write()
/linux-2.6.39/arch/x86/include/asm/
Drwsem.h58 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
115 : "a" (sem), "1" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_nested()
130 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
168 : "a" (sem), "1" (-RWSEM_ACTIVE_WRITE_BIAS) in __up_write()
/linux-2.6.39/arch/ia64/include/asm/
Drwsem.h35 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
59 new = old + RWSEM_ACTIVE_WRITE_BIAS; in __down_write()
88 new = old - RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
117 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
/linux-2.6.39/arch/s390/include/asm/
Drwsem.h58 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
126 tmp = RWSEM_ACTIVE_WRITE_BIAS; in __down_write_nested()
176 : "Q" (sem->count), "d" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock()
217 tmp = -RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
/linux-2.6.39/lib/
Drwsem.c79 adjustment = RWSEM_ACTIVE_WRITE_BIAS; in __rwsem_do_wake()
204 adjustment == -RWSEM_ACTIVE_WRITE_BIAS) in rwsem_down_failed_common()
237 -RWSEM_ACTIVE_WRITE_BIAS); in rwsem_down_write_failed()