Searched refs:cpu (Results 101 - 125 of 734) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/dpaa/
H A Dqman_portals.c121 unsigned int cpu; local
133 cpu = PCPU_GET(cpuid);
136 while (atomic_cmpset_acq_ptr((uintptr_t *)&sc->sc_dp[cpu].dp_ph,
138 p = atomic_load_acq_ptr((uintptr_t *)&sc->sc_dp[cpu].dp_ph);
157 qpp.swPortalId = cpu;
158 qpp.irq = (uintptr_t)sc->sc_dp[cpu].dp_ires;
174 atomic_store_rel_ptr((uintptr_t *)&sc->sc_dp[cpu].dp_ph,
184 atomic_store_rel_32((uint32_t *)&sc->sc_dp[cpu].dp_ph, 0);
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.schedargs.ksh49 xdt:sched::off-cpu,
50 xdt:sched::on-cpu,
/freebsd-current/contrib/bearssl/T0/
H A DOpcode.cs37 internal abstract void Run(CPU cpu); argument
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsimd_powerpc.h50 #include <machine/cpu.h>
/freebsd-current/sys/powerpc/include/
H A Dcounter.h46 counter_u64_read_one(uint64_t *p, int cpu) argument
49 return (*(uint64_t *)((char *)p + UMA_PCPU_ALLOC_SIZE * cpu));
109 counter_u64_read_one(uint64_t *p, int cpu) argument
112 return (*(uint64_t *)((char *)p + UMA_PCPU_ALLOC_SIZE * cpu));
H A Dsmp.h47 void ipi_cpu(int cpu, u_int ipi);
/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Darena_inlines_a.h36 percpu_arena_update(tsd_t *tsd, unsigned cpu) { argument
42 if (oldind != cpu) {
43 unsigned newind = cpu;
/freebsd-current/sys/kern/
H A Dkern_pmc.c96 * PMC Soft per cpu trapframe.
148 pmc_cpu_is_active(int cpu) argument
151 return (pmc_cpu_is_present(cpu) &&
152 !CPU_ISSET(cpu, &hlt_cpus_mask));
160 pmc_cpu_is_disabled(int cpu) argument
162 return (!pmc_cpu_is_active(cpu));
166 pmc_cpu_is_present(int cpu) argument
169 return (!CPU_ABSENT(cpu));
176 pmc_cpu_is_primary(int cpu) argument
179 return (!CPU_ISSET(cpu,
338 int domain, cpu; local
[all...]
H A Dkern_timeout.c71 #include <machine/cpu.h>
122 0, "Pin the default (non-per-cpu) swi (shared with PCPU 0 swi)");
134 * The callout cpu exec entities represent informations necessary for
136 * necessary for migrating callouts to the new callout cpu. In particular,
159 * There is one struct callout_cpu per cpu, holding all relevant
194 #define CC_CPU(cpu) DPCPU_ID_PTR(cpu, cc_cpu)
198 #define CC_CPU(cpu) (&cc_cpu)
207 static void callout_cpu_init(struct callout_cpu *cc, int cpu);
234 * Resets the execution entity tied to a specific callout cpu
274 int cpu; local
314 callout_cpu_init(struct callout_cpu *cc, int cpu) argument
373 int cpu, error; local
564 int cpu; local
924 callout_reset_sbt_on(struct callout *c, sbintime_t sbt, sbintime_t prec, callout_func_t *ftn, void *arg, int cpu, int flags) argument
1061 callout_schedule_on(struct callout *c, int to_ticks, int cpu) argument
1370 int cpu; local
1487 _show_last_callout(int cpu, int direct, const char *dirstr) argument
1502 int cpu, last; local
[all...]
H A Dsubr_early.c32 #include <machine/cpu.h>
/freebsd-current/sys/dev/acpica/
H A Dacpi_pxm.c261 ACPI_SRAT_CPU_AFFINITY *cpu; local
271 cpu = (ACPI_SRAT_CPU_AFFINITY *)entry;
272 domain = cpu->ProximityDomainLo |
273 cpu->ProximityDomainHi[0] << 8 |
274 cpu->ProximityDomainHi[1] << 16 |
275 cpu->ProximityDomainHi[2] << 24;
278 cpu->ApicId, domain,
279 (cpu->Flags & ACPI_SRAT_CPU_ENABLED) ?
281 if (!(cpu->Flags & ACPI_SRAT_CPU_ENABLED))
283 cpup = cpu_find(cpu
648 struct cpu_info *cpu; local
675 struct cpu_info *cpu; local
[all...]
/freebsd-current/sys/arm64/coresight/
H A Dcoresight.h97 int cpu; member in struct:coresight_platform_data
157 int coresight_init_event(int cpu, struct coresight_event *event);
158 void coresight_enable(int cpu, struct coresight_event *event);
159 void coresight_disable(int cpu, struct coresight_event *event);
160 void coresight_read(int cpu, struct coresight_event *event);
/freebsd-current/sys/dev/hwpmc/
H A Dhwpmc_power8.c37 #include <machine/cpu.h>
50 power8_set_pmc(int cpu, int ri, int config) argument
84 power8_pcpu_init(struct pmc_mdep *md, int cpu) argument
89 powerpc_pcpu_init(md, cpu);
126 power8_pcpu_fini(struct pmc_mdep *md, int cpu) argument
136 return (powerpc_pcpu_fini(md, cpu));
153 power8_allocate_pmc(int cpu, int ri, struct pmc *pm, argument
158 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
159 ("[powerpc,%d] illegal CPU value %d", __LINE__, cpu));
[all...]
/freebsd-current/tools/tools/tscdrift/
H A Dtscdrift.c31 #include <machine/cpu.h>
51 bind_cpu(int cpu) argument
56 CPU_SET(cpu, &set);
59 err(1, "cpuset_setaffinity(%d)", cpu);
65 int cpu, i; local
67 cpu = (intptr_t)arg;
68 bind_cpu(cpu);
/freebsd-current/sys/riscv/riscv/
H A Dsbi_ipi.c61 u_int cpu; local
71 cpu = pc->pc_cpuid;
72 if (CPU_ISSET(cpu, &cpus)) {
73 atomic_set_32(&sc->pending_ipis[cpu], 1u << ipi);
101 u_int cpu, ipi; local
108 cpu = PCPU_GET(cpuid);
112 ipi_bitmap = atomic_readandclear_32(&sc->pending_ipis[cpu]);
/freebsd-current/sys/dev/hyperv/vmbus/
H A Dvmbus.c112 device_t dev, int cpu);
686 vmbus_handle_intr1(struct vmbus_softc *sc, struct trapframe *frame, int cpu) argument
691 msg_base = VMBUS_PCPU_GET(sc, message, cpu);
706 sc->vmbus_event_proc(sc, cpu);
713 taskqueue_enqueue(VMBUS_PCPU_GET(sc, message_tq, cpu),
714 VMBUS_PCPU_PTR(sc, message_task, cpu));
724 int cpu = curcpu; local
736 (*VMBUS_PCPU_GET(sc, intr_cnt, cpu))++;
738 vmbus_handle_intr1(sc, trap_frame, cpu);
750 int cpu local
868 int cpu; local
913 int cpu; local
947 int cpu; local
969 &cpu_mask, "hvevent%d", cpu); local
973 "hvevent%d", cpu); local
985 "hvmsg%d", cpu); local
1158 vmbus_get_vcpu_id_method(device_t bus, device_t dev, int cpu) argument
1166 vmbus_get_eventtq_method(device_t bus, device_t dev __unused, int cpu) argument
1418 int cpu = curcpu; local
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTJSONStructs.cpp28 for (const JSONCpu &cpu : *cpus)
29 cpu_ids.push_back(cpu.id);
79 json::Value toJSON(const JSONCpu &cpu) { argument
81 {"id", cpu.id},
82 {"iptTrace", cpu.ipt_trace},
83 {"contextSwitchTrace", cpu.context_switch_trace},
87 bool fromJSON(const json::Value &value, JSONCpu &cpu, Path path) { argument
90 if (!(o && o.map("id", cpu_id) && o.map("iptTrace", cpu.ipt_trace) &&
91 o.map("contextSwitchTrace", cpu.context_switch_trace)))
93 cpu
[all...]
/freebsd-current/sys/powerpc/cpufreq/
H A Dpcr.c32 #include <sys/cpu.h>
74 DRIVER_MODULE(pcr, cpu, pcr_driver, 0, 0);
193 phandle_t cpu; local
200 cpu = ofw_bus_get_node(device_get_parent(dev));
202 if (cpu <= 0) {
207 if (OF_getproplen(cpu, "power-mode-data") <= 0) {
209 cpu = OF_child(OF_parent(cpu));
217 sc->nmodes = OF_getproplen(cpu, "power-mode-data");
222 OF_getprop(cpu, "powe
[all...]
/freebsd-current/sys/x86/xen/
H A Dxen_apic.c39 #include <machine/cpu.h>
116 unsigned int cpu; local
130 CPU_FOREACH(cpu) {
132 PCPU_ID_GET(cpu, vcpu_id), NULL);
138 CPU_FOREACH(cpu) {
139 if (cpu != PCPU_GET(cpuid)) {
141 PCPU_ID_GET(cpu, vcpu_id), NULL);
310 xen_cpu_ipi_init(int cpu) argument
316 ipi_handle = DPCPU_ID_GET(cpu, ipi_handle);
324 rc = xen_intr_alloc_and_bind_ipi(cpu, ip
[all...]
/freebsd-current/sys/i386/acpica/
H A Dacpi_wakeup.c49 #include <machine/cpu.h>
112 acpi_wakeup_ap(struct acpi_softc *sc, int cpu) argument
116 int apic_id = cpu_apic_ids[cpu];
119 pcb = &susppcbs[cpu]->sp_pcb;
128 if (!CPU_ISSET(cpu, &suspended_cpus))
148 int cpu; local
163 for (cpu = 1; cpu < mp_ncpus; cpu++) {
164 if (!CPU_ISSET(cpu,
[all...]
/freebsd-current/usr.sbin/pmccontrol/
H A Dpmccontrol.c93 " " PMCC_PROGRAM_NAME " [-e pmc | -d pmc | -c cpu] ...";
131 int cpu, pmc; local
155 cpu = np->op_cpu;
159 if (cpu >= ncpu)
160 errx(EX_DATAERR, "CPU id too large: \"%d\"", cpu);
179 if (cpu == PMCC_CPU_ALL)
184 SET_PMCS(cpu, pmc, op);
216 int c, cpu, n, npmc, ncpu; local
240 for (c = cpu = 0; cpu < ncp
[all...]
/freebsd-current/contrib/processor-trace/libipt/test/src/
H A Dptunit-config.c107 user.cpu.vendor = pcv_intel;
115 ptu_int_eq(config.cpu.vendor, pcv_intel);
128 user.size = offsetof(struct pt_config, cpu);
134 ptu_uint_eq(config.size, offsetof(struct pt_config, cpu));
137 ptu_int_eq(config.cpu.vendor, pcv_unknown);
151 user.cpu.vendor = pcv_intel;
159 ptu_int_eq(config.cpu.vendor, pcv_intel);
470 struct pt_cpu cpu; local
476 errcode = pt_cpu_errata(NULL, &cpu);
485 struct pt_cpu cpu; local
499 struct pt_cpu cpu; local
514 struct pt_cpu cpu; local
[all...]
/freebsd-current/sys/arm/include/
H A Dkdb.h32 #include <machine/cpu.h>
/freebsd-current/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.h62 uint32_t nsamples, uintfptr_t *cc, int usermode, uint32_t cpu);
/freebsd-current/sys/arm/arm/
H A Dpmu.c52 #include <machine/cpu.h>
71 u_int cpu; local
73 cpu = PCPU_GET(cpuid);
77 atomic_add_32(&ccnt_hi[cpu], 1);

Completed in 352 milliseconds

1234567891011>>