Home
last modified time | relevance | path

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

/openbmc/linux/arch/parisc/include/asm/
H A Datomic.h82 v->counter c_op i; \
107 v->counter c_op i; \
114 ATOMIC_OP(op, c_op) \
116 ATOMIC_FETCH_OP(op, c_op)
128 ATOMIC_OP(op, c_op) \
129 ATOMIC_FETCH_OP(op, c_op)
154 v->counter c_op i; \
179 v->counter c_op i; \
186 ATOMIC64_OP(op, c_op) \
188 ATOMIC64_FETCH_OP(op, c_op)
[all …]
/openbmc/linux/arch/sh/include/asm/
H A Datomic-irq.h13 #define ATOMIC_OP(op, c_op) \ argument
19 v->counter c_op i; \
30 temp c_op i; \
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)
64 #define ATOMIC_OPS(op, c_op) \ argument
65 ATOMIC_OP(op, c_op) \
[all …]
/openbmc/linux/arch/arc/include/asm/
H A Datomic-spinlock.h31 #define ATOMIC_OP(op, c_op, asm_op) \ argument
37 v->counter c_op i; \
52 temp c_op i; \
70 v->counter c_op i; \
76 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
77 ATOMIC_OP(op, c_op, asm_op) \
78 ATOMIC_OP_RETURN(op, c_op, asm_op) \
79 ATOMIC_FETCH_OP(op, c_op, asm_op)
90 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
91 ATOMIC_OP(op, c_op, asm_op) \
[all …]
/openbmc/linux/include/asm-generic/
H A Datomic.h19 #define ATOMIC_OP(op, c_op) \ argument
25 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
29 #define ATOMIC_OP_RETURN(op, c_op) \ argument
38 return c c_op i; \
41 #define ATOMIC_FETCH_OP(op, c_op) \ argument
57 #define ATOMIC_OP(op, c_op) \ argument
63 v->counter = v->counter c_op i; \
67 #define ATOMIC_OP_RETURN(op, c_op) \ argument
74 ret = (v->counter = v->counter c_op i); \
80 #define ATOMIC_FETCH_OP(op, c_op) \ argument
[all …]
/openbmc/linux/arch/m68k/include/asm/
H A Datomic.h32 #define ATOMIC_OP(op, c_op, asm_op) \ argument
40 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument
79 t = (v->counter c_op i); \
93 v->counter c_op i; \
101 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
102 ATOMIC_OP(op, c_op, asm_op) \
103 ATOMIC_OP_RETURN(op, c_op, asm_op) \
104 ATOMIC_FETCH_OP(op, c_op, asm_op)
115 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
116 ATOMIC_OP(op, c_op, asm_op) \
[all …]
/openbmc/linux/lib/
H A Datomic64.c69 #define ATOMIC64_OP(op, c_op) \ argument
76 v->counter c_op a; \
89 val = (v->counter c_op a); \
104 v->counter c_op a; \
110 #define ATOMIC64_OPS(op, c_op) \ argument
111 ATOMIC64_OP(op, c_op) \
112 ATOMIC64_OP_RETURN(op, c_op) \
113 ATOMIC64_FETCH_OP(op, c_op)
119 #define ATOMIC64_OPS(op, c_op) \ argument
120 ATOMIC64_OP(op, c_op) \
[all …]
H A Datomic64_test.c20 #define TEST(bit, op, c_op, val) \ argument
25 r c_op val; \
44 #define TEST_RETURN(bit, op, c_op, val) \ argument
48 r c_op val; \
53 #define TEST_FETCH(bit, op, c_op, val) \ argument
57 r c_op val; \
62 #define RETURN_FAMILY_TEST(bit, op, c_op, val) \ argument
64 FAMILY_TEST(TEST_RETURN, bit, op, c_op, val); \
67 #define FETCH_FAMILY_TEST(bit, op, c_op, val) \ argument
69 FAMILY_TEST(TEST_FETCH, bit, op, c_op, val); \
/openbmc/linux/arch/ia64/include/asm/
H A Datomic.h30 #define ATOMIC_OP(op, c_op) \ argument
40 new = old c_op i; \
55 new = old c_op i; \
60 #define ATOMIC_OPS(op, c_op) \ argument
61 ATOMIC_OP(op, c_op) \
62 ATOMIC_FETCH_OP(op, c_op)
125 #define ATOMIC64_OP(op, c_op) \ argument
135 new = old c_op i; \
150 new = old c_op i; \
156 ATOMIC64_OP(op, c_op) \
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Datomic.h44 #define ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ argument
53 v->counter c_op i; \
82 result c_op i; \
116 v->counter c_op i; \
139 #define ATOMIC_OPS(pfx, op, type, c_op, asm_op, ll, sc) \ argument
140 ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \
141 ATOMIC_OP_RETURN(pfx, op, type, c_op, asm_op, ll, sc) \
142 ATOMIC_FETCH_OP(pfx, op, type, c_op, asm_op, ll, sc)
162 #define ATOMIC_OPS(pfx, op, type, c_op, asm_op, ll, sc) \ argument
163 ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \
[all …]
/openbmc/linux/arch/arm/include/asm/
H A Datomic.h36 #define ATOMIC_OP(op, c_op, asm_op) \ argument
162 #define ATOMIC_OP(op, c_op, asm_op) \ argument
168 v->counter c_op i; \
179 v->counter c_op i; \
194 v->counter c_op i; \
227 #define ATOMIC_OPS(op, c_op, asm_op) \ argument
228 ATOMIC_OP(op, c_op, asm_op) \
229 ATOMIC_OP_RETURN(op, c_op, asm_op) \
230 ATOMIC_FETCH_OP(op, c_op, asm_op)
239 ATOMIC_OP(op, c_op, asm_op) \
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A 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)
/openbmc/linux/arch/loongarch/include/asm/
H A Datomic.h45 #define ATOMIC_OP_RETURN(op, I, asm_op, c_op) \ argument
56 return result c_op I; \
73 #define ATOMIC_OPS(op, I, asm_op, c_op) \ argument
75 ATOMIC_OP_RETURN(op, I, asm_op, c_op) \
181 #define ATOMIC64_OP_RETURN(op, I, asm_op, c_op) \ argument
191 return result c_op I; \
208 #define ATOMIC64_OPS(op, I, asm_op, c_op) \ argument
210 ATOMIC64_OP_RETURN(op, I, asm_op, c_op) \
H A Dpercpu.h39 #define PERCPU_OP(op, asm_op, c_op) \ argument
63 return ret c_op val; \
/openbmc/linux/arch/riscv/include/asm/
H A Datomic.h113 #define ATOMIC_OP_RETURN(op, asm_op, c_op, I, asm_type, c_type, prefix) \ argument
118 return arch_atomic##prefix##_fetch_##op##_relaxed(i, v) c_op I; \
123 return arch_atomic##prefix##_fetch_##op(i, v) c_op I; \
127 #define ATOMIC_OPS(op, asm_op, c_op, I) \ argument
129 ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, )
131 #define ATOMIC_OPS(op, asm_op, c_op, I) \
133 ATOMIC_OP_RETURN(op, asm_op, c_op, I, w, int, ) \
135 ATOMIC_OP_RETURN(op, asm_op, c_op, I, d, s64, 64)
/openbmc/linux/arch/csky/include/asm/
H A Datomic.h65 #define ATOMIC_OP_RETURN(op, c_op) \ argument
69 return arch_atomic_fetch_##op##_relaxed(i, v) c_op i; \
72 #define ATOMIC_OPS(op, c_op) \ argument
74 ATOMIC_OP_RETURN(op, c_op)
/openbmc/linux/arch/sparc/lib/
H A 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); \
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dinst.h672 __BITFIELD_FIELD(unsigned int c_op : 3,