Lines Matching refs:counter
23 typedef struct { volatile int counter; } atomic_t; member
25 typedef struct { volatile long long counter; } atomic64_t; member
27 typedef struct { volatile long counter; } atomic64_t; member
35 #define atomic_read(v) ((v)->counter)
36 #define atomic_set(v, i) (((v)->counter) = (i))
45 v->counter += i; in atomic_add()
54 v->counter -= i; in atomic_sub()
63 v->counter += 1; in atomic_inc()
72 v->counter -= 1; in atomic_dec()
82 val = v->counter; in atomic_dec_and_test()
83 v->counter = val -= 1; in atomic_dec_and_test()
95 val = v->counter; in atomic_add_negative()
96 v->counter = val += i; in atomic_add_negative()
118 v->counter += i; in atomic64_add()
127 v->counter -= i; in atomic64_sub()
138 v->counter += i; in atomic64_add()
147 v->counter -= i; in atomic64_sub()
157 v->counter += 1; in atomic64_inc()
166 v->counter -= 1; in atomic64_dec()