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))250 *cntp = atomic_long_add_return_acquire(RWSEM_READER_BIAS, &sem->count); in rwsem_read_trylock()455 adjustment = RWSEM_READER_BIAS; in rwsem_mark_wake()522 adjustment = woken * RWSEM_READER_BIAS - adjustment; in rwsem_mark_wake()996 long adjustment = -RWSEM_READER_BIAS; in rwsem_down_read_slowpath()1285 tmp + RWSEM_READER_BIAS)) { in __down_read_trylock()1345 tmp = atomic_long_add_return_release(-RWSEM_READER_BIAS, &sem->count); in __up_read()1395 -RWSEM_WRITER_LOCKED+RWSEM_READER_BIAS, &sem->count); in __downgrade_write()