Lines Matching refs:cpc_desc
92 static DEFINE_PER_CPU(struct cpc_desc *, cpc_desc_ptr);
137 #define to_cpc_desc(a) container_of(a, struct cpc_desc, kobj)
143 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); \
169 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); in show_feedback_ctrs()
333 struct cpc_desc *desc = per_cpu(cpc_desc_ptr, i); in send_pcc_cmd()
364 static int acpi_get_psd(struct cpc_desc *cpc_ptr, acpi_handle handle) in acpi_get_psd()
424 struct cpc_desc *cpc_ptr; in acpi_cpc_valid()
443 struct cpc_desc *cpc_ptr; in cppc_allow_fast_switch()
467 struct cpc_desc *cpc_ptr, *match_cpc_ptr; in acpi_get_psd_map()
667 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_probe()
692 cpc_ptr = kzalloc(sizeof(struct cpc_desc), GFP_KERNEL); in acpi_cppc_processor_probe()
911 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_exit()
1094 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf() local
1097 if (!cpc_desc) { in cppc_get_perf()
1102 reg = &cpc_desc->cpc_regs[reg_idx]; in cppc_get_perf()
1165 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_caps() local
1174 if (!cpc_desc) { in cppc_get_perf_caps()
1179 highest_reg = &cpc_desc->cpc_regs[HIGHEST_PERF]; in cppc_get_perf_caps()
1180 lowest_reg = &cpc_desc->cpc_regs[LOWEST_PERF]; in cppc_get_perf_caps()
1181 lowest_non_linear_reg = &cpc_desc->cpc_regs[LOW_NON_LINEAR_PERF]; in cppc_get_perf_caps()
1182 nominal_reg = &cpc_desc->cpc_regs[NOMINAL_PERF]; in cppc_get_perf_caps()
1183 low_freq_reg = &cpc_desc->cpc_regs[LOWEST_FREQ]; in cppc_get_perf_caps()
1184 nom_freq_reg = &cpc_desc->cpc_regs[NOMINAL_FREQ]; in cppc_get_perf_caps()
1185 guaranteed_reg = &cpc_desc->cpc_regs[GUARANTEED_PERF]; in cppc_get_perf_caps()
1261 struct cpc_desc *cpc_desc; in cppc_perf_ctrs_in_pcc() local
1263 cpc_desc = per_cpu(cpc_desc_ptr, cpu); in cppc_perf_ctrs_in_pcc()
1265 if (CPC_IN_PCC(&cpc_desc->cpc_regs[DELIVERED_CTR]) || in cppc_perf_ctrs_in_pcc()
1266 CPC_IN_PCC(&cpc_desc->cpc_regs[REFERENCE_CTR]) || in cppc_perf_ctrs_in_pcc()
1267 CPC_IN_PCC(&cpc_desc->cpc_regs[CTR_WRAP_TIME])) in cppc_perf_ctrs_in_pcc()
1271 ref_perf_reg = &cpc_desc->cpc_regs[REFERENCE_PERF]; in cppc_perf_ctrs_in_pcc()
1278 ref_perf_reg = &cpc_desc->cpc_regs[NOMINAL_PERF]; in cppc_perf_ctrs_in_pcc()
1297 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_ctrs() local
1305 if (!cpc_desc) { in cppc_get_perf_ctrs()
1310 delivered_reg = &cpc_desc->cpc_regs[DELIVERED_CTR]; in cppc_get_perf_ctrs()
1311 reference_reg = &cpc_desc->cpc_regs[REFERENCE_CTR]; in cppc_get_perf_ctrs()
1312 ref_perf_reg = &cpc_desc->cpc_regs[REFERENCE_PERF]; in cppc_get_perf_ctrs()
1313 ctr_wrap_reg = &cpc_desc->cpc_regs[CTR_WRAP_TIME]; in cppc_get_perf_ctrs()
1320 ref_perf_reg = &cpc_desc->cpc_regs[NOMINAL_PERF]; in cppc_get_perf_ctrs()
1380 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpu); in cppc_set_enable() local
1384 if (!cpc_desc) { in cppc_set_enable()
1389 enable_reg = &cpc_desc->cpc_regs[ENABLE]; in cppc_set_enable()
1422 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpu); in cppc_set_perf() local
1428 if (!cpc_desc) { in cppc_set_perf()
1433 desired_reg = &cpc_desc->cpc_regs[DESIRED_PERF]; in cppc_set_perf()
1461 cpc_desc->write_cmd_id = pcc_ss_data->pcc_write_cnt; in cppc_set_perf()
1462 cpc_desc->write_cmd_status = 0; in cppc_set_perf()
1528 cpc_desc->write_cmd_id != pcc_ss_data->pcc_write_cnt); in cppc_set_perf()
1531 ret = cpc_desc->write_cmd_status; in cppc_set_perf()
1562 struct cpc_desc *cpc_desc; in cppc_get_transition_latency() local
1567 cpc_desc = per_cpu(cpc_desc_ptr, cpu_num); in cppc_get_transition_latency()
1568 if (!cpc_desc) in cppc_get_transition_latency()
1571 desired_reg = &cpc_desc->cpc_regs[DESIRED_PERF]; in cppc_get_transition_latency()