Home
last modified time | relevance | path

Searched refs:atomic_try_cmpxchg_acquire (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/kernel/locking/
H A Dqrwlock.c77 atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)) in queued_write_lock_slowpath()
86 } while (!atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)); in queued_write_lock_slowpath()
H A Drwbase_rt.c62 if (likely(atomic_try_cmpxchg_acquire(&rwb->readers, &r, r + 1))) in rwbase_read_trylock()
H A Dqspinlock_paravirt.h145 } while (!atomic_try_cmpxchg_acquire (&lock->val, &old, new)); in trylock_clear_pending()
/linux-6.15/include/asm-generic/
H A Dqspinlock.h97 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in queued_spin_trylock()
111 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in queued_spin_lock()
H A Dqrwlock.h71 return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, in queued_write_trylock()
98 if (likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED))) in queued_write_lock()
H A Drqspinlock.h178 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) { in res_spin_lock()
/linux-6.15/tools/testing/selftests/bpf/
H A Dbpf_arena_spin_lock.h211 } while (!atomic_try_cmpxchg_acquire(&lock->val, &old, new)); in arena_fetch_set_pending_acquire()
231 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in arena_spin_trylock()
492 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in arena_spin_lock()
H A Dbpf_atomic.h137 #define atomic_try_cmpxchg_acquire(p, pold, new) \ macro
/linux-6.15/kernel/
H A Dkexec_internal.h27 return atomic_try_cmpxchg_acquire(&__kexec_lock, &old, 1); in kexec_trylock()
/linux-6.15/include/linux/
H A Drefcount.h230 } while (!atomic_try_cmpxchg_acquire(&r->refs, &old, old + i)); in __refcount_add_not_zero_limited_acquire()
H A Dclosure.h298 } while (!atomic_try_cmpxchg_acquire(&cl->remaining, &old, old + 1)); in closure_get_not_zero()
/linux-6.15/fs/bcachefs/
H A Dsix.c198 } while (!atomic_try_cmpxchg_acquire(&lock->state, &old, old + l[type].lock_val)); in __do_six_trylock()
677 } while (!atomic_try_cmpxchg_acquire(&lock->state, &old, new)); in six_lock_tryupgrade()
/linux-6.15/include/linux/atomic/
H A Datomic-instrumented.h1298 atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new) in atomic_try_cmpxchg_acquire() function