Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/locking/
Drwsem-xadd.c164 if (unlikely(oldcount < RWSEM_WAITING_BIAS)) { in __rwsem_mark_wake()
172 RWSEM_WAITING_BIAS) in __rwsem_mark_wake()
215 adjustment -= RWSEM_WAITING_BIAS; in __rwsem_mark_wake()
237 adjustment += RWSEM_WAITING_BIAS; in __rwsem_down_read_failed_common()
249 if (count == RWSEM_WAITING_BIAS || in __rwsem_down_read_failed_common()
250 (count > RWSEM_WAITING_BIAS && in __rwsem_down_read_failed_common()
277 atomic_long_add(-RWSEM_WAITING_BIAS, &sem->count); in __rwsem_down_read_failed_common()
307 if (count != RWSEM_WAITING_BIAS) in rwsem_try_write_lock()
316 RWSEM_ACTIVE_WRITE_BIAS + RWSEM_WAITING_BIAS; in rwsem_try_write_lock()
318 if (atomic_long_cmpxchg_acquire(&sem->count, RWSEM_WAITING_BIAS, count) in rwsem_try_write_lock()
[all …]
/Linux-v4.19/arch/alpha/include/asm/
Drwsem.h21 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro
23 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
191 sem->count.counter -= RWSEM_WAITING_BIAS; in __downgrade_write()
204 :"Ir" (-RWSEM_WAITING_BIAS), "m" (sem->count) : "memory"); in __downgrade_write()
/Linux-v4.19/include/asm-generic/
Drwsem.h28 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro
30 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
134 tmp = atomic_long_add_return_release(-RWSEM_WAITING_BIAS, &sem->count); in __downgrade_write()
/Linux-v4.19/arch/x86/include/asm/
Drwsem.h57 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro
59 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
232 : [sem] "a" (sem), [inc] "er" (-RWSEM_WAITING_BIAS) in __downgrade_write()
/Linux-v4.19/arch/ia64/include/asm/
Drwsem.h34 #define RWSEM_WAITING_BIAS (-0x100000000L) macro
36 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
165 new = old - RWSEM_WAITING_BIAS; in __downgrade_write()