Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/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-4.4.14/include/asm-generic/
Drwsem.h29 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
60 tmp = atomic_long_add_return_acquire(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_release(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-4.4.14/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-4.4.14/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-4.4.14/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()
145 : "er" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock()
182 : "a" (sem), "1" (-RWSEM_ACTIVE_WRITE_BIAS) in __up_write()
/linux-4.4.14/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-4.4.14/arch/s390/include/asm/
Drwsem.h47 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
97 tmp = RWSEM_ACTIVE_WRITE_BIAS; in __down_write_nested()
131 : "Q" (sem->count), "d" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock()
164 tmp = -RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
/linux-4.4.14/kernel/locking/
Drwsem-xadd.c266 RWSEM_ACTIVE_WRITE_BIAS) == RWSEM_WAITING_BIAS) { in rwsem_try_write_lock()
289 count + RWSEM_ACTIVE_WRITE_BIAS); in rwsem_try_write_lock_unqueued()
444 count = rwsem_atomic_update(-RWSEM_ACTIVE_WRITE_BIAS, sem); in rwsem_down_write_failed()