Lines Matching refs:p
47 #define cmpxchg(p, old, new) __sync_val_compare_and_swap((p), old, new) argument
49 #define try_cmpxchg(p, pold, new) \ argument
52 __unqual_typeof(*(p)) __r = cmpxchg(p, __o, new); \
58 #define try_cmpxchg_relaxed(p, pold, new) try_cmpxchg(p, pold, new) argument
60 #define try_cmpxchg_acquire(p, pold, new) try_cmpxchg(p, pold, new) argument
87 #define smp_load_acquire(p) \ argument
89 __unqual_typeof(*(p)) __v = READ_ONCE(*(p)); \
96 #define smp_store_release(p, val) \ argument
101 WRITE_ONCE(*(p), val); \
104 #define smp_cond_load_relaxed_label(p, cond_expr, label) \ argument
106 typeof(p) __ptr = (p); \
107 __unqual_typeof(*(p)) VAL; \
109 VAL = (__unqual_typeof(*(p)))READ_ONCE(*__ptr); \
115 (typeof(*(p)))VAL; \
118 #define smp_cond_load_acquire_label(p, cond_expr, label) \ argument
120 __unqual_typeof(*p) __val = \
121 smp_cond_load_relaxed_label(p, cond_expr, label); \
123 (typeof(*(p)))__val; \
126 #define atomic_read(p) READ_ONCE((p)->counter) argument
128 #define atomic_cond_read_relaxed_label(p, cond_expr, label) \ argument
129 smp_cond_load_relaxed_label(&(p)->counter, cond_expr, label)
131 #define atomic_cond_read_acquire_label(p, cond_expr, label) \ argument
132 smp_cond_load_acquire_label(&(p)->counter, cond_expr, label)
134 #define atomic_try_cmpxchg_relaxed(p, pold, new) \ argument
135 try_cmpxchg_relaxed(&(p)->counter, pold, new)
137 #define atomic_try_cmpxchg_acquire(p, pold, new) \ argument
138 try_cmpxchg_acquire(&(p)->counter, pold, new)