Home
last modified time | relevance | path

Searched refs:c_op (Results 1 – 16 of 16) sorted by relevance

/Linux-v4.19/arch/parisc/include/asm/
Datomic.h80 #define ATOMIC_OP(op, c_op) \ argument
86 v->counter c_op i; \
90 #define ATOMIC_OP_RETURN(op, c_op) \ argument
97 ret = (v->counter c_op i); \
103 #define ATOMIC_FETCH_OP(op, c_op) \ argument
111 v->counter c_op i; \
117 #define ATOMIC_OPS(op, c_op) \ argument
118 ATOMIC_OP(op, c_op) \
119 ATOMIC_OP_RETURN(op, c_op) \
120 ATOMIC_FETCH_OP(op, c_op)
[all …]
/Linux-v4.19/arch/sh/include/asm/
Datomic-irq.h13 #define ATOMIC_OP(op, c_op) \ argument
19 v->counter c_op i; \
23 #define ATOMIC_OP_RETURN(op, c_op) \ argument
30 temp c_op i; \
37 #define ATOMIC_FETCH_OP(op, c_op) \ argument
44 v->counter c_op i; \
50 #define ATOMIC_OPS(op, c_op) \ argument
51 ATOMIC_OP(op, c_op) \
52 ATOMIC_OP_RETURN(op, c_op) \
53 ATOMIC_FETCH_OP(op, c_op)
[all …]
/Linux-v4.19/arch/mips/include/asm/
Datomic.h55 #define ATOMIC_OP(op, c_op, asm_op) \ argument
74 v->counter c_op i; \
79 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
103 result c_op i; \
111 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
135 v->counter c_op i; \
142 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
143 ATOMIC_OP(op, c_op, asm_op) \
144 ATOMIC_OP_RETURN(op, c_op, asm_op) \
145 ATOMIC_FETCH_OP(op, c_op, asm_op)
[all …]
/Linux-v4.19/arch/arc/include/asm/
Datomic.h30 #define ATOMIC_OP(op, c_op, asm_op) \ argument
46 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
72 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
135 #define ATOMIC_OP(op, c_op, asm_op) \ argument
141 v->counter c_op i; \
145 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
156 temp c_op i; \
163 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
174 v->counter c_op i; \
182 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
[all …]
Dbitops.h31 #define BIT_OP(op, c_op, asm_op) \ argument
62 #define TEST_N_BIT_OP(op, c_op, asm_op) \ argument
109 #define BIT_OP(op, c_op, asm_op) \ argument
121 *m = temp c_op (1UL << (nr & 0x1f)); \
126 #define TEST_N_BIT_OP(op, c_op, asm_op) \ argument
135 *m = old c_op (1UL << (nr & 0x1f)); \
144 #define BIT_OP(op, c_op, asm_op) \ argument
162 #define TEST_N_BIT_OP(op, c_op, asm_op) \ argument
196 #define __BIT_OP(op, c_op, asm_op) \ argument
203 *m = temp c_op (1UL << (nr & 0x1f)); \
[all …]
/Linux-v4.19/include/asm-generic/
Datomic.h40 #define ATOMIC_OP(op, c_op) \ argument
46 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
50 #define ATOMIC_OP_RETURN(op, c_op) \ argument
56 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
59 return c c_op i; \
62 #define ATOMIC_FETCH_OP(op, c_op) \ argument
68 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
78 #define ATOMIC_OP(op, c_op) \ argument
84 v->counter = v->counter c_op i; \
88 #define ATOMIC_OP_RETURN(op, c_op) \ argument
[all …]
/Linux-v4.19/arch/m68k/include/asm/
Datomic.h34 #define ATOMIC_OP(op, c_op, asm_op) \ argument
42 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
57 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
74 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
81 t = (v->counter c_op i); \
87 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
95 v->counter c_op i; \
103 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
104 ATOMIC_OP(op, c_op, asm_op) \
105 ATOMIC_OP_RETURN(op, c_op, asm_op) \
[all …]
/Linux-v4.19/lib/
Datomic64.c73 #define ATOMIC64_OP(op, c_op) \ argument
80 v->counter c_op a; \
85 #define ATOMIC64_OP_RETURN(op, c_op) \ argument
93 val = (v->counter c_op a); \
99 #define ATOMIC64_FETCH_OP(op, c_op) \ argument
108 v->counter c_op a; \
114 #define ATOMIC64_OPS(op, c_op) \ argument
115 ATOMIC64_OP(op, c_op) \
116 ATOMIC64_OP_RETURN(op, c_op) \
117 ATOMIC64_FETCH_OP(op, c_op)
[all …]
Datomic64_test.c24 #define TEST(bit, op, c_op, val) \ argument
29 r c_op val; \
48 #define TEST_RETURN(bit, op, c_op, val) \ argument
52 r c_op val; \
57 #define TEST_FETCH(bit, op, c_op, val) \ argument
61 r c_op val; \
66 #define RETURN_FAMILY_TEST(bit, op, c_op, val) \ argument
68 FAMILY_TEST(TEST_RETURN, bit, op, c_op, val); \
71 #define FETCH_FAMILY_TEST(bit, op, c_op, val) \ argument
73 FAMILY_TEST(TEST_FETCH, bit, op, c_op, val); \
/Linux-v4.19/arch/h8300/include/asm/
Datomic.h20 #define ATOMIC_OP_RETURN(op, c_op) \ argument
27 ret = v->counter c_op i; \
32 #define ATOMIC_FETCH_OP(op, c_op) \ argument
40 v->counter c_op i; \
45 #define ATOMIC_OP(op, c_op) \ argument
51 v->counter c_op i; \
58 #define ATOMIC_OPS(op, c_op) \ argument
59 ATOMIC_OP(op, c_op) \
60 ATOMIC_FETCH_OP(op, c_op)
/Linux-v4.19/arch/ia64/include/asm/
Datomic.h31 #define ATOMIC_OP(op, c_op) \ argument
41 new = old c_op i; \
46 #define ATOMIC_FETCH_OP(op, c_op) \ argument
56 new = old c_op i; \
61 #define ATOMIC_OPS(op, c_op) \ argument
62 ATOMIC_OP(op, c_op) \
63 ATOMIC_FETCH_OP(op, c_op)
126 #define ATOMIC64_OP(op, c_op) \ argument
136 new = old c_op i; \
141 #define ATOMIC64_FETCH_OP(op, c_op) \ argument
[all …]
/Linux-v4.19/arch/arm/include/asm/
Datomic.h41 #define ATOMIC_OP(op, c_op, asm_op) \ argument
59 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
80 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
167 #define ATOMIC_OP(op, c_op, asm_op) \ argument
173 v->counter c_op i; \
177 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
184 v->counter c_op i; \
191 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument
199 v->counter c_op i; \
223 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dlocal.h30 #define LOCAL_OP(op, c_op) \ argument
36 l->v c_op i; \
40 #define LOCAL_OP_RETURN(op, c_op) \ argument
47 t = (l->v c_op a); \
53 #define LOCAL_OPS(op, c_op) \ argument
54 LOCAL_OP(op, c_op) \
55 LOCAL_OP_RETURN(op, c_op)
/Linux-v4.19/arch/riscv/include/asm/
Datomic.h119 #define ATOMIC_OP_RETURN(op, asm_op, c_op, I, asm_type, c_type, prefix) \ argument
124 return atomic##prefix##_fetch_##op##_relaxed(i, v) c_op I; \
129 return atomic##prefix##_fetch_##op(i, v) c_op I; \
133 #define ATOMIC_OPS(op, asm_op, c_op, I) \ argument
135 ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, )
137 #define ATOMIC_OPS(op, asm_op, c_op, I) \
139 ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, ) \
141 ATOMIC_OP_RETURN(op, asm_op, c_op, I, d, long, 64)
/Linux-v4.19/arch/sparc/lib/
Datomic32.c31 #define ATOMIC_FETCH_OP(op, c_op) \ argument
39 v->counter c_op i; \
46 #define ATOMIC_OP_RETURN(op, c_op) \ argument
53 ret = (v->counter c_op i); \
/Linux-v4.19/arch/mips/include/uapi/asm/
Dinst.h650 __BITFIELD_FIELD(unsigned int c_op : 3,