Lines Matching refs:name

49 #define ATOMIC_TYPE(name, type) \  argument
50 struct atomic_##name { \
53 typedef struct atomic_##name atomic_##name##_t;
55 #define ATOMIC_STORE(name, type, sz) \ argument
56 static inline void atomic_store_##name(volatile atomic_##name##_t *atomic, type val) { \
60 #define ATOMIC_LOAD(name, type, sz) \ argument
61 static inline type atomic_load_##name(volatile atomic_##name##_t *atomic) { \
66 #define ATOMIC_INC_PREFIX(name, type, sz) \ argument
67 static inline type atomic_inc_prefix_##name(volatile atomic_##name##_t *atomic) { \
72 #define ATOMIC_DEC_PREFIX(name, type, sz) \ argument
73 static inline type atomic_dec_prefix_##name(volatile atomic_##name##_t *atomic) { \
78 #define ATOMIC_INC_POSTFIX(name, type, sz) \ argument
79 static inline type atomic_inc_postfix_##name(volatile atomic_##name##_t *atomic) { \
84 #define ATOMIC_DEC_POSTFIX(name, type, sz) \ argument
85 static inline type atomic_dec_postfix_##name(volatile atomic_##name##_t *atomic) { \
90 #define ATOMIC_ADD(name, type, sz) \ argument
91 static inline type atomic_add_##name(volatile atomic_##name##_t *atomic, type val) { \
96 #define ATOMIC_SUB(name, type, sz) \ argument
97 static inline type atomic_sub_##name(volatile atomic_##name##_t *atomic, type val) { \
101 #define ATOMIC_MAKE(name, type, sz) \ argument
102 ATOMIC_TYPE(name, type) \
103 ATOMIC_STORE(name, type, sz) \
104 ATOMIC_LOAD(name, type, sz) \
105 ATOMIC_INC_PREFIX(name, type, sz) \
106 ATOMIC_DEC_PREFIX(name, type, sz) \
107 ATOMIC_INC_POSTFIX(name, type, sz) \
108 ATOMIC_DEC_POSTFIX(name, type, sz) \
109 ATOMIC_ADD(name, type, sz) \
110 ATOMIC_SUB(name, type, sz)