Home
last modified time | relevance | path

Searched refs:cpu_id (Results 76 – 100 of 266) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/common/disp/
H A Dcpupart.c350 cpu_state_change_notify(cp->cpu_id, CPU_CPUPART_OUT); in cpupart_move_cpu()
370 (void) cpu_unbind(oldpp->cp_cpulist->cpu_id, B_FALSE); in cpupart_move_cpu()
382 cpu_state_change_notify(cp->cpu_id, CPU_CPUPART_IN); in cpupart_move_cpu()
391 if ((ret = cpu_unbind(cp->cpu_id, unbind_all_threads)) != 0) { in cpupart_move_cpu()
392 cpu_state_change_notify(cp->cpu_id, CPU_CPUPART_IN); in cpupart_move_cpu()
419 cpu_state_change_notify(cp->cpu_id, in cpupart_move_cpu()
440 cpu_state_change_notify(cp->cpu_id, CPU_CPUPART_IN); in cpupart_move_cpu()
654 cpu_state_change_notify(cp->cpu_id, CPU_CPUPART_IN); in cpupart_move_cpu()
1114 cpulist[i] = c->cpu_id; in cpupart_get_cpus()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dfault_iso.c196 msg->req_num, msg->msg_type, msg->cpu_id); in cpu_data_handler()
202 rv = p_online_internal(msg->cpu_id, P_STATUS, in cpu_data_handler()
213 rv = p_online_internal(msg->cpu_id, P_FAULTED, in cpu_data_handler()
230 rv = p_online_internal(msg->cpu_id, P_ONLINE, in cpu_data_handler()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dlgrpplat.c811 if (lgrp_plat_cpu_node[cp->cpu_id].exists) { in lgrp_plat_config()
814 cp->cpu_id); in lgrp_plat_config()
825 cp->cpu_id); in lgrp_plat_config()
857 lgrp_plat_cpu_node[cp->cpu_id].node = node; in lgrp_plat_config()
859 lgrp_plat_cpu_node[cp->cpu_id].exists = 1; in lgrp_plat_config()
871 ASSERT(lgrp_plat_cpu_node[cp->cpu_id].exists); in lgrp_plat_config()
872 if (!lgrp_plat_cpu_node[cp->cpu_id].exists) { in lgrp_plat_config()
875 cp->cpu_id); in lgrp_plat_config()
886 cp->cpu_id); in lgrp_plat_config()
893 lgrp_plat_cpu_node[cp->cpu_id].exists = 0; in lgrp_plat_config()
[all …]
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dniagara2.c209 cp->cpu_m.cpu_ipipe = cpunodes[cp->cpu_id].exec_unit_mapping; in cpu_map_exec_units()
211 cp->cpu_m.cpu_ipipe = (id_t)(cp->cpu_id); in cpu_map_exec_units()
213 cp->cpu_m.cpu_fpu = cpunodes[cp->cpu_id].fpu_mapping; in cpu_map_exec_units()
215 cp->cpu_m.cpu_fpu = (id_t)(cp->cpu_id); in cpu_map_exec_units()
228 cp->cpu_m.cpu_mpipe = cpunodes[cp->cpu_id].l2_cache_mapping; in cpu_map_exec_units()
232 cp->cpu_m.cpu_chip = cpunodes[cp->cpu_id].l2_cache_mapping; in cpu_map_exec_units()
/illumos-gate/usr/src/uts/sun4/os/
H A Dstartup.c621 CPUSET_DEL(cpu_ready_set, cpu[i]->cpu_id); in sync_handler()
1832 CPUSET_ADD(cpu_ready_set, CPU->cpu_id); in startup_vm()
2157 mach_htraptrace_setup(CPU->cpu_id); in startup_end()
2158 mach_htraptrace_configure(CPU->cpu_id); in startup_end()
2321 int cpu_id; in ptl1_thread() local
2338 my_cpu_id = CPU->cpu_id; in ptl1_thread()
2340 CPUSET_DEL(other_cpus, CPU->cpu_id); in ptl1_thread()
2346 for (cpu_id = 0; cpu_id < NCPU; cpu_id++) { in ptl1_thread()
2347 if (cpu_id == my_cpu_id) in ptl1_thread()
2350 if (CPU_XCALL_READY(cpu_id)) { in ptl1_thread()
[all …]
H A Dmlsetup.c203 CPU->cpu_id = getprocessorid(); in mlsetup()
255 ctlp = &trap_trace_ctl[CPU->cpu_id]; in mlsetup()
271 mach_htraptrace_setup(CPU->cpu_id); in mlsetup()
272 mach_htraptrace_configure(CPU->cpu_id); in mlsetup()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dcpudrv_mach.c77 CPUSET_ONLY(set, cp->cpu_id); in cpudrv_change_speed()
87 cpudrv_get_cpu_id(dev_info_t *dip, processorid_t *cpu_id) in cpudrv_get_cpu_id() argument
89 return ((*cpu_id = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in cpudrv_get_cpu_id()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_smbios.c50 id_t cpu_id; member
331 cpusmb[ncpu_ids].cpu_id = sp->smbstr_id; in chip_get_smbstruct()
357 if (extp.smbpe_processor == cpusmb[i].cpu_id) { in chip_get_smbstruct()
425 if (smb_id == cpusmb[i].cpu_id) { in chip_status_smbios_get()
446 if (smb_id == cpusmb[i].cpu_id) { in chip_fru_smbios_get()
/illumos-gate/usr/src/uts/common/sys/
H A Dpci_tools.h129 uint32_t cpu_id; /* to: cpu to set / from: old cpu returned */ member
164 uint32_t cpu_id; /* cpu of interrupt - from kernel */ member
H A Dcpuvar.h87 processorid_t cpu_id; /* CPU number */ member
686 extern int cpu_unbind(processorid_t cpu_id, boolean_t force);
687 extern void thread_affinity_set(kthread_t *t, int cpu_id);
689 extern void affinity_set(int cpu_id);
/illumos-gate/usr/src/uts/sun4u/sys/pci/
H A Dpci_ib.h190 extern uint64_t ib_get_map_reg(ib_mondo_t mondo, uint32_t cpu_id);
221 extern void ib_cpu_ticks_to_ih_nsec(ib_t *ib_p, ih_t *ih_p, uint32_t cpu_id);
225 extern int ib_set_intr_target(pci_t *pci_p, ib_ino_t ino, int cpu_id);
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dopl_olympus.c536 if (!((IS_OLYMPUS_C(cpunodes[cp->cpu_id].implementation)) ||
537 (IS_JUPITER(cpunodes[cp->cpu_id].implementation)))) {
539 "supported", cp->cpu_id,
540 cpunodes[cp->cpu_id].implementation);
543 adjust_hw_copy_limits(cpunodes[cp->cpu_id].ecache_size);
1352 cpunodes[CPU->cpu_id].ecache_linesize);
1492 cmp_delete_cpu(cp->cpu_id);
1939 aflt->flt_inst = CPU->cpu_id;
2120 aflt->flt_inst = CPU->cpu_id;
2155 hdlr->cyh_arg = (void *)(uintptr_t)cp->cpu_id;
[all …]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Dsysevent.c514 int cpu_id, del_cpuid; in sysevent_dr_remove_cpu() local
548 cpu_id = hal_device_property_get_int (d, "processor.number"); in sysevent_dr_remove_cpu()
554 ksp = kstat_lookup (kc, "cpu_info", cpu_id, NULL); in sysevent_dr_remove_cpu()
562 HAL_INFO ((" Remove CPU entry: %d", cpu_id)); in sysevent_dr_remove_cpu()
568 "remove for cpu_id %d", cpu_id)); in sysevent_dr_remove_cpu()
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpupm_mach.c164 "unable to get ACPI handle", cp->cpu_id); in cpupm_init()
203 " no speeds to manage", cp->cpu_id); in cpupm_init()
508 CPUSET_ADD(dptr->pm_cpus, cp->cpu_id); in cpupm_alloc_domains()
578 if (CPU_IN_SET(dptr->pm_cpus, cp->cpu_id)) in cpupm_remove_domains()
579 CPUSET_DEL(dptr->pm_cpus, cp->cpu_id); in cpupm_remove_domains()
643 CPUSET_ONLY(set, cp->cpu_id); in cpupm_state_change()
892 "_PPC out of range %d", cp->cpu_id, plat_level); in cpupm_get_top_speed()
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmach_startup.c87 mmu_fault_status_area + (MMFSA_SIZE * CPU->cpu_id); in setup_trap_table()
247 poke_cpu(cpu->cpu_id); in cpu_wakeup()
277 poke_cpu(cpu_seq[cpu_found]->cpu_id); in cpu_wakeup()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Devtchn.c340 if (CPU_IN_SET(evtchn_cpus[evtchn], cp->cpu_id)) in update_evtchn_affinity()
436 evtchn = ipi_info[irqp->ii_u.index].mi_evtchns[CPU->cpu_id]; in irq_evtchn()
439 evtchn = virq_info[irqp->ii_u.index].mi_evtchns[CPU->cpu_id]; in irq_evtchn()
1016 ec_wait_on_evtchn(ipip->mi_evtchns[CPU->cpu_id], check_func, arg); in ec_wait_on_ipi()
1231 #define UNBLOCKED_EVENTS(si, ix, cpe, cpu_id) \ argument
1266 ASSERT(&si->vcpu_info[cpu->cpu_id] == vci); in xen_callback_handler()
1291 while ((pe = UNBLOCKED_EVENTS(si, i, cpe, cpu->cpu_id)) != 0) { in xen_callback_handler()
1477 if (!CPU_IN_SET(evtchn_cpus[ev], CPU->cpu_id)) { in ec_unmask_evtchn()
1527 evtchn_owner[ev] = CPU->cpu_id; in ec_mask_evtchn()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_quiesce.c563 poke_cpu(tp->t_cpu->cpu_id);
688 CPU->cpu_id);
762 CPU_SIGNATURE(OS_SIG, SIGST_RUN, SIGSUBST_NULL, CPU->cpu_id);
786 CPU->cpu_id);
856 CPU_SIGNATURE(OS_SIG, SIGST_QUIESCED, SIGSUBST_NULL, CPU->cpu_id);
H A Dsbdp_cpu.c298 cpuid = cp->cpu_id; in sbdp_cpu_poweron()
377 cpuid = cp->cpu_id; in sbdp_cpu_poweroff()
451 xt_one_unchecked(cp->cpu_id, (xcfunc_t *)idle_stop_xcall, in sbdp_cpu_poweroff()
641 int cpuid = cp->cpu_id; in sbdp_cpu_stop_self()
792 int cpuid = cp->cpu_id; in sbdp_cpu_shutdown_self()
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c583 poke_cpu(tp->t_cpu->cpu_id); in dr_stop_user_threads()
723 CPU->cpu_id); in dr_resume()
752 CPU->cpu_id); in dr_resume()
819 CPU_SIGNATURE(OS_SIG, SIGST_RUN, SIGSUBST_NULL, CPU->cpu_id); in dr_resume()
841 CPU->cpu_id); in dr_suspend()
937 CPU_SIGNATURE(OS_SIG, SIGST_QUIESCED, SIGSUBST_NULL, CPU->cpu_id); in dr_suspend()
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dsysctrl_quiesce.c127 CPUSET_DEL(others, CPU->cpu_id); in sysctrl_grab_cpus()
129 (uint64_t)(&sysctrl_gate[CPU->cpu_id])); in sysctrl_grab_cpus()
166 sysctrl_gate[CPU->cpu_id] = 1; in sysctrl_release_cpus()
381 poke_cpu(tp->t_cpu->cpu_id); in sysctrl_stop_user_threads()
/illumos-gate/usr/src/uts/common/os/
H A Dmsacct.c427 CPU_UARRAY_VAL(z->zone_ustate, cpu->cpu_id, in syscall_mstate()
430 CPU_UARRAY_VAL(z->zone_ustate, cpu->cpu_id, in syscall_mstate()
682 CPU_UARRAY_VAL(z->zone_ustate, t->t_cpu->cpu_id, in new_mstate()
685 CPU_UARRAY_VAL(z->zone_ustate, t->t_cpu->cpu_id, in new_mstate()
800 CPU_UARRAY_VAL(z->zone_ustate, CPU->cpu_id, in restore_mstate()
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dpcpu.h19 #define curcpu (CPU->cpu_id)
/illumos-gate/usr/src/compat/bhyve/amd64/machine/
H A Dmd_var.h21 extern u_int cpu_id; /* Stepping ID */
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcicmu.c1251 ib_get_map_reg(pcmu_ib_mondo_t mondo, uint32_t cpu_id) in ib_get_map_reg() argument
1253 return ((mondo) | (cpu_id << PCMU_INTR_MAP_REG_TID_SHIFT) | in ib_get_map_reg()
1325 int cpu_id; in pcmu_intr_dist_cpuid() local
1408 cpu_id = sino_p->pino_cpuid; /* target established cpu */ in pcmu_intr_dist_cpuid()
1412 newcpu: cpu_id = intr_dist_cpuid(); /* target new cpu */ in pcmu_intr_dist_cpuid()
1418 return (cpu_id); in pcmu_intr_dist_cpuid()
1796 u2u_translate_tgtid(pcmu_t *pcmu_p, uint_t cpu_id, in u2u_translate_tgtid() argument
1811 return (cpu_id); in u2u_translate_tgtid()
1845 return (cpu_id); in u2u_translate_tgtid()
1862 *(volatile uint32_t *) (data_reg_addr) = (uint32_t)cpu_id; in u2u_translate_tgtid()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_tools.c301 int cpu_id; in pcitool_get_intr() local
371 if (ib_get_intr_target(pci_p, ino, &cpu_id) != DDI_SUCCESS) { in pcitool_get_intr()
387 iget->cpu_id = cpu_id; in pcitool_get_intr()
481 iset.cpu_id)) == DDI_SUCCESS) { in pcitool_set_intr()
482 iset.cpu_id = old_cpu_id; in pcitool_set_intr()

1234567891011