Searched refs:RWSEM_WAITING_BIAS (Results 1 – 5 of 5) sorted by relevance
164 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 …]
21 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro23 #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()
28 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro30 #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()
57 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro59 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)232 : [sem] "a" (sem), [inc] "er" (-RWSEM_WAITING_BIAS) in __downgrade_write()
34 #define RWSEM_WAITING_BIAS (-0x100000000L) macro36 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)165 new = old - RWSEM_WAITING_BIAS; in __downgrade_write()