Home
last modified time | relevance | path

Searched refs:atomic64_cmpxchg (Results 1 – 22 of 22) sorted by relevance

/linux-4.4.14/include/linux/
Datomic.h335 #define atomic64_cmpxchg_relaxed atomic64_cmpxchg
336 #define atomic64_cmpxchg_acquire atomic64_cmpxchg
337 #define atomic64_cmpxchg_release atomic64_cmpxchg
343 __atomic_op_acquire(atomic64_cmpxchg, __VA_ARGS__)
348 __atomic_op_release(atomic64_cmpxchg, __VA_ARGS__)
351 #ifndef atomic64_cmpxchg
352 #define atomic64_cmpxchg(...) \ macro
353 __atomic_op_fence(atomic64_cmpxchg, __VA_ARGS__)
/linux-4.4.14/arch/x86/include/asm/
Datomic64_64.h164 static inline long atomic64_cmpxchg(atomic64_t *v, long old, long new) in atomic64_cmpxchg() function
190 old = atomic64_cmpxchg((v), c, c + (a)); in atomic64_add_unless()
215 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
Datomic64_32.h74 static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n) in atomic64_cmpxchg() function
320 while ((old = atomic64_cmpxchg(v, c, c c_op i)) != c) \
/linux-4.4.14/arch/tile/include/asm/
Datomic.h183 static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, in atomic64_cmpxchg() function
198 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
/linux-4.4.14/arch/parisc/include/asm/
Datomic.h230 #define atomic64_cmpxchg(v, o, n) \ macro
250 old = atomic64_cmpxchg((v), c, c + (a)); in atomic64_add_unless()
275 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
/linux-4.4.14/arch/s390/include/asm/
Datomic.h256 static inline long long atomic64_cmpxchg(atomic64_t *v, in atomic64_cmpxchg() function
288 old = atomic64_cmpxchg(v, c, c + i); in ATOMIC64_OP()
305 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
/linux-4.4.14/arch/sparc/include/asm/
Datomic_64.h94 #define atomic64_cmpxchg(v, o, n) \ macro
105 old = atomic64_cmpxchg((v), c, c + (a)); in atomic64_add_unless()
/linux-4.4.14/lib/
Datomic64.c128 long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n) in atomic64_cmpxchg() function
141 EXPORT_SYMBOL(atomic64_cmpxchg);
Datomic64_test.c123 BUG_ON(atomic64_cmpxchg(&v, v0, v1) != v0); in test_atomic64()
128 BUG_ON(atomic64_cmpxchg(&v, v2, v1) != v0); in test_atomic64()
/linux-4.4.14/include/asm-generic/
Datomic64.h44 extern long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n);
Dlocal64.h82 #define local64_cmpxchg(l, o, n) atomic64_cmpxchg((&(l)->a), (o), (n))
/linux-4.4.14/arch/ia64/include/asm/
Datomic.h137 #define atomic64_cmpxchg(v, old, new) \ macro
164 old = atomic64_cmpxchg((v), c, c + (a)); in atomic64_add_unless()
/linux-4.4.14/arch/mips/include/asm/
Datomic.h499 #define atomic64_cmpxchg(v, o, n) \ macro
519 old = atomic64_cmpxchg((v), c, c + (a)); in atomic64_add_unless()
/linux-4.4.14/arch/x86/kernel/
Dpvclock.c112 last = atomic64_cmpxchg(&last_value, last, ret); in pvclock_clocksource_read()
/linux-4.4.14/arch/frv/include/asm/
Datomic.h166 #define atomic64_cmpxchg(v, old, new) (__cmpxchg_64(old, new, &(v)->counter)) macro
/linux-4.4.14/arch/arm64/include/asm/
Datomic.h136 #define atomic64_cmpxchg atomic_cmpxchg macro
/linux-4.4.14/arch/alpha/include/asm/
Datomic.h131 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS() macro
/linux-4.4.14/arch/powerpc/include/asm/
Datomic.h422 #define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/linux-4.4.14/net/core/
Dsock_diag.c30 atomic64_cmpxchg(&sk->sk_cookie, 0, res); in sock_gen_cookie()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_guc_submission.c226 db_ret.value_qw = atomic64_cmpxchg((atomic64_t *)db, in guc_ring_doorbell()
/linux-4.4.14/kernel/time/
Dposix-cpu-timers.c209 if (atomic64_cmpxchg(cputime, curr_cputime, sum_cputime) != curr_cputime) in __update_gt_cputime()
/linux-4.4.14/fs/xfs/
Dxfs_log.c160 head_val = atomic64_cmpxchg(head, old, new); in xlog_grant_sub_space()
189 head_val = atomic64_cmpxchg(head, old, new); in xlog_grant_add_space()