Searched refs:__atomic_cmpxchg_bool (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/arch/s390/include/asm/ |
D | spinlock.h | 61 return likely(__atomic_cmpxchg_bool(&lp->lock, 0, SPINLOCK_LOCKVAL)); in arch_spin_trylock_once() 121 if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) in arch_write_lock() 137 __atomic_cmpxchg_bool(&rw->cnts, old, old + 1)); in arch_read_trylock() 145 return !old && __atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000); in arch_write_trylock()
|
D | atomic_ops.h | 195 static __always_inline bool __atomic_cmpxchg_bool(int *ptr, int old, int new) in __atomic_cmpxchg_bool() function 221 static __always_inline bool __atomic_cmpxchg_bool(int *ptr, int old, int new) in __atomic_cmpxchg_bool() function
|
/linux-6.12.1/arch/s390/lib/ |
D | spinlock.c | 142 if (__atomic_cmpxchg_bool(&lp->lock, old, new)) in arch_spin_lock_queued() 150 if (__atomic_cmpxchg_bool(&lp->lock, old, new)) in arch_spin_lock_queued() 187 if (__atomic_cmpxchg_bool(&lp->lock, old, new)) in arch_spin_lock_queued() 261 if (__atomic_cmpxchg_bool(&lp->lock, 0, cpu)) in arch_spin_trylock_retry() 303 __atomic_cmpxchg_bool(&rw->cnts, old, old | 0x10000)) in arch_write_lock_wait()
|