/netbsd/sys/arch/alpha/pci/ |
H A D | pci_6600.c | 288 unsigned int irq, cpuno, cnt; in dec_6600_intr_program() local 297 for (cpuno = 0, cnt = 0; cpuno < 4; cpuno++) { in dec_6600_intr_program() 298 if (dec_6600_cpu_intr_enables[cpuno] != 0 && in dec_6600_intr_program() 299 (pc->pc_eligible_cpus & __BIT(cpuno)) == 0) in dec_6600_intr_program() 301 __func__, cpuno); in dec_6600_intr_program() 302 if (dec_6600_cpu_intr_enables[cpuno] & __BIT(irq)) in dec_6600_intr_program() 373 cpuid_t cpuno; in dec_6600_intr_set_affinity() local 379 for (cpuno = 0; cpuno < 4; cpuno++) { in dec_6600_intr_set_affinity() 380 if (cpuno == ci->ci_cpuid) in dec_6600_intr_set_affinity() 381 dec_6600_cpu_intr_enables[cpuno] |= intr_bit; in dec_6600_intr_set_affinity() [all …]
|
/netbsd/sys/arch/arm/arm/ |
H A D | cpu_subr.c | 76 u_int cpuno; in cpu_boot_secondary_processors() local 92 for (cpuno = 1; cpuno < ncpu; cpuno++) { in cpu_boot_secondary_processors() 93 if (!cpu_hatched_p(cpuno)) in cpu_boot_secondary_processors() 96 const size_t off = cpuno / CPUINDEX_DIVISOR; in cpu_boot_secondary_processors() 97 const u_long bit = __BIT(cpuno % CPUINDEX_DIVISOR); in cpu_boot_secondary_processors() 104 kcpuset_set(kcpuset_attached, cpuno); in cpu_boot_secondary_processors()
|
/netbsd/sys/arch/arm/amlogic/ |
H A D | meson_platform.c | 352 const u_int cpuno = __SHIFTOUT(mpidr, MPIDR_AFF0); in cpu_enable_meson8b() local 354 bus_space_write_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CPU_ADDR_REG(cpuno), in cpu_enable_meson8b() 358 pwr_sts &= ~(3 << (8 * cpuno)); in cpu_enable_meson8b() 362 pwr_cntl0 &= ~((3 << 18) << ((cpuno - 1) * 2)); in cpu_enable_meson8b() 368 cpuclk |= (1 << (24 + cpuno)); in cpu_enable_meson8b() 372 mempd0 &= ~((uint32_t)(0xf << 28) >> ((cpuno - 1) * 4)); in cpu_enable_meson8b() 376 pwr_cntl1 &= ~((3 << 4) << ((cpuno - 1) * 2)); in cpu_enable_meson8b() 383 MESON_AOBUS_PWR_CTRL1_REG) & ((1 << 17) << (cpuno - 1)); in cpu_enable_meson8b() 390 pwr_cntl0 &= ~(1 << cpuno); in cpu_enable_meson8b() 394 cpuclk &= ~(1 << (24 + cpuno)); in cpu_enable_meson8b() [all …]
|
/netbsd/sys/ddb/ |
H A D | db_proc.c | 134 int cpuno; in db_show_all_procs() local 203 sizeof(cpuno), (char *)&cpuno); in db_show_all_procs() 205 cpuno = -1; in db_show_all_procs() 215 l.l_stat, cpuno, l.l_flag, (long)lp, in db_show_all_procs() 291 int cpuno; in db_show_proc() local 348 sizeof(cpuno), (char *)&cpuno); in db_show_proc() 350 cpuno = -1; in db_show_proc() 352 l.l_stat, l.l_flag, cpuno, l.l_priority, l.l_refcnt); in db_show_proc()
|
/netbsd/sys/arch/arm/rockchip/ |
H A D | rk3066_smp.c | 82 rk3066_smp_enable(int cpus_phandle, u_int cpuno) in rk3066_smp_enable() argument 118 val &= ~__BIT(cpuno); in rk3066_smp_enable() 124 } while ((val & __BIT(cpuno)) != 0); in rk3066_smp_enable() 148 const u_int cpuno = __SHIFTOUT(mpidr, MPIDR_AFF0); in cpu_enable_rk3066() local 152 return rk3066_smp_enable(OF_parent(phandle), cpuno); in cpu_enable_rk3066()
|
/netbsd/sys/dev/ |
H A D | lockstat.c | 169 int i, per, slop, cpuno; in lockstat_init_tables() local 191 cpuno = 0; in lockstat_init_tables() 202 lb->lb_cpu = (uint16_t)cpuno; in lockstat_init_tables() 206 lb->lb_cpu = (uint16_t)cpuno; in lockstat_init_tables() 210 cpuno++; in lockstat_init_tables() 271 u_int cpuno, overflow; in lockstat_stop() local 322 cpuno = 0; in lockstat_stop() 324 if (cpuno >= sizeof(ld->ld_freq) / sizeof(ld->ld_freq[0])) { in lockstat_stop() 328 ld->ld_freq[cpuno++] = cpu_frequency(ci); in lockstat_stop()
|
/netbsd/sys/arch/riscv/riscv/ |
H A D | cpu_subr.c | 106 u_int cpuno; in cpu_boot_secondary_processors() local 123 for (cpuno = 1; cpuno < ncpu; cpuno++) { in cpu_boot_secondary_processors() 124 if (!cpu_hatched_p(cpuno)) in cpu_boot_secondary_processors() 127 const size_t off = cpuno / CPUINDEX_DIVISOR; in cpu_boot_secondary_processors() 128 const u_long bit = __BIT(cpuno % CPUINDEX_DIVISOR); in cpu_boot_secondary_processors()
|
/netbsd/sys/arch/arm/apple/ |
H A D | apple_intc.c | 160 const u_int cpuno = cpu_index(ci); in apple_intc_cpu_init() local 162 sc->sc_cpuid[cpuno] = AIC_READ(sc, AIC_WHOAMI); in apple_intc_cpu_init() 249 const cpuid_t cpuno = cpu_index(ci); in apple_intc_fdt_establish() local 250 struct apple_intc_percpu * const pc = &sc->sc_pc[cpuno]; in apple_intc_fdt_establish() 256 if (cpuno == 0) in apple_intc_fdt_establish() 500 const cpuid_t cpuno = cpu_index(ci); in apple_intc_attach() local 501 struct apple_intc_percpu * const pc = &sc->sc_pc[cpuno]; in apple_intc_attach() 505 pc->pc_cpuid = cpuno; in apple_intc_attach() 512 snprintf(pic->pic_name, sizeof(pic->pic_name), "AIC/%lu", cpuno); in apple_intc_attach()
|
/netbsd/sys/arch/hppa/dev/ |
H A D | cpu.c | 95 int cpuno = device_unit(self); in cpuattach() local 161 if (cpuno >= HPPA_MAXCPUS) { in cpuattach() 166 ci = &cpus[cpuno]; in cpuattach() 167 ci->ci_cpuid = cpuno; in cpuattach()
|
/netbsd/sys/arch/x86/x86/ |
H A D | cpu_ucode_intel.c | 179 cpu_ucode_intel_apply(struct cpu_ucode_softc *sc, int cpuno) in cpu_ucode_intel_apply() argument 188 cpuno != CPU_UCODE_CURRENT_CPU) in cpu_ucode_intel_apply()
|
H A D | cpu_ucode_amd.c | 235 cpu_ucode_amd_apply(struct cpu_ucode_softc *sc, int cpuno) in cpu_ucode_amd_apply() argument 245 || cpuno != CPU_UCODE_ALL_CPUS) in cpu_ucode_amd_apply()
|
/netbsd/sys/arch/x86/pci/ |
H A D | pci_machdep.c | 328 uint32_t cpuno; in pci_conf_lock() local 333 cpuno = cpu_number() + 1; in pci_conf_lock() 340 if (cpuno == cl->cl_cpuno) { in pci_conf_lock() 341 ocl->cl_cpuno = cpuno; in pci_conf_lock() 351 while (atomic_cas_32(&cl->cl_cpuno, 0, cpuno) != 0) { in pci_conf_lock() 357 __func__, cpuno, cl->cl_cpuno); in pci_conf_lock()
|
/netbsd/sys/arch/aarch64/aarch64/ |
H A D | db_machdep.c | 1088 u_int cpuno = (u_int)addr; in db_md_switch_cpu_cmd() local 1108 if (cpuno < ncpu) in db_md_switch_cpu_cmd() 1109 new_ci = cpu_lookup(cpuno); in db_md_switch_cpu_cmd() 1111 db_printf("cpu %u does not exist", cpuno); in db_md_switch_cpu_cmd() 1115 db_printf("cpu %u is not responding", cpuno); in db_md_switch_cpu_cmd()
|
/netbsd/sys/arch/arm/broadcom/ |
H A D | bcm283x_platform.c | 863 const u_int cpuno = __SHIFTOUT(mpidr, MPIDR_AFF0); in cpu_enable_bcm2836() local 865 bus_space_write_4(iot, ioh, BCM2836_LOCAL_MAILBOX3_SETN(cpuno), in cpu_enable_bcm2836()
|
/netbsd/sys/dev/pci/cxgb/ |
H A D | cxgb_t3_cpl.h | 662 __be16 cpuno; member
|