Home
last modified time | relevance | path

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

/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()
/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()
/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()
/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()
/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()
/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()
/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()