Home
last modified time | relevance | path

Searched refs:atomic_try_cmpxchg_relaxed (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/lib/
Drefcount.c79 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &val, new)); in refcount_add_not_zero_checked()
134 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &val, new)); in refcount_inc_not_zero_checked()
/Linux-v5.4/include/linux/
Datomic-fallback.h906 #ifndef atomic_try_cmpxchg_relaxed
910 #define atomic_try_cmpxchg_relaxed atomic_try_cmpxchg macro
952 #ifndef atomic_try_cmpxchg_relaxed
954 atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) in atomic_try_cmpxchg_relaxed() function
962 #define atomic_try_cmpxchg_relaxed atomic_try_cmpxchg_relaxed macro
971 bool ret = atomic_try_cmpxchg_relaxed(v, old, new); in atomic_try_cmpxchg_acquire()
983 return atomic_try_cmpxchg_relaxed(v, old, new); in atomic_try_cmpxchg_release()
994 ret = atomic_try_cmpxchg_relaxed(v, old, new); in atomic_try_cmpxchg()
/Linux-v5.4/kernel/locking/
Dqspinlock.c535 if (atomic_try_cmpxchg_relaxed(&lock->val, &val, _Q_LOCKED_VAL)) in queued_spin_lock_slowpath()
/Linux-v5.4/include/asm-generic/
Datomic-instrumented.h724 atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) in atomic_try_cmpxchg_relaxed() function
730 #define atomic_try_cmpxchg_relaxed atomic_try_cmpxchg_relaxed macro
Datomic-long.h948 return atomic_try_cmpxchg_relaxed(v, (int *)old, new); in atomic_long_try_cmpxchg_relaxed()
/Linux-v5.4/fs/afs/
Dcell.c655 deleted = atomic_try_cmpxchg_relaxed(&cell->usage, &usage, 0); in afs_manage_cell()