Lines Matching refs:counter
6 typedef struct { volatile int counter; } atomic_t; member
8 typedef struct { volatile long long counter; } atomic64_t; member
10 typedef struct { volatile long counter; } atomic64_t; member
15 #define atomic_read(v) ((v)->counter)
16 #define atomic_set(v, i) ((v)->counter = (i))
25 v->counter += i; in atomic_add()
34 v->counter -= i; in atomic_sub()
43 ++v->counter; in atomic_inc()
52 --v->counter; in atomic_dec()
62 val = v->counter; in atomic_dec_and_test()
63 v->counter = val -= 1; in atomic_dec_and_test()
75 val = v->counter; in atomic_add_negative()
76 v->counter = val += i; in atomic_add_negative()
98 v->counter += i; in atomic64_add()
107 v->counter -= i; in atomic64_sub()
118 v->counter += i; in atomic64_add()
127 v->counter -= i; in atomic64_sub()
137 v->counter += 1; in atomic64_inc()
146 v->counter -= 1; in atomic64_dec()