Searched refs:RWSEM_ACTIVE_WRITE_BIAS (Results 1 – 7 of 7) sorted by relevance
/arch/xtensa/include/asm/ |
D | rwsem.h | 25 #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/ |
D | rwsem.h | 20 #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/ |
D | rwsem.h | 21 #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/ |
D | rwsem.h | 58 #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/ |
D | rwsem.h | 22 #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/ |
D | rwsem.h | 35 #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/ |
D | rwsem.h | 58 #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()
|