Lines Matching +defs:v +defs:x
49 # define atomic_read(x) ((x)->atomic) argument
50 # define atomic_set(x, val) ((x)->atomic = (val)) argument
51 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1)) argument
52 # define atomic_inc_return(x) (__sync_add_and_fetch (&(x)->atomic, 1)) argument
53 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0) argument
54 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v))) argument
55 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v))) argument
56 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv) argument
69 # define atomic_read(x) AO_load_full(&(x)->atomic) argument
70 # define atomic_set(x, val) AO_store_full(&(x)->atomic, (val)) argument
71 # define atomic_inc(x) ((void) AO_fetch_and_add1_full(&(x)->atomic)) argument
72 # define atomic_inc_return(x) (AO_fetch_and_add1_full(&(x)->atomic) + 1) argument
73 # define atomic_add(x, v) ((void) AO_fetch_and_add_full(&(x)->atomic, (v))) argument
74 # define atomic_dec(x, v) ((void) AO_fetch_and_add_full(&(x)->atomic, -(v))) argument
75 # define atomic_dec_and_test(x) (AO_fetch_and_sub1_full(&(x)->atomic) == 1) argument
76 # define atomic_cmpxchg(x, oldv, newv) AO_compare_and_swap_full(&(x)->atomic, oldv, newv) argument
93 # define atomic_read(x) (int) ((x)->atomic) argument
94 # define atomic_set(x, val) ((x)->atomic = (LIBDRM_ATOMIC_TYPE)(val)) argument
95 # define atomic_inc(x) (atomic_inc_uint (&(x)->atomic)) argument
96 # define atomic_inc_return(x) (atomic_inc_uint_nv(&(x)->atomic)) argument
97 # define atomic_dec_and_test(x) (atomic_dec_uint_nv(&(x)->atomic) == 0) argument
98 # define atomic_add(x, v) (atomic_add_int(&(x)->atomic, (v))) argument
99 # define atomic_dec(x, v) (atomic_add_int(&(x)->atomic, -(v))) argument
100 # define atomic_cmpxchg(x, oldv, newv) atomic_cas_uint (&(x)->atomic, oldv, newv) argument
108 static inline int atomic_add_unless(atomic_t *v, int add, int unless) in atomic_add_unless()