Lines Matching +full:per +full:- +full:cpu
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
45 char padding[128 - (2 * sizeof(int))];
53 * to each CPU's data can be set up for things like "check curproc on all
58 struct pcpu *pc_prvspace; /* Self-reference */ \
60 struct amd64tss *pc_tssp; /* TSS segment active on CPU */ \
69 u_int pc_acpi_id; /* ACPI CPU id */ \
70 /* Pointer to the CPU %fs descriptor */ \
72 /* Pointer to the CPU %gs descriptor */ \
74 /* Pointer to the CPU LDT descriptor */ \
76 /* Pointer to the CPU TSS descriptor */ \
115 * Evaluates to the type of the per-cpu variable name.
118 __typeof(((struct pcpu *)0)->name)
124 __pc->pc_prvspace; \
128 * Evaluates to the address of the per-cpu variable name.
133 &__pc->name; \
137 * Evaluates to the value of the per-cpu variable name.
142 __pc->name; \
146 * Adds the value to the per-cpu counter name. The implementation
156 __pc->name += __val; \
162 * Sets the value of the per-cpu variable name to value val.
171 __pc->name = __val; \
177 * Evaluates to the byte offset of the per-cpu variable name.
183 * Evaluates to the address of the per-cpu variable name.
186 (&get_pcpu()->name)
189 * Evaluates to the value of the per-cpu variable name.
209 * Adds the value to the per-cpu counter name. The implementation
231 * Sets the value of the per-cpu variable name to value val.
269 #define zpcpu_offset_cpu(cpu) ((uintptr_t)&__pcpu[0] + UMA_PCPU_ALLOC_SIZE * cpu)
270 #define zpcpu_base_to_offset(base) (void *)((uintptr_t)(base) - (uintptr_t)&__pcpu[0])