/freebsd-current/sys/amd64/amd64/ |
H A D | mp_machdep.c | 75 #include <machine/cpu.h> 191 int cpu, gsel_tss, x; local 194 cpu = bootAP; 197 ucode_load_ap(cpu); 201 pcpu_init(pc, cpu, sizeof(struct pcpu)); 202 dpcpu_init(dpcpu, cpu); 203 pc->pc_apic_id = cpu_apic_ids[cpu]; 298 int cpu; local 301 for (cpu = 1; cpu < mp_ncpu 331 int apic_id, cpu, domain, i; local 558 invl_scoreboard_getcpu(u_int cpu) argument 564 invl_scoreboard_slot(u_int cpu) argument 594 int cpu; local 641 curcpu, cpu)); local [all...] |
/freebsd-current/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 37 #include <sys/cpu.h> 81 int cpu; member in struct:cpufreq_dt_softc 90 int cpu; local 94 CPU_FOREACH(cpu) { 95 if (CPU_ISSET(cpu, &sc->cpus)) { 96 pc = pcpu_find(cpu); 176 DPRINTF(dev, "Working on cpu %d\n", sc->cpu); 177 DPRINTF(dev, "We have %d cpu on this dev\n", CPU_COUNT(&sc->cpus)); 178 if (!CPU_ISSET(sc->cpu, 477 int cpu; local [all...] |
/freebsd-current/sys/kern/ |
H A D | kern_clocksource.c | 54 #include <machine/cpu.h> 270 int cpu; local 280 CPU_FOREACH(cpu) { 281 state = DPCPU_ID_PTR(cpu, timerstate); 285 c = cpu; 304 int cpu, bcast; local 336 CPU_FOREACH(cpu) { 337 state = DPCPU_ID_PTR(cpu, timerstate); 342 if (curcpu != cpu) { 358 CPU_FOREACH(cpu) { 480 int cpu; local 592 int base, div, cpu; local 831 cpu_new_callout(int cpu, sbintime_t bt, sbintime_t bt_opt) argument [all...] |
H A D | subr_smp.c | 47 #include <machine/cpu.h> 98 int smp_cpus = 1; /* how many cpu's running */ 785 int cpu; local 788 cpu = 0; 794 cpu = smp_topo_addleaf(top, child, share, count, flags, cpu); 805 int cpu; local 809 cpu = 0; 822 cpu = smp_topo_addleaf(l2g, l1g, l1share, l1count, 823 l1flags, cpu); 829 smp_topo_find(struct cpu_group *top, int cpu) argument 917 int cpu; local 981 int cpu; local 1038 int cpu; local [all...] |
H A D | subr_lock.c | 238 * Array of objects and profs for each type of object for each cpu. Spinlocks 241 * we only need a critical section to protect the per-cpu lists. 257 #define LP_CPU(cpu) (DPCPU_ID_PTR((cpu), lp)) 301 int cpu; local 303 CPU_FOREACH(cpu) { 304 lock_prof_init_type(&LP_CPU(cpu)->lpc_types[0]); 305 lock_prof_init_type(&LP_CPU(cpu)->lpc_types[1]); 315 * Spin relinquishing our cpu so that quiesce_all_cpus may 326 int enabled, i, cpu; local 394 int cpu; local 445 int error, cpu, t; local [all...] |
/freebsd-current/sys/powerpc/powerpc/ |
H A D | openpic.c | 76 u_int cpu, ipi, irq; local 176 for (cpu = 0; cpu < sc->sc_ncpu; cpu++) 177 openpic_write(sc, OPENPIC_PCPU_TPR(cpu), 15); 202 /* send all interrupts to cpu 0 */ 206 /* clear all pending interrupts from cpu 0 */ 212 for (cpu = 0; cpu < sc->sc_ncpu; cpu 247 int cpu, ncpu; local 347 openpic_ipi(device_t dev, u_int cpu) argument [all...] |
H A D | platform.c | 53 #include <machine/cpu.h> 254 platform_timebase_freq(struct cpuref *cpu) argument 256 return (PLATFORM_TIMEBASE_FREQ(plat_obj, cpu)); 269 platform_smp_first_cpu(struct cpuref *cpu) argument 271 return (PLATFORM_SMP_FIRST_CPU(plat_obj, cpu)); 275 platform_smp_next_cpu(struct cpuref *cpu) argument 277 return (PLATFORM_SMP_NEXT_CPU(plat_obj, cpu)); 281 platform_smp_get_bsp(struct cpuref *cpu) argument 283 return (PLATFORM_SMP_GET_BSP(plat_obj, cpu)); 287 platform_smp_start_cpu(struct pcpu *cpu) argument [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/ |
H A D | tst.temporal2.ksh | 51 * Use two enablings of the same probe, so that cpu 0 will always 60 /cpu == 0/ 66 /cpu != 0/ 72 /cpu != 0/
|
/freebsd-current/contrib/bearssl/T0/ |
H A D | WordData.cs | 75 internal override void Run(CPU cpu) argument 78 cpu.Push(new TValue(offset, new TPointerBlob(blob)));
|
H A D | OpcodeConst.cs | 37 internal override void Run(CPU cpu) argument 39 cpu.Push(val);
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | sysctl.sh | 39 vmstat -i | grep -q cpu || echo "vmstat -i Failed"
|
/freebsd-current/sys/xen/ |
H A D | xen_intr.h | 122 * \param cpu The cpu on which interrupt events should be delivered. 135 int xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu, 144 * \param cpu The cpu receiving the IPI. 152 int xen_intr_alloc_and_bind_ipi(u_int cpu,
|
/freebsd-current/sys/riscv/include/ |
H A D | cpu.h | 98 void identify_cpu(u_int cpu); 99 void printcpuinfo(u_int cpu);
|
/freebsd-current/sys/dev/dpaa/ |
H A D | bman_fdt.c | 140 bman_portal_find_cpu(int cpu) argument 152 if (reg == cpu) 167 ihandle_t cpu; local 186 /* Checkout related cpu */ 187 if (OF_getprop(child, "cpu-handle", (void *)&cpu, 188 sizeof(cpu)) <= 0) { 189 cpu = bman_portal_find_cpu(cpus); 190 if (cpu <= 0) 193 /* Acquire cpu numbe [all...] |
H A D | qman_fdt.c | 140 qman_portal_find_cpu(int cpu) argument 152 if (reg == cpu) 166 ihandle_t cpu; local 214 /* Checkout related cpu */ 215 if (OF_getprop(child, "cpu-handle", (void *)&cpu, 216 sizeof(cpu)) <= 0) { 217 cpu = qman_portal_find_cpu(cpus); 218 if (cpu <= 0) 221 /* Acquire cpu numbe [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | workqueue.h | 147 #define schedule_delayed_work_on(cpu, dwork, delay) \ 148 linux_queue_delayed_work_on(cpu, system_wq, dwork, delay) 150 #define queue_work_on(cpu, wq, work) \ 151 linux_queue_work_on(cpu, wq, work) 156 #define queue_delayed_work_on(cpu, wq, dwork, delay) \ 157 linux_queue_delayed_work_on(cpu, wq, dwork, delay) 246 extern bool linux_queue_work_on(int cpu, struct workqueue_struct *, struct work_struct *); 247 extern bool linux_queue_delayed_work_on(int cpu, struct workqueue_struct *,
|
/freebsd-current/sys/x86/include/xen/ |
H A D | arch-intr.h | 89 xen_arch_intr_event_bind(struct xenisrc *isrc, u_int cpu) argument 92 return (intr_event_bind(isrc->xi_arch.intsrc.is_event, cpu));
|
/freebsd-current/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 44 #include <machine/cpu.h> 79 static int chrp_smp_start_cpu(platform_t, struct pcpu *cpu); 330 if (res > 0 && strcmp(buf, "cpu") == 0) 385 get_cpu_reg(phandle_t cpu, cell_t *reg) argument 389 res = OF_getproplen(cpu, "reg"); 392 OF_getencprop(cpu, "reg", reg, res); 398 phandle_t cpu, dev, chosen, pbsp; local 427 /* Look for boot CPU in /chosen/cpu and /chosen/fdtbootcpu */ 435 /* /chosen/cpu */ 436 if (OF_getproplen(chosen, "cpu") [all...] |
/freebsd-current/contrib/processor-trace/libipt/src/ |
H A D | pt_config.c | 38 int pt_cpu_errata(struct pt_errata *errata, const struct pt_cpu *cpu) argument 40 if (!errata || !cpu) 46 if (cpu->vendor != pcv_intel) 49 switch (cpu->family) { 51 switch (cpu->model) {
|
/freebsd-current/contrib/netbsd-tests/bin/ps/ |
H A D | t_ps.sh | 96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command' 97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command' 98 u_keywords='user pid %cpu %mem vsz rss tt state start time command' 99 v_keywords='pid state time sl re pagein vsz rss lim tsiz %cpu %mem command' 208 check_heading_keywords '-O %cpu,%mem' \ 209 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')" 210 check_heading_keywords '-O %cpu -O %mem' \ 211 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')" 212 check_heading_keywords '-O%cpu -O%mem' \ 213 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu [all...] |
/freebsd-current/sys/x86/iommu/ |
H A D | intel_intrmap.c | 96 iommu_map_msi_intr(device_t src, u_int cpu, u_int vector, u_int cookie, argument 113 *addr = MSI_INTEL_ADDR_BASE | ((cpu & 0xff) << 12); 115 *addr |= ((uint64_t)cpu & 0xffffff00) << 32; 117 KASSERT(cpu <= 0xff, ("cpu id too big %d", cpu)); 123 low = (DMAR_X2APIC(unit) ? DMAR_IRTE1_DST_x2APIC(cpu) : 124 DMAR_IRTE1_DST_xAPIC(cpu)) | DMAR_IRTE1_V(vector) | 153 iommu_map_ioapic_intr(u_int ioapic_id, u_int cpu, u_int vector, bool edge, argument 192 low |= (DMAR_X2APIC(unit) ? DMAR_IRTE1_DST_x2APIC(cpu) [all...] |
/freebsd-current/sys/arm/mv/clk/ |
H A D | periph.h | 141 .clk_def.cpu.tbg_mux.clkdef.name = _tbg_mux_name, \ 142 .clk_def.cpu.tbg_mux.offset = TBG_SEL, \ 143 .clk_def.cpu.tbg_mux.shift = _tbg_mux_shift, \ 144 .clk_def.cpu.tbg_mux.width = 0x2, \ 145 .clk_def.cpu.tbg_mux.mux_flags = 0x0, \ 146 .clk_def.cpu.div.clkdef.name = _div1_name, \ 147 .clk_def.cpu.div.offset = _div1_reg, \ 148 .clk_def.cpu.div.i_shift = _div1_shift, \ 149 .clk_def.cpu.div.i_width = 0x3, \ 150 .clk_def.cpu 375 struct a37x0_periph_clk_cpu_def cpu; member in union:a37x0_periph_clocks_defs [all...] |
/freebsd-current/usr.bin/top/ |
H A D | display.c | 423 int cpu; local 425 for (cpu = 0; cpu < num_cpus; cpu++) { 432 value = printf("\nCPU %d: ", cpu); 469 int cpu; local 471 for (cpu = 0; cpu < num_cpus; cpu++) { 474 Move_to(cpustates_column, y_cpustates + cpu); 519 int cpu, value; local [all...] |
/freebsd-current/sys/amd64/acpica/ |
H A D | acpi_wakeup.c | 47 #include <machine/cpu.h> 108 acpi_wakeup_ap(struct acpi_softc *sc, int cpu) argument 112 int apic_id = cpu_apic_ids[cpu]; 115 pcb = &susppcbs[cpu]->sp_pcb; 124 if (!CPU_ISSET(cpu, &suspended_cpus)) 144 int cpu; local 161 for (cpu = 1; cpu < mp_ncpus; cpu++) { 162 if (!CPU_ISSET(cpu, [all...] |
/freebsd-current/sys/cddl/dev/fbt/x86/ |
H A D | fbt_isa.c | 62 solaris_cpu_t *cpu; local 77 cpu = &solaris_cpu[curcpu]; 99 cpu->cpu_dtrace_caller = stack[0]; 119 cpu->cpu_dtrace_caller = stack[i++]; 132 cpu->cpu_dtrace_caller = 0; 142 cpu->cpu_dtrace_caller = stack[0]; 149 cpu->cpu_dtrace_caller = 0;
|