Searched refs:atomic_long_try_cmpxchg (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/tty/ |
D | tty_ldsem.c | 113 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 138 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 194 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() 268 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) in down_write_failed() 364 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_READ_BIAS)) { in ldsem_down_read_trylock() 390 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_WRITE_BIAS)) { in ldsem_down_write_trylock()
|
/Linux-v4.19/include/asm-generic/ |
D | atomic-long.h | 105 #define atomic_long_try_cmpxchg(l, old, new) \ macro
|