Searched refs:RWSEM_READER_BIAS (Results 1 – 1 of 1) sorted by relevance
123 #define RWSEM_READER_BIAS (1UL << RWSEM_READER_SHIFT) macro124 #define RWSEM_READER_MASK (~(RWSEM_READER_BIAS - 1))243 *cntp = atomic_long_add_return_acquire(RWSEM_READER_BIAS, &sem->count); in rwsem_read_trylock()457 adjustment = RWSEM_READER_BIAS; in rwsem_mark_wake()524 adjustment = woken * RWSEM_READER_BIAS - adjustment; in rwsem_mark_wake()998 long adjustment = -RWSEM_READER_BIAS; in rwsem_down_read_slowpath()1287 tmp + RWSEM_READER_BIAS)) { in __down_read_trylock()1347 tmp = atomic_long_add_return_release(-RWSEM_READER_BIAS, &sem->count); in __up_read()1397 -RWSEM_WRITER_LOCKED+RWSEM_READER_BIAS, &sem->count); in __downgrade_write()