Home
last modified time | relevance | path

Searched refs:__atomic_cmpxchg_bool (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/arch/s390/include/asm/
Dspinlock.h61 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()
Datomic_ops.h195 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/
Dspinlock.c142 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()