Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 1609) sorted by relevance

12345678910>>...65

/freebsd/sys/contrib/device-tree/src/arm/intel/axm/
H A Daxm5516-cpus.dtsi13 cpu-map {
16 cpu = <&CPU0>;
19 cpu = <&CPU1>;
22 cpu = <&CPU2>;
25 cpu = <&CPU3>;
30 cpu = <&CPU4>;
33 cpu = <&CPU5>;
36 cpu = <&CPU6>;
39 cpu = <&CPU7>;
44 cpu = <&CPU8>;
[all …]
/freebsd/contrib/bearssl/T0/
H A DT0Comp.cs310 AddNative("add-cc:", false, SType.BLANK, cpu => { in T0Comp()
330 AddNative("cc:", false, SType.BLANK, cpu => { in T0Comp()
354 AddNative("preamble", false, SType.BLANK, cpu => { in T0Comp()
363 AddNative("postamble", false, SType.BLANK, cpu => { in T0Comp()
374 AddNative("make-CX", false, new SType(3, 1), cpu => { in T0Comp()
375 TValue c = cpu.Pop(); in T0Comp()
380 int max = cpu.Pop(); in T0Comp()
381 int min = cpu.Pop(); in T0Comp()
384 cpu.Push(tv); in T0Comp()
396 AddNative("CX", true, cpu => { in T0Comp()
[all …]
/freebsd/sys/dev/hwpmc/
H A Dhwpmc_uncore.c80 uncore_pcpu_noop(struct pmc_mdep *md, int cpu) in uncore_pcpu_noop() argument
83 (void) cpu; in uncore_pcpu_noop()
88 uncore_pcpu_init(struct pmc_mdep *md, int cpu) in uncore_pcpu_init() argument
95 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in uncore_pcpu_init()
96 ("[ucf,%d] insane cpu number %d", __LINE__, cpu)); in uncore_pcpu_init()
98 PMCDBG1(MDP,INI,1,"uncore-init cpu=%d", cpu); in uncore_pcpu_init()
107 uncore_pcpu[cpu] = cc; in uncore_pcpu_init()
108 pc = pmc_pcpu[cpu]; in uncore_pcpu_init()
111 ("[uncore,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in uncore_pcpu_init()
115 PMC_PHW_CPU_TO_STATE(cpu) | in uncore_pcpu_init()
[all …]
H A Dhwpmc_tsc.c70 tsc_allocate_pmc(int cpu __diagused, int ri __diagused, struct pmc *pm __unused, in tsc_allocate_pmc()
74 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_allocate_pmc()
75 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); in tsc_allocate_pmc()
90 tsc_config_pmc(int cpu, int ri, struct pmc *pm) in tsc_config_pmc() argument
94 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); in tsc_config_pmc()
96 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_config_pmc()
97 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); in tsc_config_pmc()
100 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_config_pmc()
112 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in tsc_describe() argument
117 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_describe()
[all …]
H A Dhwpmc_powerpc.c61 void (*powerpc_set_pmc)(int cpu, int ri, int config);
106 powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in powerpc_describe() argument
110 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in powerpc_describe()
111 ("[powerpc,%d], illegal CPU %d", __LINE__, cpu)); in powerpc_describe()
113 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_describe()
116 pi->pm_class = powerpc_pcpu[cpu]->pc_class; in powerpc_describe()
130 powerpc_get_config(int cpu, int ri, struct pmc **ppm) in powerpc_get_config() argument
133 *ppm = powerpc_pcpu[cpu]->pc_ppcpmcs[ri].phw_pmc; in powerpc_get_config()
139 powerpc_pcpu_init(struct pmc_mdep *md, int cpu) in powerpc_pcpu_init() argument
146 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in powerpc_pcpu_init()
[all …]
H A Dhwpmc_soft.c95 soft_allocate_pmc(int cpu, int ri, struct pmc *pm, in soft_allocate_pmc() argument
101 (void) cpu; in soft_allocate_pmc()
103 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in soft_allocate_pmc()
104 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); in soft_allocate_pmc()
134 soft_config_pmc(int cpu, int ri, struct pmc *pm) in soft_config_pmc() argument
138 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); in soft_config_pmc()
140 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in soft_config_pmc()
141 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); in soft_config_pmc()
145 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_config_pmc()
157 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in soft_describe() argument
[all …]
H A Dhwpmc_core.c108 core_pcpu_noop(struct pmc_mdep *md, int cpu) in core_pcpu_noop() argument
111 (void) cpu; in core_pcpu_noop()
116 core_pcpu_init(struct pmc_mdep *md, int cpu) in core_pcpu_init() argument
123 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in core_pcpu_init()
124 ("[iaf,%d] insane cpu number %d", __LINE__, cpu)); in core_pcpu_init()
126 PMCDBG1(MDP,INI,1,"core-init cpu=%d", cpu); in core_pcpu_init()
137 core_pcpu[cpu] = cc; in core_pcpu_init()
138 pc = pmc_pcpu[cpu]; in core_pcpu_init()
141 ("[core,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in core_pcpu_init()
145 PMC_PHW_CPU_TO_STATE(cpu) | in core_pcpu_init()
[all …]
H A Dhwpmc_armv7.c135 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, in armv7_allocate_pmc() argument
141 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in armv7_allocate_pmc()
142 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); in armv7_allocate_pmc()
160 armv7_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in armv7_read_pmc() argument
166 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in armv7_read_pmc()
167 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); in armv7_read_pmc()
183 pm->pm_pcpu_state[cpu].pps_overflowcnt++; in armv7_read_pmc()
188 tmp += 0x100000000llu * pm->pm_pcpu_state[cpu].pps_overflowcnt; in armv7_read_pmc()
209 armv7_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in armv7_write_pmc() argument
212 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in armv7_write_pmc()
[all …]
H A Dhwpmc_arm64.c36 #include <machine/cpu.h>
164 arm64_allocate_pmc(int cpu, int ri, struct pmc *pm, in arm64_allocate_pmc()
170 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in arm64_allocate_pmc()
171 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); in arm64_allocate_pmc()
225 arm64_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in arm64_read_pmc()
231 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in arm64_read_pmc()
232 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); in arm64_read_pmc()
245 pm->pm_pcpu_state[cpu] in arm64_read_pmc()
163 arm64_allocate_pmc(int cpu,int ri,struct pmc * pm,const struct pmc_op_pmcallocate * a) arm64_allocate_pmc() argument
211 arm64_read_pmc(int cpu,int ri,struct pmc * pm,pmc_value_t * v) arm64_read_pmc() argument
257 arm64_write_pmc(int cpu,int ri,struct pmc * pm,pmc_value_t v) arm64_write_pmc() argument
277 arm64_config_pmc(int cpu,int ri,struct pmc * pm) arm64_config_pmc() argument
300 arm64_start_pmc(int cpu,int ri,struct pmc * pm) arm64_start_pmc() argument
324 arm64_stop_pmc(int cpu,int ri,struct pmc * pm __unused) arm64_stop_pmc() argument
336 arm64_release_pmc(int cpu,int ri,struct pmc * pmc) arm64_release_pmc() argument
358 int reg, cpu; arm64_intr() local
404 arm64_describe(int cpu,int ri,struct pmc_info * pi,struct pmc ** ppmc) arm64_describe() argument
430 arm64_get_config(int cpu,int ri,struct pmc ** ppm) arm64_get_config() argument
439 arm64_pcpu_init(struct pmc_mdep * md,int cpu) arm64_pcpu_init() argument
487 arm64_pcpu_fini(struct pmc_mdep * md,int cpu) arm64_pcpu_fini() argument
[all...]
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-cpu.c52 struct pt_cpu cpu; in cpu_valid() local
55 error = pt_cpu_parse(&cpu, "6/44/2"); in cpu_valid()
57 ptu_int_eq(cpu.vendor, pcv_intel); in cpu_valid()
58 ptu_uint_eq(cpu.family, 6); in cpu_valid()
59 ptu_uint_eq(cpu.model, 44); in cpu_valid()
60 ptu_uint_eq(cpu.stepping, 2); in cpu_valid()
62 error = pt_cpu_parse(&cpu, "0xf/0x2c/0xf"); in cpu_valid()
64 ptu_int_eq(cpu.vendor, pcv_intel); in cpu_valid()
65 ptu_uint_eq(cpu.family, 0xf); in cpu_valid()
66 ptu_uint_eq(cpu.model, 0x2c); in cpu_valid()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/cpu/
H A Dcpu-topology.txt20 For instance in a system where CPUs support SMT, "cpu" nodes represent all
22 In systems where SMT is not supported "cpu" nodes represent all cores present
25 CPU topology bindings allow one to associate cpu nodes with hierarchical groups
29 Currently, only ARM/RISC-V intend to use this cpu topology binding but it may be
32 The cpu nodes, as per bindings defined in [4], represent the devices that
35 A topology description containing phandles to cpu nodes that are not compliant
39 2 - cpu-map node
42 The ARM/RISC-V CPU topology is defined within the cpu-map node, which is a direct
46 - cpu-map node
51 cpu-map node.
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/cavium/
H A Dthunder-88xx.dtsi65 cpu@0 {
66 device_type = "cpu";
71 cpu@1 {
72 device_type = "cpu";
77 cpu@2 {
78 device_type = "cpu";
83 cpu@3 {
84 device_type = "cpu";
89 cpu@4 {
90 device_type = "cpu";
[all …]
/freebsd/sys/dev/cpuctl/
H A Dcpuctl.c72 static int cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd,
74 static int cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data,
76 static int cpuctl_do_cpuid_count(int cpu, cpuctl_cpuid_count_args_t *data,
78 static int cpuctl_do_eval_cpu_features(int cpu, struct thread *td);
79 static int cpuctl_do_update(int cpu, cpuctl_update_args_t *data,
81 static int update_intel(int cpu, cpuctl_update_args_t *args,
83 static int update_amd(int cpu, cpuctl_update_args_t *args, struct thread *td);
84 static int update_via(int cpu, cpuctl_update_args_t *args,
101 cpu_enabled(int cpu) in cpu_enabled() argument
104 return (pmc_cpu_is_disabled(cpu) == 0); in cpu_enabled()
[all …]
/freebsd/usr.sbin/sa/tests/
H A Dv1-amd64-u.out1 0 0.000 cpu 0k mem 0 io accton
2 0 0.172 cpu 41k mem 0 io awk
3 0 0.000 cpu 140k mem 0 io time
4 0 3.031 cpu 45k mem 1 io egrep
5 0 0.000 cpu 0k mem 0 io time
6 0 0.250 cpu 42k mem 1087 io find
7 0 0.000 cpu 0k mem 0 io time
8 0 0.000 cpu 0k mem 0 io sleep
9 0 0.000 cpu 57k mem 0 io time
10 0 0.016 cpu 31k mem 16 io dd
[all …]
H A Dv1-i386-u.out1 0 0.000 cpu 264k mem 0 io accton
2 0 0.453 cpu 41k mem 0 io awk
3 0 0.000 cpu 0k mem 0 io time
4 0 4.984 cpu 41k mem 28 io egrep
5 0 0.000 cpu 140k mem 0 io time
6 0 0.266 cpu 36k mem 3921 io find
7 0 0.000 cpu 0k mem 0 io time
8 0 0.000 cpu 0k mem 0 io sleep
9 0 0.000 cpu 0k mem 0 io time
10 0 0.016 cpu 25k mem 16 io dd
[all …]
H A Dv2-amd64-u.out1 0 0.002 cpu 68k mem 0 io accton
2 0 0.163 cpu 35k mem 0 io awk
3 0 0.003 cpu 0k mem 0 io time
4 0 3.247 cpu 29k mem 26 io egrep
5 0 0.003 cpu 93k mem 0 io time
6 0 0.822 cpu 19k mem 4472 io find
7 0 0.003 cpu 0k mem 0 io time
8 0 0.002 cpu 0k mem 0 io sleep
9 0 0.004 cpu 88k mem 0 io time
10 0 0.076 cpu 18k mem 16 io dd
[all …]
H A Dv2-i386-u.out1 0 0.001 cpu 0k mem 0 io accton
2 0 0.448 cpu 112k mem 0 io awk
3 0 0.001 cpu 0k mem 0 io time
4 0 6.680 cpu 110k mem 0 io egrep
5 0 0.001 cpu 0k mem 0 io time
6 0 0.248 cpu 108k mem 0 io find
7 0 0.001 cpu 0k mem 0 io time
8 0 0.001 cpu 0k mem 0 io sleep
9 0 0.001 cpu 0k mem 0 io time
10 0 0.025 cpu 103k mem 16 io dd
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/hisilicon/
H A Dhip07.dtsi25 cpu-map {
28 cpu = <&cpu0>;
31 cpu = <&cpu1>;
34 cpu = <&cpu2>;
37 cpu = <&cpu3>;
43 cpu = <&cpu4>;
46 cpu = <&cpu5>;
49 cpu = <&cpu6>;
52 cpu = <&cpu7>;
58 cpu
[all...]
H A Dhip05.dtsi25 cpu-map {
28 cpu = <&cpu0>;
31 cpu = <&cpu1>;
34 cpu = <&cpu2>;
37 cpu = <&cpu3>;
42 cpu = <&cpu4>;
45 cpu = <&cpu5>;
48 cpu = <&cpu6>;
51 cpu = <&cpu7>;
56 cpu = <&cpu8>;
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/arm/
H A Djuno-r1.dts40 cpu-map {
43 cpu = <&A57_0>;
46 cpu = <&A57_1>;
52 cpu = <&A53_0>;
55 cpu = <&A53_1>;
58 cpu = <&A53_2>;
61 cpu = <&A53_3>;
69 CPU_SLEEP_0: cpu-sleep-0 {
88 A57_0: cpu@0 {
91 device_type = "cpu";
[all …]
H A Djuno-r2.dts40 cpu-map {
43 cpu = <&A72_0>;
46 cpu = <&A72_1>;
52 cpu = <&A53_0>;
55 cpu = <&A53_1>;
58 cpu = <&A53_2>;
61 cpu = <&A53_3>;
69 CPU_SLEEP_0: cpu-sleep-0 {
88 A72_0: cpu@0 {
91 device_type = "cpu";
[all …]
H A Djuno.dts39 cpu-map {
42 cpu = <&A57_0>;
45 cpu = <&A57_1>;
51 cpu = <&A53_0>;
54 cpu = <&A53_1>;
57 cpu = <&A53_2>;
60 cpu = <&A53_3>;
68 CPU_SLEEP_0: cpu-sleep-0 {
87 A57_0: cpu@0 {
90 device_type = "cpu";
[all …]
/freebsd/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=$(($cpu+1))
[all …]
/freebsd/sys/dev/dpaa/
H A Dportals_common.c51 dpaa_portal_alloc_res(device_t dev, struct dpaa_portals_devinfo *di, int cpu) in dpaa_portal_alloc_res() argument
98 sc->sc_dp[cpu].dp_regs_mapped = 1; in dpaa_portal_alloc_res()
102 sc->sc_dp[cpu].dp_ce_pa = rle->start + sc->sc_dp_pa; in dpaa_portal_alloc_res()
103 sc->sc_dp[cpu].dp_ce_size = rle->count; in dpaa_portal_alloc_res()
105 sc->sc_dp[cpu].dp_ci_pa = rle->start + sc->sc_dp_pa; in dpaa_portal_alloc_res()
106 sc->sc_dp[cpu].dp_ci_size = rle->count; in dpaa_portal_alloc_res()
110 sc->sc_dp[cpu].dp_irid = 0; in dpaa_portal_alloc_res()
111 sc->sc_dp[cpu].dp_ires = bus_alloc_resource(dev, in dpaa_portal_alloc_res()
112 SYS_RES_IRQ, &sc->sc_dp[cpu].dp_irid, rle->start, rle->end, in dpaa_portal_alloc_res()
115 sc->sc_dp[cpu].dp_intr_num = rle->start; in dpaa_portal_alloc_res()
[all …]
/freebsd/sys/cddl/dev/dtrace/
H A Ddtrace_debug.c47 dtrace_debug_lock(int cpu) in dtrace_debug_lock() argument
53 …while (atomic_cmpset_acq_ptr(&dtrace_debug_data[cpu].lock, 0, tid) == 0) /* Loop until the lock i… in dtrace_debug_lock()
58 dtrace_debug_unlock(int cpu) in dtrace_debug_unlock() argument
60 atomic_store_rel_ptr(&dtrace_debug_data[cpu].lock, 0); in dtrace_debug_unlock()
153 dtrace_debug__putc(int cpu, char c) in dtrace_debug__putc() argument
157 d = &dtrace_debug_data[cpu]; in dtrace_debug__putc()
175 int cpu; in dtrace_debug_putc() local
177 cpu = curcpu; in dtrace_debug_putc()
178 dtrace_debug_lock(cpu); in dtrace_debug_putc()
180 dtrace_debug__putc(cpu, c); in dtrace_debug_putc()
[all …]

12345678910>>...65