/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_regops.c | 171 x2apic_send_ipi(int cpun, int ipl) in x2apic_send_ipi() argument 212 if ((cpun == psm_get_cpu_id())) { in x2apic_send_ipi() 216 apic_cpus[cpun].aci_local_id, vector); in x2apic_send_ipi() 223 x2apic_send_pir_ipi(processorid_t cpun) in x2apic_send_pir_ipi() argument 237 if ((cpun != psm_get_cpu_id())) { in x2apic_send_pir_ipi() 243 apic_reg_ops->apic_write_int_cmd(apic_cpus[cpun].aci_local_id, in x2apic_send_pir_ipi() 260 apic_common_send_ipi(int cpun, int ipl) in apic_common_send_ipi() argument 267 x2apic_send_ipi(cpun, ipl); in apic_common_send_ipi() 278 local_apic_regs_ops.apic_write_int_cmd(apic_cpus[cpun].aci_local_id, in apic_common_send_ipi() 284 apic_common_send_pir_ipi(processorid_t cpun) in apic_common_send_pir_ipi() argument [all …]
|
H A D | apix.c | 403 processorid_t cpun = psm_get_cpu_id(); in apix_init_intr() local 423 AV_HIGH_ORDER >> cpun); in apix_init_intr() 456 if (apic_cpus[cpun].aci_local_ver < APIC_INTEGRATED_VERS) { in apix_init_intr() 830 apix_disable_intr(processorid_t cpun) in apix_disable_intr() argument 832 apix_impl_t *apixp = apixs[cpun]; in apix_disable_intr() 838 apic_cpus[cpun].aci_status &= ~APIC_CPU_INTR_ENABLE; in apix_disable_intr() 839 apic_cpus[cpun].aci_curipl = 0; in apix_disable_intr() 842 if (apic_cpus[cpun].aci_status & APIC_CPU_SUSPEND) { in apix_disable_intr() 891 cpun); in apix_disable_intr() 902 apix_enable_intr(processorid_t cpun) in apix_enable_intr() argument [all …]
|
H A D | apix_utils.c | 97 int cpun; in apix_alloc_ipi() local 111 for (cpun = 0; cpun < nproc; cpun++) { in apix_alloc_ipi() 112 vecp = xv_vector(cpun, vector); in apix_alloc_ipi() 119 xv_vector(cpun, vector) = vecp; in apix_alloc_ipi() 123 vecp->v_cpuid = vecp->v_bound_cpuid = cpun; in apix_alloc_ipi() 131 while (--cpun >= 0) in apix_alloc_ipi() 132 apix_cleanup_vector(xv_vector(cpun, vector)); in apix_alloc_ipi() 144 int cpun; in apix_add_ipi() local 151 for (cpun = 0; cpun < nproc; cpun++) { in apix_add_ipi() 152 APIX_ENTER_CPU_LOCK(cpun); in apix_add_ipi() [all …]
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | psm_types.h | 129 int (*psm_disable_intr)(processorid_t cpun); 130 void (*psm_enable_intr)(processorid_t cpun); 133 void (*psm_set_idlecpu)(processorid_t cpun); 134 void (*psm_unset_idlecpu)(processorid_t cpun); 149 int (*psm_cpu_start)(processorid_t cpun, caddr_t ctxt); 151 void (*psm_cpu_start)(processorid_t cpun, caddr_t rm_code); 161 void (*psm_send_ipi)(processorid_t cpun, int ipl); 281 int (*psm_disable_intr)(processorid_t cpun); 282 void (*psm_enable_intr)(processorid_t cpun); 285 void (*psm_set_idlecpu)(processorid_t cpun); [all …]
|
H A D | apic_common.h | 178 extern void apic_send_ipi(int cpun, int ipl); 179 extern void apic_set_idlecpu(processorid_t cpun); 180 extern void apic_unset_idlecpu(processorid_t cpun); 183 extern processorid_t apic_get_next_processorid(processorid_t cpun);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | p_online.c | 55 p_online_internal_locked(processorid_t cpun, int new_status, int *old_status) in p_online_internal_locked() argument 64 if (cpun == P_ALL_SIBLINGS) { in p_online_internal_locked() 73 if ((cp = cpu_get(cpun)) == NULL) { in p_online_internal_locked() 247 p_online_internal(processorid_t cpun, int new_status, int *old_status) in p_online_internal() argument 252 rc = p_online_internal_locked(cpun, new_status, old_status); in p_online_internal() 267 p_online(processorid_t cpun, int new_status) in p_online() argument 272 ret = p_online_internal(cpun, new_status, &old_status); in p_online()
|
H A D | processor_info.c | 47 processor_info(processorid_t cpun, processor_info_t *infop) in processor_info() argument 53 if ((cp = cpu_get(cpun)) == NULL) { in processor_info()
|
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic.c | 106 static int apic_disable_intr(processorid_t cpun); 107 static void apic_enable_intr(processorid_t cpun); 323 processorid_t cpun = psm_get_cpu_id(); in apic_init_intr() local 340 apic_reg_ops->apic_write(APIC_DEST_REG, AV_HIGH_ORDER >> cpun); in apic_init_intr() 372 if (apic_cpus[cpun].aci_local_ver < APIC_INTEGRATED_VERS) { in apic_init_intr() 693 int cpun; in apic_post_cpu_start() local 709 cpun = psm_get_cpu_id(); in apic_post_cpu_start() 710 apic_cpus[cpun].aci_status |= APIC_CPU_ONLINE; in apic_post_cpu_start() 765 apic_disable_intr(processorid_t cpun) in apic_disable_intr() argument 776 if (apic_reprogram_info[i].bindcpu == cpun) { in apic_disable_intr() [all …]
|
H A D | apic_common.c | 438 apic_cpu_send_SIPI(processorid_t cpun, boolean_t start) in apic_cpu_send_SIPI() argument 445 apicid = apic_cpus[cpun].aci_local_id; in apic_cpu_send_SIPI() 495 if (apic_cpus[cpun].aci_local_ver >= APIC_INTEGRATED_VERS) { in apic_cpu_send_SIPI() 518 apic_cpu_start(processorid_t cpun, caddr_t arg __unused) in apic_cpu_start() argument 522 if (!apic_cpu_in_range(cpun)) { in apic_cpu_start() 534 apic_cpu_send_SIPI(cpun, B_TRUE); in apic_cpu_start() 544 apic_cpu_stop(processorid_t cpun, caddr_t arg __unused) in apic_cpu_stop() argument 553 if (!apic_cpu_in_range(cpun)) { in apic_cpu_stop() 556 if (apic_cpus[cpun].aci_local_ver < APIC_INTEGRATED_VERS) { in apic_cpu_stop() 560 cp = cpu_get(cpun); in apic_cpu_stop() [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_call.c | 50 poke_cpu(int cpun) in poke_cpu() argument 52 uint32_t *ptr = (uint32_t *)&cpu[cpun]->cpu_m.poke_cpu_outstanding; in poke_cpu() 63 xt_one(cpun, setsoftint_tl1, poke_cpu_inum, 0); in poke_cpu()
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | mach_mp_states.c | 36 set_idle_cpu(int cpun) in set_idle_cpu() argument 46 unset_idle_cpu(int cpun) in unset_idle_cpu() argument
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | xcall.c | 50 cpu_id_to_addr(processorid_t cpun, uintptr_t *addrp) in cpu_id_to_addr() argument 60 if (cpun * sizeof (uintptr_t) > sym.st_size) in cpu_id_to_addr() 63 addr = (uintptr_t)sym.st_value + cpun * sizeof (uintptr_t); in cpu_id_to_addr() 66 mdb_warn("failed to read cpu[%lu]", cpun); in cpu_id_to_addr()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mp_call.c | 49 poke_cpu(int cpun) in poke_cpu() argument 57 send_dirint(cpun, XC_CPUPOKE_PIL); in poke_cpu()
|
H A D | machdep.c | 698 set_idle_cpu(int cpun) in set_idle_cpu() argument 700 last_idle_cpu = cpun; in set_idle_cpu() 701 (*psm_set_idle_cpuf)(cpun); in set_idle_cpu() 709 unset_idle_cpu(int cpun) in unset_idle_cpu() argument 711 (*psm_unset_idle_cpuf)(cpun); in unset_idle_cpu()
|
H A D | mp_machdep.c | 76 static int mp_disable_intr(processorid_t cpun); 77 static void mp_enable_intr(processorid_t cpun); 837 mp_disable_intr(int cpun) in mp_disable_intr() argument 842 affinity_set(cpun); in mp_disable_intr() 858 mp_enable_intr(int cpun) in mp_enable_intr() argument 863 affinity_set(cpun); in mp_enable_intr()
|
H A D | mp_startup.c | 285 mp_cpu_configure_common(int cpun, boolean_t boot) in mp_cpu_configure_common() argument 299 trap_trace_ctl_t *ttc = &trap_trace_ctl[cpun]; in mp_cpu_configure_common() 303 ASSERT(cpun < NCPU && cpu[cpun] == NULL); in mp_cpu_configure_common() 312 cp->cpu_m.mcpu_istamp = cpun << 16; in mp_cpu_configure_common() 361 cp->cpu_id = cpun; in mp_cpu_configure_common()
|
H A D | cpr_impl.c | 87 init_real_mode_platter(int cpun, uint32_t offset, uint_t cr4, wc_desctbr_t gdt); 841 init_real_mode_platter(int cpun, uint32_t offset, uint_t cr4, wc_desctbr_t gdt) in init_real_mode_platter() argument 854 real_mode_platter->rm_cpu = cpun; in init_real_mode_platter()
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_psm.c | 307 xen_psm_send_ipi(int cpun, int ipl) in xen_psm_send_ipi() argument 311 ec_send_ipi(ipl, cpun); in xen_psm_send_ipi() 808 xen_psm_disable_intr(processorid_t cpun) in xen_psm_disable_intr() argument 817 if (cpun == 0) in xen_psm_disable_intr() 820 CPUSET_ATOMIC_DEL(xen_psm_cpus_online, cpun); in xen_psm_disable_intr() 822 if (!ec_irq_needs_rebind(irq, cpun)) in xen_psm_disable_intr() 830 xen_psm_enable_intr(processorid_t cpun) in xen_psm_enable_intr() argument 834 if (cpun == 0) in xen_psm_enable_intr() 837 CPUSET_ATOMIC_ADD(xen_psm_cpus_online, cpun); in xen_psm_enable_intr() 849 apic_cpus[cpun].aci_status |= APIC_CPU_INTR_ENABLE; in xen_psm_enable_intr() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu.c | 872 long cpun = cp->cpu_id; in cpu_pause_alloc() local 878 t = thread_create(NULL, 0, cpu_pause, (void *)cpun, in cpu_pause_alloc() 904 int cpun = cp->cpu_id; in cpu_pause_free() local 911 ASSERT(safe_list[cpun] == PAUSE_IDLE); in cpu_pause_free() 918 ASSERT(safe_list[cpun] == PAUSE_IDLE); in cpu_pause_free() 919 safe_list[cpun] = PAUSE_DIE; in cpu_pause_free() 929 while (safe_list[cpun] != PAUSE_DEAD) { in cpu_pause_free() 933 safe_list[cpun] = PAUSE_IDLE; in cpu_pause_free() 1090 cpu_get_all(processorid_t cpun) in cpu_get_all() argument 1094 if (cpun >= NCPU || cpun < 0 || !CPU_IN_SET(cpu_available, cpun)) in cpu_get_all() [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_mp_states.c | 47 set_idle_cpu(int cpun) in set_idle_cpu() argument 56 unset_idle_cpu(int cpun) in unset_idle_cpu() argument
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | cpuvar.h | 614 void mbox_init(int cpun); /* initialize cross-calls */ 615 void poke_cpu(int cpun); /* interrupt another CPU (to preempt) */ 633 cpu_t *cpu_get(processorid_t cpun); /* get the CPU struct associated */
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 116 extern void set_idle_cpu(int cpun); 117 extern void unset_idle_cpu(int cpun);
|