Searched refs:cpu (Results 1 - 25 of 756) sorted by relevance

1234567891011>>

/freebsd-10.1-release/sys/pc98/include/
H A Dcpu.h6 #include <i386/cpu.h>
/freebsd-10.1-release/sys/mips/sibyte/
H A Dsb_scd.h39 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-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/cpc/
H A Dtst.allcpus.ksh43 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-10.1-release/contrib/gcc/config/i386/
H A Ddriver-i386.c64 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-10.1-release/sys/dev/hwpmc/
H A Dhwpmc_tsc.c71 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 PMCDBG(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 Dhwpmc_soft.c36 #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 PMCDBG(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 Dhwpmc_xscale.c251 xscale_allocate_pmc(int cpu, int ri, struct pmc *pm, argument
258 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
259 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
287 xscale_read_pmc(int cpu, int ri, pmc_value_t *v) argument
292 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
293 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
297 pm = xscale_pcpu[cpu]->pc_xscalepmcs[ri].phw_pmc;
309 xscale_write_pmc(int cpu, in argument
331 xscale_config_pmc(int cpu, int ri, struct pmc *pm) argument
354 xscale_start_pmc(int cpu, int ri) argument
424 xscale_stop_pmc(int cpu, int ri) argument
486 xscale_release_pmc(int cpu, int ri, struct pmc *pmc) argument
503 xscale_intr(int cpu, struct trapframe *tf) argument
510 xscale_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) argument
539 xscale_get_config(int cpu, int ri, struct pmc **ppm) argument
562 xscale_pcpu_init(struct pmc_mdep *md, int cpu) argument
604 xscale_pcpu_fini(struct pmc_mdep *md, int cpu) argument
[all...]
/freebsd-10.1-release/cddl/contrib/dtracetoolkit/Bin/
H A Dcswstat.d52 sched:::off-cpu
56 start[cpu] = timestamp;
59 sched:::on-cpu
60 /start[cpu]/
63 times += timestamp - start[cpu];
64 start[cpu] = 0;
/freebsd-10.1-release/cddl/contrib/dtracetoolkit/Kernel/
H A Dcswstat.d52 sched:::off-cpu
56 start[cpu] = timestamp;
59 sched:::on-cpu
60 /start[cpu]/
63 times += timestamp - start[cpu];
64 start[cpu] = 0;
/freebsd-10.1-release/sys/ofed/drivers/net/mlx4/
H A Dsys_tune.c76 int cpu = smp_processor_id(); local
78 busy_cpus_ptr = &(busy_cpu_count[per_cpu(idle_cpu_group, cpu)]);
80 sys_tune_set_state(cpu, 2);
94 sys_tune_set_state(cpu, 3);
104 sys_tune_set_state(cpu, 1);
111 sys_tune_set_state(cpu, 0);
150 static int sys_tune_cpu_group(int cpu) argument
159 mask = topology_thread_cpumask(cpu);
161 return cpu;
163 for_each_cpu_mask(cpu, *(mas
174 sys_tune_add_cpu(int cpu) argument
188 sys_tune_del_cpu(int cpu) argument
213 int cpu = (long)hcpu; local
269 int cpu; local
298 int cpu; local
[all...]
/freebsd-10.1-release/sys/dev/cpuctl/
H A Dcpuctl.c68 static int cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd,
70 static void cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data,
72 static void cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data,
74 static int cpuctl_do_update(int cpu, cpuctl_update_args_t *data,
76 static int update_intel(int cpu, cpuctl_update_args_t *args,
78 static int update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td);
79 static int update_via(int cpu, cpuctl_update_args_t *args,
93 * This function checks if specified cpu enabled or not.
96 cpu_enabled(int cpu) argument
99 return (pmc_cpu_is_disabled(cpu)
120 set_cpu(int cpu, struct thread *td) argument
151 int cpu = dev2unit(dev); local
200 cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data, struct thread *td) argument
221 cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, struct thread *td) argument
236 cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, struct thread *td) argument
282 cpuctl_do_update(int cpu, cpuctl_update_args_t *data, struct thread *td) argument
311 update_intel(int cpu, cpuctl_update_args_t *args, struct thread *td) argument
370 update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td) argument
425 update_via(int cpu, cpuctl_update_args_t *args, struct thread *td) argument
501 int cpu; local
517 int cpu; local
[all...]
/freebsd-10.1-release/sys/amd64/vmm/
H A Dvmm_lapic.h35 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 Dvmm_msr.h39 void guest_msrs_init(struct vm *vm, int cpu);
41 void restore_host_msrs(struct vm *vm, int cpu);
42 void restore_guest_msrs(struct vm *vm, int cpu);
H A Dvmm_lapic.c54 lapic_set_intr(struct vm *vm, int cpu, int vector, bool level) argument
58 if (cpu < 0 || cpu >= VM_MAXCPU)
64 vlapic = vm_lapic(vm, cpu);
66 vcpu_notify_event(vm, cpu, true);
71 lapic_set_local_intr(struct vm *vm, int cpu, int vector) argument
77 if (cpu < -1 || cpu >= VM_MAXCPU)
80 if (cpu == -1)
83 CPU_SETOF(cpu,
162 lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval, bool *retu) argument
182 lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t val, bool *retu) argument
201 lapic_mmio_write(void *vm, int cpu, uint64_t gpa, uint64_t wval, int size, void *arg) argument
223 lapic_mmio_read(void *vm, int cpu, uint64_t gpa, uint64_t *rval, int size, void *arg) argument
[all...]
/freebsd-10.1-release/sys/ia64/ia64/
H A Dhighfp.c52 ia64_highfp_ipi(struct pcpu *cpu) argument
56 ipi_send(cpu, ia64_ipi_highfp);
57 error = msleep_spin(&cpu->pc_fpcurthread, &ia64_highfp_mtx,
67 struct pcpu *cpu; local
72 cpu = pcb->pcb_fpcpu;
73 if (cpu != NULL) {
74 KASSERT(cpu->pc_fpcurthread == td,
75 ("cpu->pc_fpcurthread != td"));
78 cpu->pc_fpcurthread = NULL;
82 return ((cpu !
89 struct pcpu *cpu; local
132 struct pcpu *cpu; local
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sched/
H A Dtst.oncpu.d32 sched:::on-cpu
38 sched:::off-cpu
44 sched:::off-cpu
H A Dtst.stackdepth.d31 sched:::on-cpu
/freebsd-10.1-release/sys/powerpc/include/
H A Dopenpicreg.h115 /* interrupt destination cpu */
124 #define OPENPIC_PCPU_BASE(cpu) (0x20000 + (cpu) * 0x1000)
126 #define OPENPIC_PCPU_IPI_DISPATCH(cpu, ipi) \
127 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_IPI_DISPATCH(ipi))
129 #define OPENPIC_PCPU_TPR(cpu) \
130 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_TPR)
132 #define OPENPIC_PCPU_WHOAMI(cpu) \
133 (OPENPIC_PCPU_BASE(cpu) + OPENPIC_WHOAMI)
135 #define OPENPIC_PCPU_IACK(cpu) \
[all...]
/freebsd-10.1-release/usr.sbin/pmcstat/
H A Dpmcpl_annotate.h39 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
H A Dpmcpl_annotate_cg.h40 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
/freebsd-10.1-release/etc/rc.d/
H A Dpowerd20 sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcpuvar.h88 typedef struct cpu { struct
92 struct cpu *cpu_self; /* pointer to itself */
99 struct lgrp_ld *cpu_lpl; /* pointer to this cpu's load */
111 struct cpu *cpu_next; /* next existing CPU */
112 struct cpu *cpu_prev; /* prev existing CPU */
113 struct cpu *cpu_next_onln; /* next online (enabled) CPU */
114 struct cpu *cpu_prev_onln; /* prev online (enabled) CPU */
115 struct cpu *cpu_next_part; /* next CPU in partition */
116 struct cpu *cpu_prev_part; /* prev CPU in partition */
117 struct cpu *cpu_next_lgr
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.basic.ksh48 xdt:sched::on-cpu
54 xdt:sched::off-cpu
60 xdt:sched::off-cpu
H A Dtst.schedenable.ksh55 xdt:sched::off-cpu,
56 xdt:sched::on-cpu,
57 xdt:sched::idle-off-cpu,
58 xdt:sched::idle-on-cpu,
/freebsd-10.1-release/sys/cddl/dev/dtrace/
H A Ddtrace_debug.c49 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...]

Completed in 133 milliseconds

1234567891011>>