/illumos-gate/usr/src/uts/common/sys/ |
H A D | cpuvar.h | 86 typedef struct cpu { struct 87 processorid_t cpu_id; /* CPU number */ argument 88 processorid_t cpu_seqid; /* sequential CPU id (0..ncpus-1) */ argument 89 volatile cpu_flag_t cpu_flags; /* flags indicating CPU state */ argument 90 struct cpu *cpu_self; /* pointer to itself */ argument 91 kthread_t *cpu_thread; /* current thread */ argument 92 kthread_t *cpu_idle_thread; /* idle thread for this CPU */ argument 93 kthread_t *cpu_pause_thread; /* pause thread for this CPU */ argument 94 klwp_id_t cpu_lwp; /* current lwp (if any) */ argument 95 klwp_id_t cpu_fpowner; /* currently loaded fpu owner */ argument [all …]
|
/illumos-gate/usr/src/compat/bhyve/sys/ |
H A D | cpuset.h | 26 #define CPU_SET(cpu, set) cpuset_add((set), (cpu)) argument 27 #define CPU_SETOF(cpu, set) cpuset_only((set), (cpu)) argument 29 #define CPU_CLR(cpu, set) cpuset_del((set), (cpu)) argument 32 #define CPU_ISSET(cpu, set) cpu_in_set((cpuset_t *)(set), (cpu)) argument 42 #define CPU_SET_ATOMIC(cpu, set) cpuset_atomic_add( \ argument 45 #define CPU_CLR_ATOMIC(cpu, set) cpuset_atomic_del( \ argument 49 #define CPU_SET_ATOMIC_ACQ(cpu, set) cpuset_atomic_add((set), (cpu)) argument 118 #define CPU_SET(cpu, setp) BT_SET((setp)->_bits, cpu) argument 119 #define CPU_CLR(cpu, setp) BT_CLEAR((setp)->_bits, cpu) argument 125 #define CPU_ISSET(cpu, setp) BT_TEST((setp)->_bits, cpu) argument [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cyclic.c | 696 #define CYC_TRACE(cpu, level, why, arg0, arg1) \ argument 720 #define CYC_TRACE(cpu, level, why, arg0, arg1) argument 725 #define CYC_TRACE0(cpu, level, why) CYC_TRACE(cpu, level, why, 0, 0) argument 726 #define CYC_TRACE1(cpu, level, why, arg0) CYC_TRACE(cpu, level, why, arg0, 0) argument 742 cyclic_upheap(cyc_cpu_t *cpu, cyc_index_t ndx) in cyclic_upheap() 785 cyclic_downheap(cyc_cpu_t *cpu, cyc_index_t ndx) in cyclic_downheap() 860 cyclic_expire(cyc_cpu_t *cpu, cyc_index_t ndx, cyclic_t *cyclic) in cyclic_expire() 951 cyc_cpu_t *cpu = c->cpu_cyclic; in cyclic_fire() local 1047 cyclic_remove_pend(cyc_cpu_t *cpu, cyc_level_t level, cyclic_t *cyclic) in cyclic_remove_pend() 1131 cyc_cpu_t *cpu = c->cpu_cyclic; in cyclic_softint() local [all …]
|
H A D | pool_pset.c | 107 cpu_t *cpu; member 289 cpu_t *cpu; in pool_pset_disable() local 543 struct cpu *cpu; in pool_pset_xtransfer() local 763 cpu_t *cpu; in pool_cpu_propput() local 812 cpu_t *cpu; in pool_cpu_proprm() local 851 cpu_t *cpu; in pool_pset_pack() local 961 cpu_t *cpu; in pool_cpu_propget() local
|
H A D | cpu.c | 1128 cpu_is_online(cpu_t *cpu) in cpu_is_online() 1138 cpu_is_offline(cpu_t *cpu) in cpu_is_offline() 1148 cpu_is_poweredoff(cpu_t *cpu) in cpu_is_poweredoff() 1158 cpu_is_nointr(cpu_t *cpu) in cpu_is_nointr() 1168 cpu_is_active(cpu_t *cpu) in cpu_is_active() 2755 cpuset_all_but(cpuset_t *s, const uint_t cpu) in cpuset_all_but() 2762 cpuset_only(cpuset_t *s, const uint_t cpu) in cpuset_only() 2769 cpu_in_set(const cpuset_t *s, const uint_t cpu) in cpu_in_set() 2776 cpuset_add(cpuset_t *s, const uint_t cpu) in cpuset_add() 2783 cpuset_del(cpuset_t *s, const uint_t cpu) in cpuset_del() [all …]
|
H A D | msacct.c | 127 cpu_t *cpu, in init_cpu_mstate() 145 term_cpu_mstate(struct cpu *cpu) in term_cpu_mstate() 167 cpu_t *cpu = CPU; in new_cpu_mstate() local 404 cpu_t *cpu; in syscall_mstate() local
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | intel_nhm.h | 50 #define SOCKET_BUS(cpu) (MAX_BUS_NUMBER - (cpu)) argument 51 #define CPU_ID_RD(cpu) nhm_pci_getl(SOCKET_BUS(cpu), 0, 0, 0, 0) argument 52 #define MC_CONTROL_RD(cpu) \ argument 54 #define MC_STATUS_RD(cpu) \ argument 56 #define MC_SMI_SPARE_DIMM_ERROR_STATUS_RD(cpu) \ argument 58 #define MC_CPU_RAS_RD(cpu) \ argument 60 #define MC_SCRUB_CONTROL_RD(cpu) \ argument 62 #define MC_SCRUB_CONTROL_WR(cpu, reg) nhm_pci_putl(SOCKET_BUS(cpu), 3, 2, \ argument 64 #define MC_SSR_CONTROL_RD(cpu) nhm_pci_getl(SOCKET_BUS(cpu), 3, 2, 0x48, 0) argument 65 #define MC_SSR_CONTROL_WR(cpu, reg) nhm_pci_putl(SOCKET_BUS(cpu), 3, 2, 0x48, \ argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_intr.c | 102 struct cpu *cpu = CPU; in apix_remove_pending_av() local 230 apix_do_softint_prolog(struct cpu *cpu, uint_t pil, uint_t oldpil, in apix_do_softint_prolog() 304 apix_do_softint_epilog(struct cpu *cpu, uint_t oldpil) in apix_do_softint_epilog() 372 struct cpu *cpu = CPU; in apix_dispatch_softint() local 394 struct cpu *cpu = CPU; in apix_do_softint() local 416 apix_hilevel_intr_prolog(struct cpu *cpu, uint_t pil, uint_t oldpil, in apix_hilevel_intr_prolog() 498 apix_hilevel_intr_epilog(struct cpu *cpu, uint_t oldpil) in apix_hilevel_intr_epilog() 587 apix_do_pending_hilevel(struct cpu *cpu, struct regs *rp) in apix_do_pending_hilevel() 622 apix_intr_thread_prolog(struct cpu *cpu, uint_t pil, caddr_t stackptr) in apix_intr_thread_prolog() 693 apix_intr_thread_epilog(struct cpu *cpu, uint_t oldpil) in apix_intr_thread_epilog() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | intr.c | 522 struct cpu *cpu = CPU; in set_base_spl() local 539 hilevel_intr_prolog(struct cpu *cpu, uint_t pil, uint_t oldpil, struct regs *rp) in hilevel_intr_prolog() 637 hilevel_intr_epilog(struct cpu *cpu, uint_t pil, uint_t oldpil, uint_t vecnum) in hilevel_intr_epilog() 720 intr_thread_prolog(struct cpu *cpu, caddr_t stackptr, uint_t pil) in intr_thread_prolog() 788 intr_thread_epilog(struct cpu *cpu, uint_t vec, uint_t oldpil) in intr_thread_epilog() 926 struct cpu *cpu; in intr_get_time() local 958 struct cpu *cpu, in dosoftint_prolog() 1069 dosoftint_epilog(struct cpu *cpu, uint_t oldpil) in dosoftint_epilog() 1230 cpu_t *cpu; in cpu_intr_swtch_enter() local 1298 struct cpu *cpu = CPU; in dispatch_softint() local [all …]
|
H A D | mach_kdi.c | 119 kdi_stop_slaves(int cpu, int doxc) in kdi_stop_slaves() 154 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); in boot_kdi_tmpinit() local
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | cpuid.c | 2159 cpuid_alloc_space(cpu_t *cpu) in cpuid_alloc_space() 2173 cpuid_free_space(cpu_t *cpu) in cpuid_free_space() 2370 cpuid_gather_amd_topology_leaves(cpu_t *cpu) in cpuid_gather_amd_topology_leaves() 2508 cpuid_leafB_getids(cpu_t *cpu) in cpuid_leafB_getids() 2580 cpuid_intel_getids(cpu_t *cpu, void *feature) in cpuid_intel_getids() 2686 cpuid_amd_get_coreid(cpu_t *cpu) in cpuid_amd_get_coreid() 2723 cpuid_amd_getids(cpu_t *cpu, uchar_t *features) in cpuid_amd_getids() 2919 cpuid_update_md_clear(cpu_t *cpu, uchar_t *featureset) in cpuid_update_md_clear() 2951 cpuid_update_l1d_flush(cpu_t *cpu, uchar_t *featureset) in cpuid_update_l1d_flush() 3057 cpuid_learn_and_patch_bhi(x86_spectrev2_mitigation_t v2mit, cpu_t *cpu, in cpuid_learn_and_patch_bhi() [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | intrq.c | 36 cpu_intrq_register(struct cpu *cpu) in cpu_intrq_register() 63 cpu_intrq_setup(struct cpu *cpu) in cpu_intrq_setup() 183 cpu_intrq_cleanup(struct cpu *cpu) in cpu_intrq_cleanup()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | cyclic.c | 41 cyccpu_vread(cyc_cpu_t *cpu, uintptr_t addr) in cyccpu_vread() 78 cyc_cpu_t cpu; in cyccpu_walk_step() local 134 cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w, in cyclic_dump_node() 194 cyclic_pretty_dump(cyc_cpu_t *cpu) in cyclic_pretty_dump() 240 cyc_cpu_t cpu; in cycinfo() local 452 cyc_cpu_t *cpu; in cyctrace_walk_init() local 499 cyc_cpu_t *cpu = wsp->walk_data; in cyctrace_walk_step() local 548 cyc_cpu_t *cpu = wsp->walk_data; in cyctrace_walk_fini() local 556 cyctrace_walk(uintptr_t addr, const cyc_tracerec_t *rec, cyc_cpu_t *cpu) in cyctrace_walk() 693 cyc_cpu_t cpu; in cycid_cpu() local
|
/illumos-gate/usr/src/cmd/pbind/ |
H A D | pbind.c | 100 query_out(id_t pid, id_t lwpid, processorid_t cpu) in query_out() 125 bind_err(processorid_t cpu, id_t pid, id_t lwpid, int err) in bind_err() 218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu) in bind_lwp() 237 do_lwps(id_t pid, const char *range, processorid_t cpu) in do_lwps() 353 exec_cmd(processorid_t cpu, char *cmd, char **args) in exec_cmd() 371 processorid_t cpu; in parse_cpu() local 401 processorid_t cpu, old_cpu; in main() local
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_lapic.h | 64 lapic_intr_level(struct vm *vm, int cpu, int vector) in lapic_intr_level() 71 lapic_intr_edge(struct vm *vm, int cpu, int vector) in lapic_intr_edge()
|
H A D | vmm_lapic.c | 64 lapic_set_intr(struct vm *vm, int cpu, int vector, bool level) in lapic_set_intr() 86 lapic_set_local_intr(struct vm *vm, int cpu, int vector) in lapic_set_local_intr()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | evtchn.c | 209 xen_bind_virq(unsigned int virq, processorid_t cpu, int *port) in xen_bind_virq() 274 xen_bind_ipi(processorid_t cpu) in xen_bind_ipi() 288 xen_bind_vcpu(int evtchn, int cpu) in xen_bind_vcpu() 366 alloc_irq_evtchn(int irq, int index, int evtchn, int cpu) in alloc_irq_evtchn() 398 alloc_irq(int type, int index, int evtchn, int cpu) in alloc_irq() 513 ec_bind_vcpu(int evtchn, int cpu) in ec_bind_vcpu() 691 ec_bind_virq_to_irq(int virq, int cpu) in ec_bind_virq_to_irq() 717 ec_bind_ipi_to_irq(int ipl, int cpu) in ec_bind_ipi_to_irq() 752 ec_bind_cpu_ipis(int cpu) in ec_bind_cpu_ipis() 784 ec_irq_needs_rebind(int irq, int cpu) in ec_irq_needs_rebind() [all …]
|
H A D | mach_kdi.c | 112 kdi_stop_slaves(int cpu, int doxc) in kdi_stop_slaves() 165 cpu_t *cpu = kobj_zalloc(sizeof (*cpu), KM_TMP); in boot_kdi_tmpinit() local
|
/illumos-gate/usr/src/cmd/psradm/ |
H A D | psradm.c | 118 psr_set_state(processorid_t cpu, int action, psr_action_t *pac, int mustexist) in psr_set_state() 198 processorid_t cpu; in do_range() local 222 processorid_t cpu; in main() local
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | apix.h | 137 #define HILEVEL_PENDING(cpu) \ argument 139 #define LOWLEVEL_PENDING(cpu) \ argument 141 #define IS_HILEVEL_RUNNING(cpu) \ argument 143 #define IS_LOWLEVEL_RUNNING(cpu) \ argument 177 #define xv_vector(cpu, v) apixs[(cpu)]->x_vectbl[(v)] argument 178 #define xv_intrmap_private(cpu, v) (xv_vector(cpu, v))->v_intrmap_private argument
|
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | turbo.c | 117 int cpu; in pt_turbo_snapshot() local 198 int cpu; in pt_turbo_stat_collect() local
|
H A D | cpufreq.c | 339 pt_cpufreq_stat_account(double interval, uint_t cpu) in pt_cpufreq_stat_account() 400 pt_cpufreq_snapshot_cpu(kstat_ctl_t *kc, uint_t cpu) in pt_cpufreq_snapshot_cpu() 442 int32_t cpu; in pt_cpufreq_dtrace_walk() local
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | cbe.c | 81 cpu_t *cpu = CPU; in cbe_low_level() local 96 cpu_t *cpu = CPU; in cbe_fire() local 206 cbe_configure(cpu_t *cpu) in cbe_configure()
|
/illumos-gate/usr/src/uts/sun4/ml/ |
H A D | interrupt.S | 164 #define SERVE_INTR_PRE(iv_p, cpu, ls1, ls2, os1, os2, os3, regs) \ argument 191 #define SERVE_INTR(os5, cpu, ls1, ls2, os1, os2, os3, os4) \ argument 222 #define SERVE_INTR_NEXT(os5, cpu, ls1, ls2, os1, os2, os3, os4) \ argument
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip.c | 151 topo_instance_t inst, nvlist_t *cpu, uint16_t smbios_id) in create_node() 212 create_strand(topo_mod_t *mod, tnode_t *pnode, nvlist_t *cpu, in create_strand() 339 create_core(topo_mod_t *mod, tnode_t *pnode, nvlist_t *cpu, in create_core() 479 topo_instance_t max, nvlist_t *cpu, nvlist_t *auth, in create_chip()
|