Home
last modified time | relevance | path

Searched refs:cpunum (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.4/arch/x86/kernel/acpi/
Dcppc_msr.c17 int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
21 err = rdmsrl_safe_on_cpu(cpunum, reg->address, val); in cpc_read_ffh()
32 int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
37 err = rdmsrl_safe_on_cpu(cpunum, reg->address, &rd_val); in cpc_write_ffh()
46 err = wrmsrl_safe_on_cpu(cpunum, reg->address, rd_val); in cpc_write_ffh()
/Linux-v5.4/drivers/acpi/
Dcppc_acpi.c940 int __weak cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
955 int __weak cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
1058 int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument
1060 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_desired_perf()
1061 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_desired_perf()
1078 cpc_read(cpunum, desired_reg, desired_perf); in cppc_get_desired_perf()
1087 cpc_read(cpunum, desired_reg, desired_perf); in cppc_get_desired_perf()
1100 int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_perf_caps() argument
1102 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_caps()
1107 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf_caps()
[all …]
/Linux-v5.4/tools/testing/selftests/netfilter/
Dnft_trans_stress.sh52 lscpu | grep ^CPU\(s\): | ( read cpu cpunum ;
53 cpunum=$((cpunum-1))
54 for i in $(seq 0 $cpunum);do
/Linux-v5.4/arch/parisc/kernel/
Dprocessor.c66 init_percpu_prof(unsigned long cpunum) in init_percpu_prof() argument
321 int __init init_per_cpu(int cpunum) in init_per_cpu() argument
329 store_cpu_topology(cpunum); in init_per_cpu()
337 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in init_per_cpu()
338 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in init_per_cpu()
340 if (cpunum == 0) in init_per_cpu()
342 cpunum, coproc_cfg.revision, coproc_cfg.model); in init_per_cpu()
364 init_percpu_prof(cpunum); in init_per_cpu()
Dsmp.c255 smp_cpu_init(int cpunum) in smp_cpu_init() argument
261 init_per_cpu(cpunum); in smp_cpu_init()
268 if (cpu_online(cpunum)) { in smp_cpu_init()
271 printk(KERN_CRIT "CPU#%d already initialized!\n", cpunum); in smp_cpu_init()
275 notify_cpu_starting(cpunum); in smp_cpu_init()
277 set_cpu_online(cpunum, true); in smp_cpu_init()
Dsetup.c389 int ret, cpunum; in start_parisc() local
395 cpunum = smp_processor_id(); in start_parisc()
405 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in start_parisc()
406 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in start_parisc()
/Linux-v5.4/arch/mips/paravirt/
Dparavirt-smp.c48 unsigned int cpunum = get_ebase_cpunum(); in paravirt_smp_setup() local
50 if (WARN_ON(cpunum >= NR_CPUS)) in paravirt_smp_setup()
58 __cpu_number_map[cpunum] = 0; in paravirt_smp_setup()
59 __cpu_logical_map[0] = cpunum; in paravirt_smp_setup()
/Linux-v5.4/drivers/cpufreq/
Dcppc_cpufreq.c70 static unsigned int hisi_cppc_cpufreq_get_rate(unsigned int cpunum) in hisi_cppc_cpufreq_get_rate() argument
72 struct cppc_cpudata *cpudata = all_cpu_data[cpunum]; in hisi_cppc_cpufreq_get_rate()
76 ret = cppc_get_desired_perf(cpunum, &desired_perf); in hisi_cppc_cpufreq_get_rate()
387 static unsigned int cppc_cpufreq_get_rate(unsigned int cpunum) in cppc_cpufreq_get_rate() argument
390 struct cppc_cpudata *cpu = all_cpu_data[cpunum]; in cppc_cpufreq_get_rate()
394 return hisi_cppc_cpufreq_get_rate(cpunum); in cppc_cpufreq_get_rate()
396 ret = cppc_get_perf_ctrs(cpunum, &fb_ctrs_t0); in cppc_cpufreq_get_rate()
402 ret = cppc_get_perf_ctrs(cpunum, &fb_ctrs_t1); in cppc_cpufreq_get_rate()
Dintel_pstate.c1959 static int intel_pstate_init_cpu(unsigned int cpunum) in intel_pstate_init_cpu() argument
1963 cpu = all_cpu_data[cpunum]; in intel_pstate_init_cpu()
1970 all_cpu_data[cpunum] = cpu; in intel_pstate_init_cpu()
1977 cpu = all_cpu_data[cpunum]; in intel_pstate_init_cpu()
1979 cpu->cpu = cpunum; in intel_pstate_init_cpu()
1986 intel_pstate_disable_ee(cpunum); in intel_pstate_init_cpu()
1997 pr_debug("controlling: cpu %d\n", cpunum); in intel_pstate_init_cpu()
/Linux-v5.4/include/acpi/
Dcppc_acpi.h136 extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf);
143 extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val);
144 extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val);
/Linux-v5.4/arch/mips/sgi-ip27/
Dip27-smp.c34 static void alloc_cpupda(cpuid_t cpu, int cpunum) in alloc_cpupda() argument
39 cputonasid(cpunum) = nasid; in alloc_cpupda()
40 sn_cpu_info[cpunum].p_nodeid = node; in alloc_cpupda()
41 cputoslice(cpunum) = get_cpu_slice(cpu); in alloc_cpupda()
/Linux-v5.4/arch/x86/include/asm/
Dsmp.h135 int common_cpu_up(unsigned int cpunum, struct task_struct *tidle);
136 int native_cpu_up(unsigned int cpunum, struct task_struct *tidle);
/Linux-v5.4/arch/ia64/kernel/
Dsetup.c659 # define cpunum c->cpu in show_cpuinfo() macro
662 # define cpunum 0 in show_cpuinfo()
699 proc_freq = cpufreq_quick_get(cpunum); in show_cpuinfo()
718 cpunum, c->vendor, c->family, c->model, in show_cpuinfo()
726 cpumask_weight(&cpu_core_map[cpunum])); in show_cpuinfo()
/Linux-v5.4/drivers/base/
Dcpu.c148 int cpunum; in show_crash_notes() local
150 cpunum = cpu->dev.id; in show_crash_notes()
158 addr = per_cpu_ptr_to_phys(per_cpu_ptr(crash_notes, cpunum)); in show_crash_notes()
/Linux-v5.4/include/linux/
Dsmp.h94 extern int __cpu_up(unsigned int cpunum, struct task_struct *tidle);
/Linux-v5.4/kernel/debug/kdb/
Dkdb_main.c2254 unsigned long cpunum; in kdb_cpu() local
2265 diag = kdbgetularg(argv[1], &cpunum); in kdb_cpu()
2272 if ((cpunum >= CONFIG_NR_CPUS) || !kgdb_info[cpunum].enter_kgdb) in kdb_cpu()
2275 dbg_switch_cpu = cpunum; in kdb_cpu()