Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 25 of 35) sorted by relevance

12

/arch/sh/include/asm/
Datomic.h39 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
57 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/m68k/include/asm/
Datomic.h120 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
125 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
190 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/sh/kernel/
Dftrace.c122 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag()
162 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag()
167 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
/arch/x86/include/asm/
Datomic.h175 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
201 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
Dmutex_32.h104 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
Dmutex_64.h121 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
/arch/mn10300/include/asm/
Datomic.h122 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \
128 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) macro
/arch/sparc/include/asm/
Datomic_64.h72 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
82 old = atomic_cmpxchg((v), c, c + (a)); in ATOMIC_OPS()
Datomic_32.h24 int atomic_cmpxchg(atomic_t *, int, int);
/arch/xtensa/include/asm/
Datomic.h226 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
245 old = atomic_cmpxchg((v), c, c + (a)); in ATOMIC_OPS()
/arch/m32r/include/asm/
Datomic.h215 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
234 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/frv/include/asm/
Datomic.h179 #define atomic_cmpxchg(v, old, new) (cmpxchg(&(v)->counter, old, new)) macro
191 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/sparc/lib/
Datomic32.c61 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
74 EXPORT_SYMBOL(atomic_cmpxchg);
/arch/arm64/include/asm/
Datomic.h92 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new) in ATOMIC_OPS()
121 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) in __atomic_add_unless()
/arch/arc/include/asm/
Dcmpxchg.h81 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
Datomic.h164 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c)\
/arch/tile/lib/
Dspinlock_64.c28 return atomic_cmpxchg((atomic_t *)lock, -1, -1); in arch_spin_read_noalloc()
/arch/arm/include/asm/
Datomic.h83 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new) in atomic_cmpxchg() function
164 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
183 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) in __atomic_add_unless()
/arch/tile/include/asm/
Datomic.h137 static inline int atomic_cmpxchg(atomic_t *v, int o, int n) in atomic_cmpxchg() function
/arch/ia64/include/asm/
Datomic.h118 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) macro
132 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/hexagon/include/asm/
Datomic.h78 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/arch/metag/include/asm/
Datomic_lnkget.h115 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
Datomic_lock1.h96 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/arch/parisc/include/asm/
Datomic.h74 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
93 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/arch/avr32/include/asm/
Datomic.h170 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro

12