Searched refs:READER_BIAS (Results 1 – 3 of 3) sorted by relevance
8 #define READER_BIAS (1U << 31) macro18 .readers = ATOMIC_INIT(READER_BIAS), \25 atomic_set(&(rwbase)->readers, READER_BIAS); \31 return atomic_read(&rwb->readers) != READER_BIAS; in rw_base_is_locked()
195 (void)atomic_add_return_release(READER_BIAS - bias, &rwb->readers); in __rwbase_write_unlock()247 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_lock()289 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_trylock()
1498 return count < 0 && count != READER_BIAS; in is_rwsem_reader_owned()