Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg_relaxed (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/tools/include/linux/
Datomic.h8 #ifndef atomic_cmpxchg_relaxed
9 #define atomic_cmpxchg_relaxed atomic_cmpxchg macro
Drefcount.h89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
/Linux-v5.4/kernel/locking/
Dqrwlock.c78 } while (atomic_cmpxchg_relaxed(&lock->cnts, _QW_WAITING, in queued_write_lock_slowpath()
Dqspinlock.c230 old = atomic_cmpxchg_relaxed(&lock->val, val, new); in xchg_tail()
/Linux-v5.4/arch/arm/include/asm/
Datomic.h108 static inline int atomic_cmpxchg_relaxed(atomic_t *ptr, int old, int new) in atomic_cmpxchg_relaxed() function
128 #define atomic_cmpxchg_relaxed atomic_cmpxchg_relaxed macro
/Linux-v5.4/include/linux/
Datomic-fallback.h864 #ifndef atomic_cmpxchg_relaxed
867 #define atomic_cmpxchg_relaxed atomic_cmpxchg macro
874 int ret = atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg_acquire()
886 return atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg_release()
897 ret = atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg()
957 r = atomic_cmpxchg_relaxed(v, o, new); in atomic_try_cmpxchg_relaxed()
/Linux-v5.4/arch/riscv/include/asm/
Datomic.h307 #define atomic_cmpxchg_relaxed atomic_cmpxchg_relaxed in ATOMIC_OPS() macro
/Linux-v5.4/tools/memory-model/
Dlinux-kernel.def109 atomic_cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W)
/Linux-v5.4/arch/powerpc/include/asm/
Datomic.h196 #define atomic_cmpxchg_relaxed(v, o, n) \ macro
/Linux-v5.4/include/asm-generic/
Datomic-instrumented.h681 atomic_cmpxchg_relaxed(atomic_t *v, int old, int new) in atomic_cmpxchg_relaxed() function
686 #define atomic_cmpxchg_relaxed atomic_cmpxchg_relaxed macro
Datomic-long.h924 return atomic_cmpxchg_relaxed(v, old, new); in atomic_long_cmpxchg_relaxed()
/Linux-v5.4/drivers/iommu/
Darm-smmu-v3.c1020 } while (atomic_cmpxchg_relaxed(&cmdq->lock, val, val + 1) != val); in arm_smmu_cmdq_shared_lock()
1041 __ret = !atomic_cmpxchg_relaxed(&cmdq->lock, 0, INT_MIN); \