| /f-stack/freebsd/kern/ |
| H A D | subr_pcpu.c | 86 pcpu_init(struct pcpu *pcpu, int cpuid, size_t size) in pcpu_init() argument 89 bzero(pcpu, size); in pcpu_init() 92 pcpu->pc_cpuid = cpuid; in pcpu_init() 96 pcpu->pc_rm_queue.rmq_next = &pcpu->pc_rm_queue; in pcpu_init() 97 pcpu->pc_rm_queue.rmq_prev = &pcpu->pc_rm_queue; in pcpu_init() 104 struct pcpu *pcpu; in dpcpu_init() local 271 pcpu_destroy(struct pcpu *pcpu) in pcpu_destroy() argument 274 STAILQ_REMOVE(&cpuhead, pcpu, pcpu, pc_allcpu); in pcpu_destroy() 282 struct pcpu * 395 struct pcpu *pc; in DB_SHOW_COMMAND() [all …]
|
| H A D | kern_rmlock.c | 142 struct pcpu *pc; in unlock_rm() 260 struct pcpu *pc; in rm_cleanIPI() 351 struct pcpu *pc; in _rm_rlock_hard() 437 struct pcpu *pc; in _rm_rlock() 511 struct pcpu *pc; in _rm_runlock() 839 struct pcpu *pc; in db_show_rm() 920 pcpu->influx = 1; in rms_int_influx_enter() 929 pcpu->influx = 0; in rms_int_influx_exit() 967 pcpu->readers++; in rms_int_readers_inc() 976 pcpu->readers--; in rms_int_readers_dec() [all …]
|
| /f-stack/freebsd/i386/i386/ |
| H A D | genassym.c | 194 ASSYM(PC_SIZEOF, sizeof(struct pcpu)); 195 ASSYM(PC_PRVSPACE, offsetof(struct pcpu, pc_prvspace)); 199 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 202 ASSYM(PC_TSS_GDT, offsetof(struct pcpu, pc_tss_gdt)); 203 ASSYM(PC_FSGS_GDT, offsetof(struct pcpu, pc_fsgs_gdt)); 205 ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid)); 206 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); 208 ASSYM(PC_KESP0, offsetof(struct pcpu, pc_kesp0)); 209 ASSYM(PC_TRAMPSTK, offsetof(struct pcpu, pc_trampstk)); 212 ASSYM(PC_MDS_TMP, offsetof(struct pcpu, pc_mds_tmp)); [all …]
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | genassym.c | 213 ASSYM(PC_SIZEOF, sizeof(struct pcpu)); 218 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 219 ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid)); 223 ASSYM(PC_TSSP, offsetof(struct pcpu, pc_tssp)); 224 ASSYM(PC_RSP0, offsetof(struct pcpu, pc_rsp0)); 225 ASSYM(PC_FS32P, offsetof(struct pcpu, pc_fs32p)); 226 ASSYM(PC_GS32P, offsetof(struct pcpu, pc_gs32p)); 227 ASSYM(PC_LDT, offsetof(struct pcpu, pc_ldt)); 229 ASSYM(PC_TSS, offsetof(struct pcpu, pc_tss)); 231 ASSYM(PC_KCR3, offsetof(struct pcpu, pc_kcr3)); [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | pcpu.h | 177 struct pcpu { struct 187 STAILQ_ENTRY(pcpu) pc_allcpu; argument 214 STAILQ_HEAD(cpuhead, pcpu); 217 extern struct pcpu *cpuid_to_pcpu[]; 317 void cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size); 318 void db_show_mdpcpu(struct pcpu *pcpu); 324 void pcpu_destroy(struct pcpu *pcpu); 325 struct pcpu *pcpu_find(u_int cpuid); 326 void pcpu_init(struct pcpu *pcpu, int cpuid, size_t size);
|
| /f-stack/freebsd/mips/mips/ |
| H A D | machdep.c | 142 struct pcpu *pcpup = (struct pcpu *)pcpu_space; 273 pcpu_init(PCPU_ADDR(0), 0, sizeof(struct pcpu)); in mips_pcpu0_init() 457 mips_pcpu_tlb_init(struct pcpu *pcpu) in mips_pcpu_tlb_init() argument 466 pa = vtophys(pcpu); in mips_pcpu_tlb_init() 478 cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size) in cpu_pcpu_init() argument 481 pcpu->pc_next_asid = 1; in cpu_pcpu_init() 482 pcpu->pc_asid_generation = 1; in cpu_pcpu_init() 483 pcpu->pc_self = pcpu; in cpu_pcpu_init() 487 mips_pcpu_tlb_init(pcpu); in cpu_pcpu_init()
|
| H A D | genassym.c | 88 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 89 ASSYM(PC_SEGBASE, offsetof(struct pcpu, pc_segbase)); 90 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 91 ASSYM(PC_FPCURTHREAD, offsetof(struct pcpu, pc_fpcurthread)); 92 ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid));
|
| /f-stack/freebsd/mips/include/ |
| H A D | pcpu.h | 45 struct pcpu *pc_self; /* globally-uniqe self pointer */ 72 #define PCPU_ADDR(cpu) (struct pcpu *)(pcpu_space[(cpu)]) 74 extern struct pcpu *pcpup; 95 void mips_pcpu_tlb_init(struct pcpu *pcpu);
|
| H A D | pcpu_aux.h | 48 _Static_assert(PAGE_SIZE % sizeof(struct pcpu) == 0, "fix pcpu size"); 50 extern struct pcpu __pcpu[];
|
| /f-stack/freebsd/amd64/include/ |
| H A D | pcpu_aux.h | 45 _Static_assert(sizeof(struct pcpu) == UMA_PCPU_ALLOC_SIZE, "fix pcpu size"); 47 extern struct pcpu *__pcpu; 48 extern struct pcpu temp_bsp_pcpu; 56 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu, in __curthread()
|
| H A D | pcpu.h | 59 struct pcpu *pc_prvspace; /* Self-reference */ \ 119 __offsetof(struct pcpu, name) 125 __typeof(((struct pcpu *)0)->name) 135 : "m" (*(struct pcpu *)(__pcpu_offset(pc_prvspace))), \ 233 struct pcpu *__pc; \ 237 : "m" (*(struct pcpu *)(__pcpu_offset(pc_prvspace)))); \
|
| /f-stack/freebsd/i386/include/ |
| H A D | pcpu_aux.h | 45 _Static_assert(sizeof(struct pcpu) == UMA_PCPU_ALLOC_SIZE, "fix pcpu size"); 47 extern struct pcpu __pcpu[]; 55 : "m" (*(char *)offsetof(struct pcpu, pc_curthread))); in __curthread() 66 : "m" (*(char *)offsetof(struct pcpu, pc_curpcb))); in __curpcb()
|
| H A D | pcpu.h | 61 struct pcpu *pc_prvspace; /* Self-reference */ \ 108 __offsetof(struct pcpu, name) 114 __typeof(((struct pcpu *)0)->name) 124 : "m" (*(struct pcpu *)(__pcpu_offset(pc_prvspace))), \ 217 struct pcpu *__pc; \ 221 : "m" (*(struct pcpu *)(__pcpu_offset(pc_prvspace)))); \
|
| /f-stack/dpdk/examples/vm_power_manager/ |
| H A D | channel_monitor.c | 371 ci->cd[pcpu].oob_enabled = 1; in pcpu_monitor() 372 ret = add_core_to_monitor(pcpu); in pcpu_monitor() 376 pcpu, pol->pkt.vm_name); in pcpu_monitor() 380 pcpu, pol->pkt.vm_name); in pcpu_monitor() 383 pol->core_share[count].pcpu = pcpu; in pcpu_monitor() 386 pcpu, pol->pkt.vm_name); in pcpu_monitor() 397 int pcpu, count; in get_pcpu_to_control() local 586 pol->core_share[count].pcpu); in apply_traffic_profile() 592 pol->core_share[count].pcpu); in apply_traffic_profile() 598 pol->core_share[count].pcpu); in apply_traffic_profile() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | genassym.c | 82 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 83 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 109 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); 110 ASSYM(PC_BP_HARDEN_KIND, offsetof(struct pcpu, pc_bp_harden_kind)); 125 ASSYM(PCPU_SIZE, sizeof(struct pcpu)); 129 ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid));
|
| H A D | pmu_fdt.c | 93 struct pcpu *pcpu; in pmu_parse_affinity() local 107 pcpu = pcpu_find(i); in pmu_parse_affinity() 108 if (pcpu != NULL && pcpu->pc_mpidr == mpidr) { in pmu_parse_affinity()
|
| H A D | debug_monitor.c | 593 struct pcpu *pcpu; in dbg_setup_xpoint() local 691 pcpu = pcpu_find(cpu); in dbg_setup_xpoint() 693 d = (struct dbreg *)pcpu->pc_dbreg; in dbg_setup_xpoint() 698 pcpu->pc_dbreg_cmd = PC_DBREG_CMD_LOAD; in dbg_setup_xpoint() 710 struct pcpu *pcpu; in dbg_remove_xpoint() local 747 pcpu = pcpu_find(cpu); in dbg_remove_xpoint() 749 d = (struct dbreg *)pcpu->pc_dbreg; in dbg_remove_xpoint() 754 pcpu->pc_dbreg_cmd = PC_DBREG_CMD_LOAD; in dbg_remove_xpoint() 975 CTASSERT(sizeof(struct dbreg) == sizeof(((struct pcpu *)NULL)->pc_dbreg));
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | genassym.c | 54 ASSYM(PCPU_SIZE, sizeof(struct pcpu)); 55 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 56 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 57 ASSYM(PC_SSBD, offsetof(struct pcpu, pc_ssbd));
|
| H A D | gic_v3_var.h | 59 struct redist_pcpu *pcpu[MAXCPU]; member 137 &sc->gic_redists.pcpu[cpu]->res, \ 146 &sc->gic_redists.pcpu[cpu]->res, \
|
| /f-stack/freebsd/amd64/vmm/amd/ |
| H A D | svm.h | 34 struct pcpu; 69 void svm_launch(uint64_t pa, struct svm_regctx *gctx, struct pcpu *pcpu);
|
| /f-stack/freebsd/x86/xen/ |
| H A D | xen_intr.c | 219 struct xen_intr_pcpu_data *pcpu; in evtchn_cpu_mask_port() local 221 pcpu = DPCPU_ID_PTR(cpu, xen_intr_pcpu); in evtchn_cpu_mask_port() 241 struct xen_intr_pcpu_data *pcpu; in evtchn_cpu_unmask_port() local 256 struct xen_intr_pcpu_data *pcpu; in xen_intr_intrcnt_add() local 259 if (pcpu->evtchn_intrcnt != NULL) in xen_intr_intrcnt_add() 513 & pcpu->evtchn_enabled[idx]); in xen_intr_active_ports() 634 struct xen_intr_pcpu_data *pcpu; in xen_intr_init() local 650 sizeof(pcpu->evtchn_enabled)); in xen_intr_init() 787 struct xen_intr_pcpu_data *pcpu; in xen_intr_resume() local 791 sizeof(pcpu->evtchn_enabled)); in xen_intr_resume() [all …]
|
| /f-stack/freebsd/arm/include/ |
| H A D | pcpu_aux.h | 48 _Static_assert(PAGE_SIZE % sizeof(struct pcpu) == 0, "fix pcpu size"); 50 extern struct pcpu __pcpu[];
|
| /f-stack/freebsd/arm64/include/ |
| H A D | pcpu_aux.h | 48 _Static_assert(PAGE_SIZE % sizeof(struct pcpu) == 0, "fix pcpu size"); 50 extern struct pcpu __pcpu[];
|
| /f-stack/lib/ |
| H A D | ff_freebsd_init.c | 60 struct pcpu *pcpup; 97 pcpup = malloc(sizeof(struct pcpu), M_DEVBUF, M_ZERO); in ff_freebsd_init() 98 pcpu_init(pcpup, 0, sizeof(struct pcpu)); in ff_freebsd_init()
|
| /f-stack/lib/include/i386/include/ |
| H A D | pcpu.h | 31 #include_next <machine/pcpu.h> 41 extern struct pcpu *pcpup;
|