Home
last modified time | relevance | path

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

/linux/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/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/tools/testing/selftests/bpf/progs/
H A Dbpf_arena_spin_lock.h220 } while (!atomic_try_cmpxchg_acquire(&lock->val, &old, new)); in arena_fetch_set_pending_acquire()
240 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in arena_spin_trylock()
501 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in arena_spin_lock()
/linux/kernel/
H A Dkexec_internal.h27 return atomic_try_cmpxchg_acquire(&__kexec_lock, &old, 1); in kexec_trylock()
/linux/tools/testing/selftests/bpf/
H A Dbpf_atomic.h137 #define atomic_try_cmpxchg_acquire(p, pold, new) \ macro
/linux/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/rust/kernel/sync/
H A Datomic.rs457 T::Repr::atomic_try_cmpxchg_acquire(&self.0, &mut tmp, new) in try_cmpxchg()
/linux/rust/helpers/
H A Datomic.c436 return atomic_try_cmpxchg_acquire(v, old, new); in rust_helper_atomic_try_cmpxchg_acquire()
/linux/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