/freebsd-11-stable/sys/pc98/include/ |
H A D | cpu.h | 6 #include <i386/cpu.h>
|
/freebsd-11-stable/sys/mips/sibyte/ |
H A D | sb_scd.h | 39 void sb_enable_intsrc(int cpu, int src); 40 void sb_disable_intsrc(int cpu, int src); 41 uint64_t sb_read_intsrc_mask(int cpu); 42 void sb_write_intsrc_mask(int cpu, uint64_t mask); 43 void sb_write_intmap(int cpu, int intsrc, int intrnum); 44 int sb_read_intmap(int cpu, int intsrc);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/cpc/ |
H A D | tst.allcpus.ksh | 43 cpu=0 61 /cpus[cpu] != 1/ 63 cpus[cpu] = 1; 64 @a[cpu] = count(); 77 while [ $cpu -le $numproc ] 79 if [ "`psrinfo -s $cpu 2> /dev/null`" -eq 1 ]; then 80 printf "%9d %16d\n" $cpu 1 >> $scriptout 82 allpids[$cpu]=$! 83 pbind -b $cpu $! 85 cpu [all...] |
/freebsd-11-stable/contrib/gcc/config/i386/ |
H A D | driver-i386.c | 64 const char *cpu = NULL; local 158 cpu = "core2"; 162 cpu = "nocona"; 164 cpu = "prescott"; 167 cpu = "pentium4"; 169 cpu = "pentiumpro"; 171 cpu = "pentium-mmx"; 173 cpu = "pentium"; 175 cpu = "i386"; 178 cpu 293 const char *cpu; local [all...] |
/freebsd-11-stable/sys/dev/hwpmc/ |
H A D | hwpmc_tsc.c | 71 tsc_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 74 (void) cpu; 76 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 77 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); 98 tsc_config_pmc(int cpu, int ri, struct pmc *pm) argument 102 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); 104 KASSERT(cpu >= 0 && cpu < pmc_cpu_ma 120 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 152 tsc_get_config(int cpu, int ri, struct pmc **ppm) argument 179 tsc_pcpu_fini(struct pmc_mdep *md, int cpu) argument 200 tsc_pcpu_init(struct pmc_mdep *md, int cpu) argument 235 tsc_read_pmc(int cpu, int ri, pmc_value_t *v) argument 264 tsc_release_pmc(int cpu, int ri, struct pmc *pmc) argument 287 tsc_start_pmc(int cpu, int ri) argument 299 tsc_stop_pmc(int cpu, int ri) argument 311 tsc_write_pmc(int cpu, int ri, pmc_value_t v) argument [all...] |
H A D | hwpmc_soft.c | 36 #include <machine/cpu.h> 96 soft_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 102 (void) cpu; 104 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 105 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); 135 soft_config_pmc(int cpu, int ri, struct pmc *pm) argument 139 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); 141 KASSERT(cpu > 158 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 191 soft_get_config(int cpu, int ri, struct pmc **ppm) argument 205 soft_pcpu_fini(struct pmc_mdep *md, int cpu) argument 229 soft_pcpu_init(struct pmc_mdep *md, int cpu) argument 263 soft_read_pmc(int cpu, int ri, pmc_value_t *v) argument 287 soft_write_pmc(int cpu, int ri, pmc_value_t v) argument 311 soft_release_pmc(int cpu, int ri, struct pmc *pmc) argument 343 soft_start_pmc(int cpu, int ri) argument 370 soft_stop_pmc(int cpu, int ri) argument [all...] |
H A D | hwpmc_arm64.c | 39 #include <machine/cpu.h> 164 arm64_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 171 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 172 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); 176 pac = arm64_pcpu[cpu]; 194 arm64_read_pmc(int cpu, int ri, pmc_value_t *v) argument 199 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 200 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); 218 arm64_write_pmc(int cpu, int ri, pmc_value_t v) argument 240 arm64_config_pmc(int cpu, int ri, struct pmc *pm) argument 263 arm64_start_pmc(int cpu, int ri) argument 291 arm64_stop_pmc(int cpu, int ri) argument 309 arm64_release_pmc(int cpu, int ri, struct pmc *pmc) argument 326 arm64_intr(int cpu, struct trapframe *tf) argument 373 arm64_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 402 arm64_get_config(int cpu, int ri, struct pmc **ppm) argument 428 arm64_pcpu_init(struct pmc_mdep *md, int cpu) argument 466 arm64_pcpu_fini(struct pmc_mdep *md, int cpu) argument [all...] |
H A D | hwpmc_armv7.c | 40 #include <machine/cpu.h> 132 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 140 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 141 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); 145 pac = armv7_pcpu[cpu]; 162 armv7_read_pmc(int cpu, int ri, pmc_value_t *v) argument 167 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 168 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); 189 armv7_write_pmc(int cpu, int ri, pmc_value_t v) argument 214 armv7_config_pmc(int cpu, int ri, struct pmc *pm) argument 237 armv7_start_pmc(int cpu, int ri) argument 263 armv7_stop_pmc(int cpu, int ri) argument 281 armv7_release_pmc(int cpu, int ri, struct pmc *pmc) argument 298 armv7_intr(int cpu, struct trapframe *tf) argument 349 armv7_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 378 armv7_get_config(int cpu, int ri, struct pmc **ppm) argument 404 armv7_pcpu_init(struct pmc_mdep *md, int cpu) argument 442 armv7_pcpu_fini(struct pmc_mdep *md, int cpu) argument [all...] |
H A D | hwpmc_xscale.c | 248 xscale_allocate_pmc(int cpu, int ri, struct pmc *pm, argument 255 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 256 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu)); 284 xscale_read_pmc(int cpu, int ri, pmc_value_t *v) argument 289 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 290 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu)); 294 pm = xscale_pcpu[cpu]->pc_xscalepmcs[ri].phw_pmc; 306 xscale_write_pmc(int cpu, in argument 328 xscale_config_pmc(int cpu, int ri, struct pmc *pm) argument 351 xscale_start_pmc(int cpu, int ri) argument 421 xscale_stop_pmc(int cpu, int ri) argument 483 xscale_release_pmc(int cpu, int ri, struct pmc *pmc) argument 500 xscale_intr(int cpu, struct trapframe *tf) argument 507 xscale_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument 536 xscale_get_config(int cpu, int ri, struct pmc **ppm) argument 559 xscale_pcpu_init(struct pmc_mdep *md, int cpu) argument 601 xscale_pcpu_fini(struct pmc_mdep *md, int cpu) argument [all...] |
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | identcpu.c | 41 #include <machine/cpu.h> 155 print_cpu_features(u_int cpu) argument 159 printf("CPU%3d: %s %s r%dp%d", cpu, cpu_desc[cpu].cpu_impl_name, 160 cpu_desc[cpu].cpu_part_name, cpu_desc[cpu].cpu_variant, 161 cpu_desc[cpu].cpu_revision); 167 printf(" %2d", CPU_AFF3(cpu_desc[cpu].mpidr)); 170 printf(" %2d", CPU_AFF2(cpu_desc[cpu].mpidr)); 173 printf(" %2d", CPU_AFF1(cpu_desc[cpu] 676 u_int cpu; local [all...] |
/freebsd-11-stable/sys/amd64/vmm/ |
H A D | vmm_lapic.h | 35 int lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval, 37 int lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t wval, 40 int lapic_mmio_read(void *vm, int cpu, uint64_t gpa, 42 int lapic_mmio_write(void *vm, int cpu, uint64_t gpa, 47 * to the 'cpu', the state is recorded in IRR. 49 int lapic_set_intr(struct vm *vm, int cpu, int vector, bool trig); 54 lapic_intr_level(struct vm *vm, int cpu, int vector) argument 57 return (lapic_set_intr(vm, cpu, vector, LAPIC_TRIG_LEVEL)); 61 lapic_intr_edge(struct vm *vm, int cpu, int vector) argument 64 return (lapic_set_intr(vm, cpu, vecto [all...] |
H A D | vmm_lapic.c | 53 lapic_set_intr(struct vm *vm, int cpu, int vector, bool level) argument 57 if (cpu < 0 || cpu >= vm_get_maxcpus(vm)) 67 vlapic = vm_lapic(vm, cpu); 69 vcpu_notify_event(vm, cpu, true); 74 lapic_set_local_intr(struct vm *vm, int cpu, int vector) argument 80 if (cpu < -1 || cpu >= vm_get_maxcpus(vm)) 83 if (cpu == -1) 86 CPU_SETOF(cpu, 159 lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval, bool *retu) argument 179 lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t val, bool *retu) argument 198 lapic_mmio_write(void *vm, int cpu, uint64_t gpa, uint64_t wval, int size, void *arg) argument 220 lapic_mmio_read(void *vm, int cpu, uint64_t gpa, uint64_t *rval, int size, void *arg) argument [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sched/ |
H A D | tst.oncpu.d | 32 sched:::on-cpu 38 sched:::off-cpu 44 sched:::off-cpu
|
H A D | tst.stackdepth.d | 31 sched:::on-cpu
|
/freebsd-11-stable/sys/powerpc/include/ |
H A D | openpicreg.h | 116 /* interrupt destination cpu */ 125 #define OPENPIC_PCPU_BASE(cpu) (0x20000 + (cpu) * 0x1000) 127 #define OPENPIC_PCPU_IPI_DISPATCH(cpu, ipi) \ 128 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_IPI_DISPATCH(ipi)) 130 #define OPENPIC_PCPU_TPR(cpu) \ 131 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_TPR) 133 #define OPENPIC_PCPU_WHOAMI(cpu) \ 134 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_WHOAMI) 136 #define OPENPIC_PCPU_IACK(cpu) \ [all...] |
/freebsd-11-stable/usr.sbin/pmcstat/ |
H A D | pmcpl_annotate_cg.h | 42 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
|
H A D | pmcpl_annotate.h | 41 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
|
/freebsd-11-stable/sys/riscv/riscv/ |
H A D | identcpu.c | 43 #include <machine/cpu.h> 111 u_int cpu; local 120 cpu = PCPU_GET(cpuid); 126 cpu_desc[cpu].cpu_impl = impl_id; 127 cpu_desc[cpu].cpu_impl_name = cpu_implementers[i].impl_name; 137 cpu_desc[cpu].cpu_part_num = part_id; 138 cpu_desc[cpu].cpu_part_name = cpu_partsp[i].part_name; 144 if (cpu == 0 || bootverbose) { 145 printf("CPU(%d): %s %s\n", cpu, 146 cpu_desc[cpu] [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | powerd | 21 sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
|
/freebsd-11-stable/sys/dev/cpuctl/ |
H A D | cpuctl.c | 73 static int cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, 75 static int cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, 77 static int cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, 79 static int cpuctl_do_eval_cpu_features(int cpu, struct thread *td); 80 static int cpuctl_do_update(int cpu, cpuctl_update_args_t *data, 82 static int update_intel(int cpu, cpuctl_update_args_t *args, 84 static int update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td); 85 static int update_via(int cpu, cpuctl_update_args_t *args, 99 * This function checks if specified cpu enabled or not. 102 cpu_enabled(int cpu) argument 126 set_cpu(int cpu, struct thread *td) argument 157 int cpu, ret; local 210 cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, struct thread *td) argument 236 cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, struct thread *td) argument 253 cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, struct thread *td) argument 304 cpuctl_do_update(int cpu, cpuctl_update_args_t *data, struct thread *td) argument 337 int cpu; member in struct:ucode_update_data 352 update_intel(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 415 update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 449 update_via(int cpu, cpuctl_update_args_t *args, struct thread *td) argument 522 cpuctl_do_eval_cpu_features(int cpu, struct thread *td) argument 557 int cpu; local 573 int cpu; local [all...] |
/freebsd-11-stable/usr.bin/procstat/ |
H A D | procstat_cs.c | 53 int once, twice, lastcpu, cpu; local 73 xo_emit("{:cpu/%3d/%d} ", kipp->ki_oncpu); 75 xo_emit("{:cpu/%3d/%d} ", kipp->ki_lastcpu); 77 xo_emit("{:cpu/%3s/%s} ", "-"); 90 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) { 91 if (CPU_ISSET(cpu, &mask)) { 94 cpu); 96 } else if (cpu [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | cpuvar.h | 83 typedef struct cpu { struct 87 struct cpu *cpu_self; /* pointer to itself */ 94 struct lgrp_ld *cpu_lpl; /* pointer to this cpu's load */ 106 struct cpu *cpu_next; /* next existing CPU */ 107 struct cpu *cpu_prev; /* prev existing CPU */ 108 struct cpu *cpu_next_onln; /* next online (enabled) CPU */ 109 struct cpu *cpu_prev_onln; /* prev online (enabled) CPU */ 110 struct cpu *cpu_next_part; /* next CPU in partition */ 111 struct cpu *cpu_prev_part; /* prev CPU in partition */ 112 struct cpu *cpu_next_lgr [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/ |
H A D | tst.basic.ksh | 48 xdt:sched::on-cpu 54 xdt:sched::off-cpu 60 xdt:sched::off-cpu
|
/freebsd-11-stable/sys/dev/dpaa/ |
H A D | portals_common.c | 53 dpaa_portal_alloc_res(device_t dev, struct dpaa_portals_devinfo *di, int cpu) argument 100 sc->sc_dp[cpu].dp_regs_mapped = 1; 104 sc->sc_dp[cpu].dp_ce_pa = rle->start + sc->sc_dp_pa; 105 sc->sc_dp[cpu].dp_ce_size = rle->count; 107 sc->sc_dp[cpu].dp_ci_pa = rle->start + sc->sc_dp_pa; 108 sc->sc_dp[cpu].dp_ci_size = rle->count; 112 sc->sc_dp[cpu].dp_irid = 0; 113 sc->sc_dp[cpu].dp_ires = bus_alloc_resource(dev, 114 SYS_RES_IRQ, &sc->sc_dp[cpu].dp_irid, rle->start, rle->end, 117 sc->sc_dp[cpu] 152 unsigned int cpu; local [all...] |
/freebsd-11-stable/sys/cddl/dev/dtrace/ |
H A D | dtrace_debug.c | 49 dtrace_debug_lock(int cpu) argument 55 while (atomic_cmpset_acq_ptr(&dtrace_debug_data[cpu].lock, 0, tid) == 0) /* Loop until the lock is obtained. */ 60 dtrace_debug_unlock(int cpu) argument 62 atomic_store_rel_ptr(&dtrace_debug_data[cpu].lock, 0); 155 dtrace_debug__putc(int cpu, char c) argument 159 d = &dtrace_debug_data[cpu]; 177 int cpu; local 179 cpu = curcpu; 180 dtrace_debug_lock(cpu); 182 dtrace_debug__putc(cpu, 190 int cpu; local 230 dtrace_debug_vprintf(int cpu, const char *fmt, va_list ap) argument 540 int cpu; local [all...] |