Home
last modified time | relevance | path

Searched refs:atomic_sub_return (Results 1 – 25 of 26) sorted by relevance

12

/arch/metag/include/asm/
Datomic.h23 #define atomic_dec_return(v) atomic_sub_return(1, (v))
36 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
37 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/sh/include/asm/
Datomic.h36 #define atomic_dec_return(v) atomic_sub_return(1, (v))
39 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
40 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/mn10300/include/asm/
Datomic.h137 atomic_sub_return(1, v); in atomic_dec()
140 #define atomic_dec_return(v) atomic_sub_return(1, (v))
143 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
144 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/tile/include/asm/
Datomic.h47 #define atomic_sub_return(i, v) atomic_add_return((int)(-(i)), (v)) macro
68 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
84 #define atomic_dec_return(v) atomic_sub_return(1, (v))
/arch/hexagon/include/asm/
Datomic.h206 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
207 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, (v)) == 0)
211 #define atomic_dec_return(v) (atomic_sub_return(1, v))
/arch/openrisc/include/asm/
Datomic.h87 #define atomic_sub_return atomic_sub_return in ATOMIC_OP_RETURN() macro
/arch/sparc/include/asm/
Datomic_32.h46 #define atomic_sub_return(i, v) (atomic_add_return(-(int)(i), (v))) macro
65 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
Datomic_64.h53 #define atomic_dec_return(v) atomic_sub_return(1, v) in ATOMIC_OPS()
70 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0) in ATOMIC_OPS()
73 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0) in ATOMIC_OPS()
/arch/xtensa/include/asm/
Datomic.h209 #define atomic_sub_and_test(i,v) (atomic_sub_return((i),(v)) == 0) in ATOMIC_OPS()
241 #define atomic_dec_return(v) atomic_sub_return(1,(v)) in ATOMIC_OPS()
251 #define atomic_dec_and_test(v) (atomic_sub_return(1,(v)) == 0) in ATOMIC_OPS()
/arch/s390/include/asm/
Datomic.h63 #define atomic_sub_return(_i, _v) atomic_add_return(-(int)(_i), _v) macro
65 #define atomic_sub_and_test(_i, _v) (atomic_sub_return(_i, _v) == 0)
67 #define atomic_dec_return(_v) atomic_sub_return(1, _v)
68 #define atomic_dec_and_test(_v) (atomic_sub_return(1, _v) == 0)
/arch/arm64/include/asm/
Datomic.h72 #define atomic_sub_return atomic_sub_return macro
77 #define atomic_dec_return(v) atomic_sub_return(1, (v))
126 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
/arch/frv/include/asm/
Datomic.h53 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
73 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
74 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/h8300/include/asm/
Datomic.h73 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
76 #define atomic_dec_return(v) atomic_sub_return(1, v)
/arch/ia64/include/asm/
Datomic.h80 #define atomic_sub_return(i,v) \ macro
305 #define atomic_dec_return(v) atomic_sub_return(1, (v))
310 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
311 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
318 #define atomic_sub(i,v) (void)atomic_sub_return((i), (v))
/arch/alpha/include/asm/
Datomic.h291 #define atomic_dec_return(v) atomic_sub_return(1,(v))
297 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
303 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/x86/include/asm/
Datomic.h167 static __always_inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
173 #define atomic_dec_return(v) (atomic_sub_return(1, v))
/arch/arc/include/asm/
Datomic.h290 #define atomic_sub_return(i, v) atomic_add_return(-(i), (v))
345 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
347 #define atomic_dec_return(v) atomic_sub_return(1, (v))
348 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
/arch/blackfin/include/asm/
Datomic.h30 #define atomic_sub_return(i, v) __raw_atomic_add_asm(&(v)->counter, -(i)) macro
/arch/mips/include/asm/
Datomic.h301 #define atomic_dec_return(v) atomic_sub_return(1, (v))
313 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
333 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/m32r/include/asm/
Datomic.h143 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) in ATOMIC_OPS()
/arch/arm/include/asm/
Datomic.h261 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
264 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
/arch/m68k/include/asm/
Datomic.h193 #define atomic_dec_return(v) atomic_sub_return(1, (v))
/arch/x86/kernel/cpu/mcheck/
Dmce_intel.c190 if (!atomic_sub_return(1, &cmci_storm_on_cpus)) in cmci_intel_adjust_timer()
/arch/parisc/include/asm/
Datomic.h183 #define atomic_sub_and_test(i,v) (atomic_sub_return((i),(v)) == 0)
/arch/powerpc/include/asm/
Datomic.h283 #define atomic_sub_and_test(a, v) (atomic_sub_return((a), (v)) == 0)

12