Lines Matching full:l

14 #define local_read(l)	atomic_long_read(&(l)->a)  argument
15 #define local_set(l,i) atomic_long_set(&(l)->a, (i)) argument
16 #define local_inc(l) atomic_long_inc(&(l)->a) argument
17 #define local_dec(l) atomic_long_dec(&(l)->a) argument
18 #define local_add(i,l) atomic_long_add((i),(&(l)->a)) argument
19 #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) argument
21 static __inline__ long local_add_return(long i, local_t * l) in local_add_return() argument
33 :"=&r" (temp), "=m" (l->a.counter), "=&r" (result) in local_add_return()
34 :"Ir" (i), "m" (l->a.counter) : "memory"); in local_add_return()
38 static __inline__ long local_sub_return(long i, local_t * l) in local_sub_return() argument
50 :"=&r" (temp), "=m" (l->a.counter), "=&r" (result) in local_sub_return()
51 :"Ir" (i), "m" (l->a.counter) : "memory"); in local_sub_return()
55 #define local_cmpxchg(l, o, n) \ argument
56 (cmpxchg_local(&((l)->a.counter), (o), (n)))
57 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) argument
61 * @l: pointer of type local_t
62 * @a: the amount to add to l...
63 * @u: ...unless l is equal to u.
65 * Atomically adds @a to @l, so long as it was not @u.
66 * Returns non-zero if @l was not @u, and zero otherwise.
68 #define local_add_unless(l, a, u) \ argument
71 c = local_read(l); \
75 old = local_cmpxchg((l), c, c + (a)); \
82 #define local_inc_not_zero(l) local_add_unless((l), 1, 0) argument
84 #define local_add_negative(a, l) (local_add_return((a), (l)) < 0) argument
86 #define local_dec_return(l) local_sub_return(1,(l)) argument
88 #define local_inc_return(l) local_add_return(1,(l)) argument
90 #define local_sub_and_test(i,l) (local_sub_return((i), (l)) == 0) argument
92 #define local_inc_and_test(l) (local_add_return(1, (l)) == 0) argument
94 #define local_dec_and_test(l) (local_sub_return(1, (l)) == 0) argument
97 #define __local_inc(l) ((l)->a.counter++) argument
98 #define __local_dec(l) ((l)->a.counter++) argument
99 #define __local_add(i,l) ((l)->a.counter+=(i)) argument
100 #define __local_sub(i,l) ((l)->a.counter-=(i)) argument