Home
last modified time | relevance | path

Searched refs:cnts (Results 1 – 2 of 2) sorted by relevance

/include/asm-generic/
Dqrwlock.h42 int cnts; in queued_read_trylock() local
44 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() local
63 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 …]
Dqrwlock_types.h15 atomic_t cnts; member
30 { .cnts = ATOMIC_INIT(0), }, \