Lines Matching refs:base
251 #define zpcpu_base_to_offset(base) (void *)((uintptr_t)(base) - (uintptr_t)&__pcpu[0]) argument
252 #define zpcpu_offset_to_base(base) (void *)((uintptr_t)(base) + (uintptr_t)&__pcpu[0]) argument
255 #define zpcpu_sub_protected(base, n) do { \ argument
257 zpcpu_sub(base, n); \
260 #define zpcpu_set_protected(base, n) do { \ argument
261 __typeof(*base) __n = (n); \
263 switch (sizeof(*base)) { \
266 : : "r" (base), "ri" (__n) : "memory", "cc"); \
270 : : "r" (base), "ri" (__n) : "memory", "cc"); \
273 *zpcpu_get(base) = __n; \
277 #define zpcpu_add(base, n) do { \ argument
278 __typeof(*base) __n = (n); \
279 CTASSERT(sizeof(*base) == 4 || sizeof(*base) == 8); \
280 switch (sizeof(*base)) { \
283 : : "r" (base), "ri" (__n) : "memory", "cc"); \
287 : : "r" (base), "ri" (__n) : "memory", "cc"); \
292 #define zpcpu_add_protected(base, n) do { \ argument
294 zpcpu_add(base, n); \
297 #define zpcpu_sub(base, n) do { \ argument
298 __typeof(*base) __n = (n); \
299 CTASSERT(sizeof(*base) == 4 || sizeof(*base) == 8); \
300 switch (sizeof(*base)) { \
303 : : "r" (base), "ri" (__n) : "memory", "cc"); \
307 : : "r" (base), "ri" (__n) : "memory", "cc"); \