Home
last modified time | relevance | path

Searched refs:atomic_add_return (Results 1 – 25 of 75) sorted by relevance

123

/linux-2.6.39/include/asm-generic/
Datomic.h56 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
93 return atomic_add_return(i, v) < 0; in atomic_add_negative()
98 atomic_add_return(i, v); in atomic_add()
108 atomic_add_return(1, v); in atomic_inc()
117 #define atomic_inc_return(v) atomic_add_return(1, (v))
121 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
/linux-2.6.39/arch/frv/include/asm/
Datomic.h43 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
87 extern int atomic_add_return(int i, atomic_t *v);
94 return atomic_add_return(i, v) < 0; in atomic_add_negative()
99 atomic_add_return(i, v); in atomic_add()
109 atomic_add_return(1, v); in atomic_inc()
118 #define atomic_inc_return(v) atomic_add_return(1, (v))
122 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
/linux-2.6.39/arch/avr32/include/asm/
Datomic.h57 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
179 #define atomic_add(i, v) (void)atomic_add_return(i, v)
184 #define atomic_inc_return(v) atomic_add_return(1, v)
187 #define atomic_inc_and_test(v) (atomic_add_return(1, v) == 0)
189 #define atomic_add_negative(i, v) (atomic_add_return(i, v) < 0)
/linux-2.6.39/kernel/
Drtmutex-tester.c64 td->event = atomic_add_return(1, &rttest_event); in handle_op()
94 td->event = atomic_add_return(1, &rttest_event); in handle_op()
96 td->event = atomic_add_return(1, &rttest_event); in handle_op()
107 td->event = atomic_add_return(1, &rttest_event); in handle_op()
109 td->event = atomic_add_return(1, &rttest_event); in handle_op()
118 td->event = atomic_add_return(1, &rttest_event); in handle_op()
120 td->event = atomic_add_return(1, &rttest_event); in handle_op()
167 td->event = atomic_add_return(1, &rttest_event); in schedule_rt_mutex_test()
187 td->event = atomic_add_return(1, &rttest_event); in schedule_rt_mutex_test()
199 td->event = atomic_add_return(1, &rttest_event); in schedule_rt_mutex_test()
/linux-2.6.39/arch/xtensa/include/asm/
Drwsem.h32 if (atomic_add_return(1,(atomic_t *)(&sem->count)) > 0) in __down_read()
59 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
117 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
128 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
Datomic.h112 static inline int atomic_add_return(int i, atomic_t * v) in atomic_add_return() function
175 #define atomic_inc_return(v) atomic_add_return(1,(v))
211 #define atomic_inc_and_test(v) (atomic_add_return(1,(v)) == 0)
222 #define atomic_add_negative(i,v) (atomic_add_return((i),(v)) < 0)
/linux-2.6.39/arch/mn10300/include/asm/
Datomic.h162 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
233 return atomic_add_return(i, v) < 0; in atomic_add_negative()
238 atomic_add_return(i, v); in atomic_add()
248 atomic_add_return(1, v); in atomic_inc()
257 #define atomic_inc_return(v) atomic_add_return(1, (v))
261 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
/linux-2.6.39/arch/tile/include/asm/
Datomic.h45 #define atomic_sub_return(i, v) atomic_add_return((int)(-(i)), (v))
72 #define atomic_inc_return(v) atomic_add_return(1, (v))
122 #define atomic_add_negative(i, v) (atomic_add_return((i), (v)) < 0)
/linux-2.6.39/arch/frv/lib/
Datomic-ops.S88 # int atomic_add_return(int i, atomic_t *v)
91 .globl atomic_add_return
92 .type atomic_add_return,@function
93 atomic_add_return: label
106 .size atomic_add_return, .-atomic_add_return
/linux-2.6.39/arch/sh/include/asm/
Drwsem.h54 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
112 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
128 return atomic_add_return(delta, (atomic_t *)(&sem->count)); in rwsem_atomic_update()
Datomic.h27 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
29 #define atomic_inc_return(v) atomic_add_return(1, (v))
Datomic-grb.h42 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
Datomic-llsc.h45 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
/linux-2.6.39/arch/s390/include/asm/
Datomic.h54 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
58 #define atomic_add(_i, _v) atomic_add_return(_i, _v)
59 #define atomic_add_negative(_i, _v) (atomic_add_return(_i, _v) < 0)
60 #define atomic_inc(_v) atomic_add_return(1, _v)
61 #define atomic_inc_return(_v) atomic_add_return(1, _v)
62 #define atomic_inc_and_test(_v) (atomic_add_return(1, _v) == 0)
/linux-2.6.39/arch/arm/include/asm/
Datomic.h53 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
156 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
168 #define atomic_add(i, v) (void) atomic_add_return(i, v)
225 #define atomic_inc_and_test(v) (atomic_add_return(1, v) == 0)
227 #define atomic_inc_return(v) (atomic_add_return(1, v))
231 #define atomic_add_negative(i,v) (atomic_add_return(i, v) < 0)
/linux-2.6.39/arch/ia64/include/asm/
Datomic.h127 #define atomic_add_return(i,v) \ macro
158 return atomic_add_return(i, v) < 0; in atomic_add_negative()
192 #define atomic_inc_return(v) atomic_add_return(1, (v))
198 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
203 #define atomic_add(i,v) atomic_add_return((i), (v))
/linux-2.6.39/arch/blackfin/include/asm/
Datomic.h49 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
90 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
92 #define atomic_inc_return(v) atomic_add_return(1,(v))
/linux-2.6.39/arch/alpha/include/asm/
Datomic.h96 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
230 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
236 #define atomic_inc_return(v) atomic_add_return(1,(v))
242 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
/linux-2.6.39/arch/h8300/include/asm/
Datomic.h19 static __inline__ int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
29 #define atomic_add(i, v) atomic_add_return(i, v)
30 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
/linux-2.6.39/arch/x86/include/asm/
Datomic.h173 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
207 return atomic_add_return(-i, v); in atomic_sub_return()
210 #define atomic_inc_return(v) (atomic_add_return(1, v))
/linux-2.6.39/arch/m32r/include/asm/
Datomic.h47 static __inline__ int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
109 #define atomic_add(i,v) ((void) atomic_add_return((i), (v)))
236 #define atomic_add_negative(i,v) (atomic_add_return((i), (v)) < 0)
/linux-2.6.39/arch/m68k/include/asm/
Datomic.h67 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() function
100 static inline int atomic_add_return(int i, atomic_t * v) in atomic_add_return() function
156 #define atomic_inc_return(v) atomic_add_return(1, (v))
/linux-2.6.39/arch/sparc/include/asm/
Datomic_32.h35 #define atomic_add_return(i, v) (__atomic_add_return( (int)(i), (v))) macro
40 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
/linux-2.6.39/arch/cris/include/asm/
Datomic.h39 static inline int atomic_add_return(int i, volatile atomic_t *v) in atomic_add_return() function
49 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
/linux-2.6.39/include/linux/
Djump_label_ref.h11 if (atomic_add_return(1, key) == 1) in jump_label_inc()

123