Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/locking/
Drwsem-xadd.c150 if (unlikely(oldcount < RWSEM_WAITING_BIAS)) { in __rwsem_do_wake()
179 adjustment -= RWSEM_WAITING_BIAS; in __rwsem_do_wake()
227 adjustment += RWSEM_WAITING_BIAS; in rwsem_down_read_failed()
238 if (count == RWSEM_WAITING_BIAS || in rwsem_down_read_failed()
239 (count > RWSEM_WAITING_BIAS && in rwsem_down_read_failed()
264 if (count == RWSEM_WAITING_BIAS && in rwsem_try_write_lock()
265 cmpxchg_acquire(&sem->count, RWSEM_WAITING_BIAS, in rwsem_try_write_lock()
266 RWSEM_ACTIVE_WRITE_BIAS) == RWSEM_WAITING_BIAS) { in rwsem_try_write_lock()
268 rwsem_atomic_update(RWSEM_WAITING_BIAS, sem); in rwsem_try_write_lock()
285 if (!(count == 0 || count == RWSEM_WAITING_BIAS)) in rwsem_try_write_lock_unqueued()
[all …]
/linux-4.4.14/arch/alpha/include/asm/
Drwsem.h20 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro
22 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
161 sem->count -= RWSEM_WAITING_BIAS; in __downgrade_write()
174 :"Ir" (-RWSEM_WAITING_BIAS), "m" (sem->count) : "memory"); in __downgrade_write()
/linux-4.4.14/arch/x86/include/asm/
Drwsem.h56 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro
58 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
202 : "a" (sem), "er" (-RWSEM_WAITING_BIAS) in __downgrade_write()
/linux-4.4.14/arch/xtensa/include/asm/
Drwsem.h23 #define RWSEM_WAITING_BIAS (-0x00010000) macro
25 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
117 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
/linux-4.4.14/arch/sparc/include/asm/
Drwsem.h19 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro
21 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
109 tmp = atomic64_add_return(-RWSEM_WAITING_BIAS, (atomic64_t *)(&sem->count)); in __downgrade_write()
/linux-4.4.14/include/asm-generic/
Drwsem.h27 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro
29 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
124 tmp = atomic_long_add_return_release(-RWSEM_WAITING_BIAS, in __downgrade_write()
/linux-4.4.14/arch/sh/include/asm/
Drwsem.h18 #define RWSEM_WAITING_BIAS (-0x00010000) macro
20 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
112 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
/linux-4.4.14/arch/ia64/include/asm/
Drwsem.h33 #define RWSEM_WAITING_BIAS (-0x100000000L) macro
35 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
131 new = old - RWSEM_WAITING_BIAS; in __downgrade_write()
/linux-4.4.14/arch/s390/include/asm/
Drwsem.h45 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro
47 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
186 tmp = -RWSEM_WAITING_BIAS; in __downgrade_write()