Lines Matching refs:pcp
149 #define _pcp_protect(op, pcp, ...) \ argument
152 op(raw_cpu_ptr(&(pcp)), __VA_ARGS__); \
156 #define _pcp_protect_return(op, pcp, args...) \ argument
158 typeof(pcp) __retval; \
160 __retval = (typeof(pcp))op(raw_cpu_ptr(&(pcp)), ##args); \
165 #define this_cpu_read_1(pcp) \ argument
166 _pcp_protect_return(__percpu_read_8, pcp)
167 #define this_cpu_read_2(pcp) \ argument
168 _pcp_protect_return(__percpu_read_16, pcp)
169 #define this_cpu_read_4(pcp) \ argument
170 _pcp_protect_return(__percpu_read_32, pcp)
171 #define this_cpu_read_8(pcp) \ argument
172 _pcp_protect_return(__percpu_read_64, pcp)
174 #define this_cpu_write_1(pcp, val) \ argument
175 _pcp_protect(__percpu_write_8, pcp, (unsigned long)val)
176 #define this_cpu_write_2(pcp, val) \ argument
177 _pcp_protect(__percpu_write_16, pcp, (unsigned long)val)
178 #define this_cpu_write_4(pcp, val) \ argument
179 _pcp_protect(__percpu_write_32, pcp, (unsigned long)val)
180 #define this_cpu_write_8(pcp, val) \ argument
181 _pcp_protect(__percpu_write_64, pcp, (unsigned long)val)
183 #define this_cpu_add_1(pcp, val) \ argument
184 _pcp_protect(__percpu_add_case_8, pcp, val)
185 #define this_cpu_add_2(pcp, val) \ argument
186 _pcp_protect(__percpu_add_case_16, pcp, val)
187 #define this_cpu_add_4(pcp, val) \ argument
188 _pcp_protect(__percpu_add_case_32, pcp, val)
189 #define this_cpu_add_8(pcp, val) \ argument
190 _pcp_protect(__percpu_add_case_64, pcp, val)
192 #define this_cpu_add_return_1(pcp, val) \ argument
193 _pcp_protect_return(__percpu_add_return_case_8, pcp, val)
194 #define this_cpu_add_return_2(pcp, val) \ argument
195 _pcp_protect_return(__percpu_add_return_case_16, pcp, val)
196 #define this_cpu_add_return_4(pcp, val) \ argument
197 _pcp_protect_return(__percpu_add_return_case_32, pcp, val)
198 #define this_cpu_add_return_8(pcp, val) \ argument
199 _pcp_protect_return(__percpu_add_return_case_64, pcp, val)
201 #define this_cpu_and_1(pcp, val) \ argument
202 _pcp_protect(__percpu_andnot_case_8, pcp, ~val)
203 #define this_cpu_and_2(pcp, val) \ argument
204 _pcp_protect(__percpu_andnot_case_16, pcp, ~val)
205 #define this_cpu_and_4(pcp, val) \ argument
206 _pcp_protect(__percpu_andnot_case_32, pcp, ~val)
207 #define this_cpu_and_8(pcp, val) \ argument
208 _pcp_protect(__percpu_andnot_case_64, pcp, ~val)
210 #define this_cpu_or_1(pcp, val) \ argument
211 _pcp_protect(__percpu_or_case_8, pcp, val)
212 #define this_cpu_or_2(pcp, val) \ argument
213 _pcp_protect(__percpu_or_case_16, pcp, val)
214 #define this_cpu_or_4(pcp, val) \ argument
215 _pcp_protect(__percpu_or_case_32, pcp, val)
216 #define this_cpu_or_8(pcp, val) \ argument
217 _pcp_protect(__percpu_or_case_64, pcp, val)
219 #define this_cpu_xchg_1(pcp, val) \ argument
220 _pcp_protect_return(xchg_relaxed, pcp, val)
221 #define this_cpu_xchg_2(pcp, val) \ argument
222 _pcp_protect_return(xchg_relaxed, pcp, val)
223 #define this_cpu_xchg_4(pcp, val) \ argument
224 _pcp_protect_return(xchg_relaxed, pcp, val)
225 #define this_cpu_xchg_8(pcp, val) \ argument
226 _pcp_protect_return(xchg_relaxed, pcp, val)
228 #define this_cpu_cmpxchg_1(pcp, o, n) \ argument
229 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n)
230 #define this_cpu_cmpxchg_2(pcp, o, n) \ argument
231 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n)
232 #define this_cpu_cmpxchg_4(pcp, o, n) \ argument
233 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n)
234 #define this_cpu_cmpxchg_8(pcp, o, n) \ argument
235 _pcp_protect_return(cmpxchg_relaxed, pcp, o, n)
237 #define this_cpu_cmpxchg64(pcp, o, n) this_cpu_cmpxchg_8(pcp, o, n) argument
239 #define this_cpu_cmpxchg128(pcp, o, n) \ argument
241 typedef typeof(pcp) pcp_op_T__; \
247 ptr__ = raw_cpu_ptr(&(pcp)); \