Searched refs:cnts (Results 1 – 2 of 2) sorted by relevance
42 int cnts; in queued_read_trylock() local44 cnts = atomic_read(&lock->cnts); in queued_read_trylock()45 if (likely(!(cnts & _QW_WMASK))) { in queued_read_trylock()46 cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_trylock()47 if (likely(!(cnts & _QW_WMASK))) in queued_read_trylock()49 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_trylock()61 int cnts; in queued_write_trylock() local63 cnts = atomic_read(&lock->cnts); in queued_write_trylock()64 if (unlikely(cnts)) in queued_write_trylock()67 return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, in queued_write_trylock()[all …]
15 atomic_t cnts; member30 { .cnts = ATOMIC_INIT(0), }, \