Searched refs:RWSEM_WAITING_BIAS (Results 1 – 9 of 9) sorted by relevance
150 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 …]
20 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro22 #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()
56 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro58 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)202 : "a" (sem), "er" (-RWSEM_WAITING_BIAS) in __downgrade_write()
23 #define RWSEM_WAITING_BIAS (-0x00010000) macro25 #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()
19 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro21 #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()
27 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1) macro29 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)124 tmp = atomic_long_add_return_release(-RWSEM_WAITING_BIAS, in __downgrade_write()
18 #define RWSEM_WAITING_BIAS (-0x00010000) macro20 #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()
33 #define RWSEM_WAITING_BIAS (-0x100000000L) macro35 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)131 new = old - RWSEM_WAITING_BIAS; in __downgrade_write()
45 #define RWSEM_WAITING_BIAS (-0x0000000100000000L) macro47 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)186 tmp = -RWSEM_WAITING_BIAS; in __downgrade_write()