Home
last modified time | relevance | path

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

/Linux-v4.19/include/asm-generic/
Drwsem.h30 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
71 tmp = atomic_long_add_return_acquire(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
73 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write()
81 tmp = atomic_long_add_return_acquire(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_killable()
83 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_killable()
94 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
115 if (unlikely(atomic_long_sub_return_release(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/Linux-v4.19/arch/alpha/include/asm/
Drwsem.h23 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
86 sem->count.counter += RWSEM_ACTIVE_WRITE_BIAS; in ___down_write()
99 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in ___down_write()
126 RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
161 sem->count.counter -= RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
176 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __up_write()
/Linux-v4.19/arch/x86/include/asm/
Drwsem.h59 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
135 : [sem] "a" (sem), "[tmp]" (RWSEM_ACTIVE_WRITE_BIAS) \
175 : [inc] "er" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock()
212 : [sem] "a" (sem), "[tmp]" (-RWSEM_ACTIVE_WRITE_BIAS) in __up_write()
/Linux-v4.19/arch/ia64/include/asm/
Drwsem.h36 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) macro
76 new = old + RWSEM_ACTIVE_WRITE_BIAS; in ___down_write()
122 new = old - RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
151 RWSEM_UNLOCKED_VALUE, RWSEM_ACTIVE_WRITE_BIAS); in __down_write_trylock()
/Linux-v4.19/kernel/locking/
Drwsem-xadd.c315 RWSEM_ACTIVE_WRITE_BIAS : in rwsem_try_write_lock()
316 RWSEM_ACTIVE_WRITE_BIAS + RWSEM_WAITING_BIAS; in rwsem_try_write_lock()
340 count + RWSEM_ACTIVE_WRITE_BIAS); in rwsem_try_write_lock_unqueued()
504 count = atomic_long_sub_return(RWSEM_ACTIVE_WRITE_BIAS, &sem->count); in __rwsem_down_write_failed_common()