Lines Matching refs:cpunum
963 int __weak cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val) in cpc_read_ffh() argument
978 int __weak cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) in cpc_write_ffh() argument
1135 static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) in cppc_get_perf() argument
1137 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf()
1141 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf()
1148 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf()
1160 cpc_read(cpunum, reg, perf); in cppc_get_perf()
1169 cpc_read(cpunum, reg, perf); in cppc_get_perf()
1181 int cppc_get_desired_perf(int cpunum, u64 *desired_perf) in cppc_get_desired_perf() argument
1183 return cppc_get_perf(cpunum, DESIRED_PERF, desired_perf); in cppc_get_desired_perf()
1194 int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf) in cppc_get_nominal_perf() argument
1196 return cppc_get_perf(cpunum, NOMINAL_PERF, nominal_perf); in cppc_get_nominal_perf()
1206 int cppc_get_epp_perf(int cpunum, u64 *epp_perf) in cppc_get_epp_perf() argument
1208 return cppc_get_perf(cpunum, ENERGY_PERF, epp_perf); in cppc_get_epp_perf()
1219 int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_perf_caps() argument
1221 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_caps()
1226 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf_caps()
1231 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf_caps()
1261 cpc_read(cpunum, highest_reg, &high); in cppc_get_perf_caps()
1264 cpc_read(cpunum, lowest_reg, &low); in cppc_get_perf_caps()
1267 cpc_read(cpunum, nominal_reg, &nom); in cppc_get_perf_caps()
1274 cpc_read(cpunum, guaranteed_reg, &guaranteed); in cppc_get_perf_caps()
1278 cpc_read(cpunum, lowest_non_linear_reg, &min_nonlinear); in cppc_get_perf_caps()
1286 cpc_read(cpunum, low_freq_reg, &low_f); in cppc_get_perf_caps()
1289 cpc_read(cpunum, nom_freq_reg, &nom_f); in cppc_get_perf_caps()
1351 int cppc_get_perf_ctrs(int cpunum, struct cppc_perf_fb_ctrs *perf_fb_ctrs) in cppc_get_perf_ctrs() argument
1353 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_ctrs()
1356 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_perf_ctrs()
1362 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf_ctrs()
1395 cpc_read(cpunum, delivered_reg, &delivered); in cppc_get_perf_ctrs()
1396 cpc_read(cpunum, reference_reg, &reference); in cppc_get_perf_ctrs()
1397 cpc_read(cpunum, ref_perf_reg, &ref_perf); in cppc_get_perf_ctrs()
1406 cpc_read(cpunum, ctr_wrap_reg, &ctr_wrap_time); in cppc_get_perf_ctrs()
1483 int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_auto_sel_caps() argument
1485 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_auto_sel_caps()
1490 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_auto_sel_caps()
1500 int pcc_ss_id = per_cpu(cpu_pcc_subspace_idx, cpunum); in cppc_get_auto_sel_caps()
1512 cpc_read(cpunum, auto_sel_reg, &auto_sel); in cppc_get_auto_sel_caps()