Home
last modified time | relevance | path

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

12345678910>>...73

/freebsd-13-stable/sys/contrib/device-tree/src/arm/
HDaxm5516-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-13-stable/contrib/bearssl/T0/
HDT0Comp.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-13-stable/sys/dev/hwpmc/
HDhwpmc_uncore.c81 uncore_pcpu_noop(struct pmc_mdep *md, int cpu) in uncore_pcpu_noop() argument
84 (void) cpu; in uncore_pcpu_noop()
89 uncore_pcpu_init(struct pmc_mdep *md, int cpu) in uncore_pcpu_init() argument
96 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in uncore_pcpu_init()
97 ("[ucf,%d] insane cpu number %d", __LINE__, cpu)); in uncore_pcpu_init()
99 PMCDBG1(MDP,INI,1,"uncore-init cpu=%d", cpu); in uncore_pcpu_init()
108 uncore_pcpu[cpu] = cc; in uncore_pcpu_init()
109 pc = pmc_pcpu[cpu]; in uncore_pcpu_init()
112 ("[uncore,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in uncore_pcpu_init()
116 PMC_PHW_CPU_TO_STATE(cpu) | in uncore_pcpu_init()
[all …]
HDhwpmc_tsc.c71 tsc_allocate_pmc(int cpu __diagused, int ri __diagused, struct pmc *pm __unused, in tsc_allocate_pmc()
75 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_allocate_pmc()
76 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); in tsc_allocate_pmc()
91 tsc_config_pmc(int cpu, int ri, struct pmc *pm) in tsc_config_pmc() argument
95 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); in tsc_config_pmc()
97 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_config_pmc()
98 ("[tsc,%d] illegal CPU value %d", __LINE__, cpu)); in tsc_config_pmc()
101 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_config_pmc()
113 tsc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in tsc_describe() argument
118 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in tsc_describe()
[all …]
HDhwpmc_soft.c96 soft_allocate_pmc(int cpu, int ri, struct pmc *pm, in soft_allocate_pmc() argument
102 (void) cpu; in soft_allocate_pmc()
104 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in soft_allocate_pmc()
105 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); in soft_allocate_pmc()
135 soft_config_pmc(int cpu, int ri, struct pmc *pm) in soft_config_pmc() argument
139 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); in soft_config_pmc()
141 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in soft_config_pmc()
142 ("[soft,%d] illegal CPU value %d", __LINE__, cpu)); in soft_config_pmc()
146 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_config_pmc()
158 soft_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in soft_describe() argument
[all …]
HDhwpmc_powerpc.c62 void (*powerpc_set_pmc)(int cpu, int ri, int config);
107 powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in powerpc_describe() argument
111 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in powerpc_describe()
112 ("[powerpc,%d], illegal CPU %d", __LINE__, cpu)); in powerpc_describe()
114 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_describe()
117 pi->pm_class = powerpc_pcpu[cpu]->pc_class; in powerpc_describe()
131 powerpc_get_config(int cpu, int ri, struct pmc **ppm) in powerpc_get_config() argument
134 *ppm = powerpc_pcpu[cpu]->pc_ppcpmcs[ri].phw_pmc; in powerpc_get_config()
140 powerpc_pcpu_init(struct pmc_mdep *md, int cpu) in powerpc_pcpu_init() argument
147 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in powerpc_pcpu_init()
[all …]
HDhwpmc_arm64.c162 arm64_allocate_pmc(int cpu, int ri, struct pmc *pm, in arm64_allocate_pmc() argument
169 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in arm64_allocate_pmc()
170 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); in arm64_allocate_pmc()
174 pac = arm64_pcpu[cpu]; in arm64_allocate_pmc()
213 arm64_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in arm64_read_pmc() argument
219 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in arm64_read_pmc()
220 ("[arm64,%d] illegal CPU value %d", __LINE__, cpu)); in arm64_read_pmc()
233 pm->pm_pcpu_state[cpu].pps_overflowcnt++; in arm64_read_pmc()
238 tmp += 0x100000000llu * pm->pm_pcpu_state[cpu].pps_overflowcnt; in arm64_read_pmc()
259 arm64_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in arm64_write_pmc() argument
[all …]
HDhwpmc_core.c109 core_pcpu_noop(struct pmc_mdep *md, int cpu) in core_pcpu_noop() argument
112 (void) cpu; in core_pcpu_noop()
117 core_pcpu_init(struct pmc_mdep *md, int cpu) in core_pcpu_init() argument
124 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in core_pcpu_init()
125 ("[iaf,%d] insane cpu number %d", __LINE__, cpu)); in core_pcpu_init()
127 PMCDBG1(MDP,INI,1,"core-init cpu=%d", cpu); in core_pcpu_init()
138 core_pcpu[cpu] = cc; in core_pcpu_init()
139 pc = pmc_pcpu[cpu]; in core_pcpu_init()
142 ("[core,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in core_pcpu_init()
146 PMC_PHW_CPU_TO_STATE(cpu) | in core_pcpu_init()
[all …]
HDhwpmc_armv7.c136 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, in armv7_allocate_pmc() argument
143 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in armv7_allocate_pmc()
144 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); in armv7_allocate_pmc()
148 pac = armv7_pcpu[cpu]; in armv7_allocate_pmc()
164 armv7_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in armv7_read_pmc() argument
170 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in armv7_read_pmc()
171 ("[armv7,%d] illegal CPU value %d", __LINE__, cpu)); in armv7_read_pmc()
187 pm->pm_pcpu_state[cpu].pps_overflowcnt++; in armv7_read_pmc()
192 tmp += 0x100000000llu * pm->pm_pcpu_state[cpu].pps_overflowcnt; in armv7_read_pmc()
213 armv7_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in armv7_write_pmc() argument
[all …]
HDhwpmc_beri.c186 beri_allocate_pmc(int cpu, int ri, struct pmc *pm, in beri_allocate_pmc() argument
192 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in beri_allocate_pmc()
193 ("[beri,%d] illegal CPU value %d", __LINE__, cpu)); in beri_allocate_pmc()
218 beri_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in beri_read_pmc() argument
227 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in beri_read_pmc()
228 ("[beri,%d] illegal CPU value %d", __LINE__, cpu)); in beri_read_pmc()
234 start_val = beri_pcpu[cpu]->start_values[config]; in beri_read_pmc()
238 stop_val = beri_pcpu[cpu]->stop_values[config]; in beri_read_pmc()
251 saved_val = beri_pcpu[cpu]->saved_values[config]; in beri_read_pmc()
259 beri_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in beri_write_pmc() argument
[all …]
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/
HDptunit-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-13-stable/sys/contrib/device-tree/Bindings/cpu/
HDcpu-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-13-stable/sys/contrib/device-tree/src/arm64/cavium/
HDthunder-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-13-stable/usr.sbin/sa/tests/
HDv1-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 …]
HDv1-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 …]
HDv2-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 …]
HDv2-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 …]
/freebsd-13-stable/sys/dev/cpuctl/
HDcpuctl.c73 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,
102 cpu_enabled(int cpu) in cpu_enabled() argument
105 return (pmc_cpu_is_disabled(cpu) == 0); in cpu_enabled()
[all …]
/freebsd-13-stable/sys/contrib/device-tree/src/arm64/hisilicon/
HDhip05.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 …]
HDhip07.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 = <&cpu8>;
[all …]
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/cpc/
HDtst.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-13-stable/sys/dev/dpaa/
HDportals_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-13-stable/sys/contrib/device-tree/src/arm64/arm/
HDjuno-r1.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 …]
HDjuno.dts38 cpu-map {
41 cpu = <&A57_0>;
44 cpu = <&A57_1>;
50 cpu = <&A53_0>;
53 cpu = <&A53_1>;
56 cpu = <&A53_2>;
59 cpu = <&A53_3>;
67 CPU_SLEEP_0: cpu-sleep-0 {
86 A57_0: cpu@0 {
89 device_type = "cpu";
[all …]
/freebsd-13-stable/sys/cddl/dev/dtrace/
HDdtrace_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>>...73