Home
last modified time | relevance | path

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

12

/arch/hexagon/include/asm/
Datomic.h102 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
117 #define atomic_sub(i, v) atomic_sub_return(i, (v))
157 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
158 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, (v)) == 0)
163 #define atomic_dec_return(v) (atomic_sub_return(1, v))
/arch/avr32/include/asm/
Datomic.h32 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
62 result = atomic_sub_return(-i, v); in atomic_add_return()
171 #define atomic_sub(i, v) (void)atomic_sub_return(i, v)
176 #define atomic_dec_return(v) atomic_sub_return(1, v)
179 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
181 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
/arch/frv/include/asm/
Datomic.h64 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
88 extern int atomic_sub_return(int i, atomic_t *v);
104 atomic_sub_return(i, v); in atomic_sub()
114 atomic_sub_return(1, v); in atomic_dec()
117 #define atomic_dec_return(v) atomic_sub_return(1, (v))
120 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
121 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/mn10300/include/asm/
Datomic.h96 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
138 atomic_sub_return(i, v); in atomic_sub()
148 atomic_sub_return(1, v); in atomic_dec()
151 #define atomic_dec_return(v) atomic_sub_return(1, (v))
154 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
155 #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
66 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
82 #define atomic_dec_return(v) atomic_sub_return(1, (v))
/arch/sh/include/asm/
Datomic.h28 #define atomic_dec_return(v) atomic_sub_return(1, (v))
31 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
32 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
Datomic-grb.h63 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
Datomic-llsc.h62 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
Datomic-irq.h42 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
/arch/xtensa/include/asm/
Datomic.h131 static inline int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() function
159 #define atomic_sub_and_test(i,v) (atomic_sub_return((i),(v)) == 0)
191 #define atomic_dec_return(v) atomic_sub_return(1,(v))
201 #define atomic_dec_and_test(v) (atomic_sub_return(1,(v)) == 0)
Drwsem.h85 tmp = atomic_sub_return(1,(atomic_t *)(&sem->count)); in __up_read()
96 if (atomic_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/arch/frv/lib/
Datomic-ops.S110 # int atomic_sub_return(int i, atomic_t *v)
113 .globl atomic_sub_return symbol
114 .type atomic_sub_return,@function
115 atomic_sub_return: label
128 .size atomic_sub_return, .-atomic_sub_return
/arch/sparc/include/asm/
Datomic_32.h36 #define atomic_sub_return(i, v) (__atomic_add_return(-(int)(i), (v))) macro
53 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
/arch/h8300/include/asm/
Datomic.h32 static __inline__ int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
42 #define atomic_sub(i, v) atomic_sub_return(i, v)
43 #define atomic_sub_and_test(i,v) (atomic_sub_return(i, v) == 0)
/arch/s390/include/asm/
Datomic.h64 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
68 #define atomic_sub(_i, _v) atomic_sub_return(_i, _v)
69 #define atomic_sub_and_test(_i, _v) (atomic_sub_return(_i, _v) == 0)
70 #define atomic_dec(_v) atomic_sub_return(1, _v)
71 #define atomic_dec_return(_v) atomic_sub_return(1, _v)
72 #define atomic_dec_and_test(_v) (atomic_sub_return(1, _v) == 0)
/arch/arm/include/asm/
Datomic.h93 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
172 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
184 #define atomic_sub(i, v) (void) atomic_sub_return(i, v)
227 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
229 #define atomic_dec_return(v) (atomic_sub_return(1, v))
230 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
/arch/ia64/include/asm/
Datomic.h165 #define atomic_sub_return(i,v) \ macro
189 #define atomic_dec_return(v) atomic_sub_return(1, (v))
194 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
195 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
202 #define atomic_sub(i,v) atomic_sub_return((i), (v))
/arch/alpha/include/asm/
Datomic.h134 static __inline__ long atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() function
232 #define atomic_dec_return(v) atomic_sub_return(1,(v))
238 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
244 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/m32r/include/asm/
Datomic.h79 static __inline__ int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
119 #define atomic_sub(i,v) ((void) atomic_sub_return((i), (v)))
130 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
/arch/m68k/include/asm/
Datomic.h92 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
125 static inline int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() function
166 #define atomic_dec_return(v) atomic_sub_return(1, (v))
/arch/blackfin/include/asm/
Datomic.h26 #define atomic_sub_return(i, v) __raw_atomic_update_asm(&(v)->counter, -(i)) macro
/arch/x86/include/asm/
Datomic.h201 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() function
207 #define atomic_dec_return(v) (atomic_sub_return(1, v))
/arch/mips/include/asm/
Datomic.h183 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() function
329 #define atomic_dec_return(v) atomic_sub_return(1, (v))
341 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0)
361 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
/arch/frv/kernel/
Dfrv_ksyms.c66 EXPORT_SYMBOL(atomic_sub_return);
/arch/parisc/include/asm/
Datomic.h124 #define atomic_sub_return(i,v) (__atomic_add_return(-(i),(v))) macro
142 #define atomic_sub_and_test(i,v) (atomic_sub_return((i),(v)) == 0)

12