Lines Matching refs:cpc_desc
92 static DEFINE_PER_CPU(struct cpc_desc *, cpc_desc_ptr);
133 #define to_cpc_desc(a) container_of(a, struct cpc_desc, kobj)
139 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); \
165 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); in show_feedback_ctrs()
328 struct cpc_desc *desc = per_cpu(cpc_desc_ptr, i); in send_pcc_cmd()
358 static int acpi_get_psd(struct cpc_desc *cpc_ptr, acpi_handle handle) in acpi_get_psd()
431 struct cpc_desc *cpc_ptr, *match_cpc_ptr; in acpi_get_psd_map()
720 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_probe()
739 cpc_ptr = kzalloc(sizeof(struct cpc_desc), GFP_KERNEL); in acpi_cppc_processor_probe()
898 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_exit()
1060 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_desired_perf() local
1065 desired_reg = &cpc_desc->cpc_regs[DESIRED_PERF]; in cppc_get_desired_perf()
1102 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_caps() local
1111 if (!cpc_desc) { in cppc_get_perf_caps()
1116 highest_reg = &cpc_desc->cpc_regs[HIGHEST_PERF]; in cppc_get_perf_caps()
1117 lowest_reg = &cpc_desc->cpc_regs[LOWEST_PERF]; in cppc_get_perf_caps()
1118 lowest_non_linear_reg = &cpc_desc->cpc_regs[LOW_NON_LINEAR_PERF]; in cppc_get_perf_caps()
1119 nominal_reg = &cpc_desc->cpc_regs[NOMINAL_PERF]; in cppc_get_perf_caps()
1120 low_freq_reg = &cpc_desc->cpc_regs[LOWEST_FREQ]; in cppc_get_perf_caps()
1121 nom_freq_reg = &cpc_desc->cpc_regs[NOMINAL_FREQ]; in cppc_get_perf_caps()
1122 guaranteed_reg = &cpc_desc->cpc_regs[GUARANTEED_PERF]; in cppc_get_perf_caps()
1192 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpunum); in cppc_get_perf_ctrs() local
1200 if (!cpc_desc) { in cppc_get_perf_ctrs()
1205 delivered_reg = &cpc_desc->cpc_regs[DELIVERED_CTR]; in cppc_get_perf_ctrs()
1206 reference_reg = &cpc_desc->cpc_regs[REFERENCE_CTR]; in cppc_get_perf_ctrs()
1207 ref_perf_reg = &cpc_desc->cpc_regs[REFERENCE_PERF]; in cppc_get_perf_ctrs()
1208 ctr_wrap_reg = &cpc_desc->cpc_regs[CTR_WRAP_TIME]; in cppc_get_perf_ctrs()
1215 ref_perf_reg = &cpc_desc->cpc_regs[NOMINAL_PERF]; in cppc_get_perf_ctrs()
1272 struct cpc_desc *cpc_desc = per_cpu(cpc_desc_ptr, cpu); in cppc_set_perf() local
1278 if (!cpc_desc) { in cppc_set_perf()
1283 desired_reg = &cpc_desc->cpc_regs[DESIRED_PERF]; in cppc_set_perf()
1311 cpc_desc->write_cmd_id = pcc_ss_data->pcc_write_cnt; in cppc_set_perf()
1312 cpc_desc->write_cmd_status = 0; in cppc_set_perf()
1378 cpc_desc->write_cmd_id != pcc_ss_data->pcc_write_cnt); in cppc_set_perf()
1381 ret = cpc_desc->write_cmd_status; in cppc_set_perf()
1409 struct cpc_desc *cpc_desc; in cppc_get_transition_latency() local
1414 cpc_desc = per_cpu(cpc_desc_ptr, cpu_num); in cppc_get_transition_latency()
1415 if (!cpc_desc) in cppc_get_transition_latency()
1418 desired_reg = &cpc_desc->cpc_regs[DESIRED_PERF]; in cppc_get_transition_latency()