/freebsd-10.2-release/sys/mips/rmi/ |
H A D | mpwait.S | 30 #include <machine/cpu.h>
|
/freebsd-10.2-release/sys/xen/ |
H A D | xen_intr.h | 126 * \param cpu The cpu on which interrupt events should be delivered. 139 int xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu, 149 * \param cpu The cpu receiving the IPI. 157 int xen_intr_alloc_and_bind_ipi(device_t dev, u_int cpu,
|
/freebsd-10.2-release/sys/sparc64/include/ |
H A D | intr_machdep.h | 95 void intr_add_cpu(u_int cpu); 97 int intr_bind(int vec, u_char cpu);
|
/freebsd-10.2-release/gnu/usr.bin/binutils/libbfd/ |
H A D | Makefile.sparc64 | 6 cpu-sparc.c \
|
/freebsd-10.2-release/sys/dev/hyperv/vmbus/ |
H A D | hv_vmbus_drv_freebsd.c | 77 int cpu; local 82 cpu = (int)(long)arg; 83 KASSERT(cpu <= mp_maxid, ("VMBUS: vmbus_msg_swintr: " 84 "cpu out of range!")); 86 page_addr = hv_vmbus_g_context.syn_ic_msg_page[cpu]; 135 int cpu; local 140 cpu = PCPU_GET(cpuid); 148 page_addr = hv_vmbus_g_context.syn_ic_event_page[cpu]; 156 swi_sched(hv_vmbus_g_context.event_swintr[cpu], 0); 164 * current cpu 190 int cpu; local [all...] |
H A D | hv_hv.c | 362 int cpu; local 371 cpu = PCPU_GET(cpuid); 381 hv_vmbus_g_context.syn_ic_msg_page[cpu] = 382 setup_args->page_buffers[2 * cpu]; 383 hv_vmbus_g_context.syn_ic_event_page[cpu] = 384 setup_args->page_buffers[2 * cpu + 1]; 393 hv_vmbus_g_context.syn_ic_msg_page[cpu])) >> PAGE_SHIFT); 403 hv_vmbus_g_context.syn_ic_event_page[cpu])) >> PAGE_SHIFT); 429 hv_vmbus_g_context.hv_vcpu_index[cpu] = (uint32_t)hv_vcpu_index;
|
/freebsd-10.2-release/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-10.2-release/sys/dev/hwpmc/ |
H A D | hwpmc_octeon.c | 36 #include <machine/cpu.h> 162 mips_get_perfctl(int cpu, int ri, uint32_t event, uint32_t caps) argument 166 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 167 ("[mips,%d] illegal CPU value %d", __LINE__, cpu));
|
/freebsd-10.2-release/sys/kern/ |
H A D | sched_ule.c | 77 #include <machine/cpu.h> 112 #define THREAD_CAN_SCHED(td, cpu) \ 113 CPU_ISSET((cpu), &(td)->td_cpuset->cs_mask) 134 * SCHED_TICK_SECS: Number of seconds to average the cpu usage across. 135 * SCHED_TICK_TARG: Number of hz ticks to average the cpu usage across. 150 * assigned a priority based on their recent cpu utilization as expressed 172 * cpu utilization in that it expresses the voluntary time slept vs time ran 173 * while cpu utilization includes all time not running. This more accurately 235 struct cpu_group *tdq_cg; /* Pointer to cpu topology. */ 314 void tdq_print(int cpu); 391 tdq_print(int cpu) argument 654 int cpu, i, hload, lload, load, total, rnd, *rndptr; local 910 int cpu; local 941 int cpu; local 977 int cpu; local 1031 int cpu; local 1065 runq_steal_from(struct runq *rq, int cpu, u_char start) argument 1114 runq_steal(struct runq *rq, int cpu) argument 1143 tdq_steal(struct tdq *tdq, int cpu) argument 1161 sched_setcpu(struct thread *td, int cpu, int flags) argument 1212 int cpu, pri, self; local 2378 int cpu; local 2509 sched_bind(struct thread *td, int cpu) argument [all...] |
H A D | kern_timeout.c | 64 #include <machine/cpu.h> 115 * The callout cpu exec entities represent informations necessary for 117 * necessary for migrating callouts to the new callout cpu. In particular, 138 * There is one struct callout_cpu per cpu, holding all relevant 172 #define CC_CPU(cpu) (&cc_cpu[(cpu)]) 176 #define CC_CPU(cpu) &cc_cpu 185 static void callout_cpu_init(struct callout_cpu *cc, int cpu); 212 * Resets the execution entity tied to a specific callout cpu. 231 * Checks if migration is requested by a specific callout cpu 288 callout_cpu_init(struct callout_cpu *cc, int cpu) argument 354 int cpu; local 523 int cpu; local 544 callout_cc_add(struct callout *c, struct callout_cpu *cc, sbintime_t sbt, sbintime_t precision, void (*func)(void *), void *arg, int cpu, int flags) argument 918 callout_reset_sbt_on(struct callout *c, sbintime_t sbt, sbintime_t precision, void (*ftn)(void *), void *arg, int cpu, int flags) argument 1105 callout_schedule_on(struct callout *c, int to_ticks, int cpu) argument 1478 int cpu; local [all...] |
/freebsd-10.2-release/sys/powerpc/powerpc/ |
H A D | clock.c | 74 #include <machine/cpu.h> 166 struct cpuref cpu; local 173 if (platform_smp_get_bsp(&cpu) != 0) 174 platform_smp_first_cpu(&cpu); 175 ticks_per_sec = platform_timebase_freq(&cpu); 179 snprintf(buf, sizeof(buf), "cpu%d:decrementer", curcpu); 194 snprintf(buf, sizeof(buf), "cpu%d:decrementer", curcpu);
|
H A D | cpu.c | 58 * $FreeBSD: releng/10.2/sys/powerpc/powerpc/cpu.c 273736 2014-10-27 14:38:00Z hselasky $ 65 #include <sys/cpu.h> 71 #include <machine/cpu.h> 243 printf("cpu%d: %s revision ", cpuid, name); 262 printf("cpu%d: Features %b\n", cpuid, cpu_features, 272 /* Get current clock frequency for the given cpu id. */ 278 phandle_t cpu, dev, root; local 337 cpu = OF_child(dev); 338 while (cpu != 0) { 339 res = OF_getprop(cpu, "device_typ 605 cpu_idle_wakeup(int cpu) argument [all...] |
/freebsd-10.2-release/sys/arm/arm/ |
H A D | vfp.c | 100 /* called for each cpu */ 155 u_int cpu, fpexc; local 202 cpu = PCPU_GET(cpu); 203 if (curpcb->pcb_vfpcpu != cpu || curthread != PCPU_GET(fpcurthread)) { 205 curpcb->pcb_vfpcpu = cpu;
|
/freebsd-10.2-release/sys/x86/xen/ |
H A D | xen_intr.c | 68 * Per-cpu event channel processing state. 194 evtchn_cpu_mask_port(u_int cpu, evtchn_port_t port) argument 198 pcpu = DPCPU_ID_PTR(cpu, xen_intr_pcpu); 216 evtchn_cpu_unmask_port(u_int cpu, evtchn_port_t port) argument 220 pcpu = DPCPU_ID_PTR(cpu, xen_intr_pcpu); 225 * Allocate and register a per-cpu Xen upcall interrupt counter. 227 * \param cpu The cpu for which to register this interrupt count. 230 xen_intr_intrcnt_add(u_int cpu) argument 235 pcpu = DPCPU_ID_PTR(cpu, xen_intr_pcp 466 u_int l1i, l2i, port, cpu; local 613 int cpu = isrc->xi_cpu; local 642 int cpu = isrc->xi_cpu; local 1062 xen_intr_bind_virq(device_t dev, u_int virq, u_int cpu, driver_filter_t filter, driver_intr_t handler, void *arg, enum intr_type flags, xen_intr_handle_t *port_handlep) argument 1124 xen_intr_alloc_and_bind_ipi(device_t dev, u_int cpu, driver_filter_t filter, enum intr_type flags, xen_intr_handle_t *port_handlep) argument [all...] |
/freebsd-10.2-release/contrib/top/ |
H A D | display.c | 431 * *_cpustates(states, names) - print the cpu state percentages 472 int cpu; local 474 for (cpu = 0; cpu < num_cpus; cpu++) { 481 value = printf("\nCPU %d: ", cpu); 518 int cpu; local 520 for (cpu = 0; cpu < num_cpus; cpu 567 int cpu, value; local [all...] |
/freebsd-10.2-release/sbin/mca/ |
H A D | mca.c | 160 show_cpu(struct mca_cpu_record *cpu) argument 170 printf(" <cpu>\n"); 172 if (cpu->cpu_flags & MCA_CPU_FLAGS_ERRMAP) 174 (long long)cpu->cpu_errmap); 175 if (cpu->cpu_flags & MCA_CPU_FLAGS_STATE) 177 (long long)cpu->cpu_state); 178 if (cpu->cpu_flags & MCA_CPU_FLAGS_CR_LID) 180 (long long)cpu->cpu_cr_lid); 182 mod = (struct mca_cpu_mod*)(cpu + 1); 183 n = MCA_CPU_FLAGS_CACHE(cpu [all...] |
/freebsd-10.2-release/sys/x86/x86/ |
H A D | tsc.c | 35 #include <sys/cpu.h> 351 u_int cpu = PCPU_GET(cpuid); \ 354 tsc[cpu * 3 + x] = rdtsc(); \ 368 u_int cpu = PCPU_GET(cpuid); local 374 if (j == cpu) 376 d1 = tsc[cpu * 3 + 1] - tsc[j * 3]; 377 d2 = tsc[cpu * 3 + 2] - tsc[j * 3 + 1]; 390 u_int cpu = PCPU_GET(cpuid); local 394 if (cpu == first) 400 d = tsc[first * 3] - tsc[cpu * [all...] |
/freebsd-10.2-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | fixup_tdescs.c | 189 * The cpu structure grows, with the addition of a machcpu member, if 190 * _MACHDEP is defined. This means that, for example, the cpu structure 191 * in unix is different from the cpu structure in genunix. As one might 202 tdesc_t *cput, *cpu; local 209 * We're going to take the circuitous route finding the cpu structure, 217 cpu = cput->t_tdesc; 219 cpu = lookup_tdesc(td, "cpu"); 222 if (cpu == NULL) 225 if (!streq(cpu [all...] |
/freebsd-10.2-release/sys/dev/coretemp/ |
H A D | coretemp.c | 76 static uint64_t coretemp_get_thermal_msr(int cpu); 77 static void coretemp_clear_thermal_msr(int cpu); 105 DRIVER_MODULE(coretemp, cpu, coretemp_driver, coretemp_devclass, NULL, 274 * Add the MIBs to dev.cpu.N and dev.cpu.N.coretemp. 307 coretemp_get_thermal_msr(int cpu) argument 312 sched_bind(curthread, cpu); 335 coretemp_clear_thermal_msr(int cpu) argument 338 sched_bind(curthread, cpu);
|
/freebsd-10.2-release/usr.bin/cpuset/ |
H A D | cpuset.c | 143 errx(EXIT_FAILURE, "Malformed cpu-list %s", list); 150 int cpu; local 152 for (once = 0, cpu = 0; cpu < CPU_SETSIZE; cpu++) { 153 if (CPU_ISSET(cpu, mask)) { 155 printf("%d", cpu); 158 printf(", %d", cpu); 351 "usage: cpuset [-l cpu-list] [-s setid] cmd ...\n"); 353 " cpuset [-l cpu [all...] |
/freebsd-10.2-release/sys/mips/nlm/hal/ |
H A D | poe.h | 252 #define POE_DISTVECT_OFFSET(node,cpu) (4 * (3 - (node)) + (3 - (cpu)/8)) 253 #define POE_DISTVECT_SHIFT(node,cpu) (((cpu) % 8 ) * 4) 284 int i, cpu, node, startcpu, index; local 298 for (cpu = startcpu; cpu >= startcpu - 7; cpu--) { 300 if (cpumask & (1U << cpu))
|
/freebsd-10.2-release/tools/tools/umastat/ |
H A D | umastat.c | 246 int cpu, const char *spaces, int *ub_cnt_add, int *ub_entries_add) 251 printf("%s%s[%d] = {\n", spaces, name, cpu); 292 int all_cpus, cpu, mp_maxcpus, mp_maxid, ret, ub_cnt, ub_entries; local 440 for (cpu = 0; cpu <= mp_maxid; cpu++) { 441 /* if (CPU_ABSENT(cpu)) */ 442 if ((all_cpus & (1 << cpu)) == 0) 445 &uzp_userspace->uz_cpu[cpu], 446 "uc_cache", cpu, " ", 245 uma_print_cache(kvm_t *kvm, struct uma_cache *cache, const char *name, int cpu, const char *spaces, int *ub_cnt_add, int *ub_entries_add) argument [all...] |
/freebsd-10.2-release/sys/powerpc/booke/ |
H A D | interrupt.c | 53 #include <machine/cpu.h> 82 printf(" dear = 0x%08x\n", frame->cpu.booke.dear); 83 printf(" esr = 0x%08x\n", frame->cpu.booke.esr);
|
/freebsd-10.2-release/sys/mips/nlm/ |
H A D | cms.c | 52 #include <machine/cpu.h> 114 * cpu's and cores. 153 xlp_msgring_cpu_init(int node, int cpu, int credit) argument 161 /* cpu credit setup is done only from thread-0 of each core */ 162 if((cpu % 4) == 0) { 163 src = cpu << 2; /* each thread has 4 vc's */ 256 xlp_cms_enable_intr(int node, int cpu, int type, int watermark) argument 264 qid = (i + (cpu * 4)) & 0x7f; 275 int cpu; local 277 cpu [all...] |
/freebsd-10.2-release/sys/cddl/dev/dtrace/mips/ |
H A D | dtrace_subr.c | 86 dtrace_xcall(processorid_t cpu, dtrace_xcall_t func, void *arg) argument 90 if (cpu == DTRACE_CPUALL) 93 CPU_SETOF(cpu, &cpus); 145 * a flag in it's per-cpu flags to indicate that it doesn't
|