Lines Matching defs:perf_ctrls
1603 int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable)
1640 ret = cpc_write(cpu, epp_set_reg, perf_ctrls->energy_perf);
1661 perf_ctrls->energy_perf);
1808 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h
1810 * Return: 0 for success with perf_ctrls, -ERRNO otherwise.
1812 int cppc_get_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls)
1828 if (!perf_ctrls) {
1829 pr_debug("Invalid perf_ctrls pointer\n");
1863 perf_ctrls->max_perf = max;
1870 perf_ctrls->min_perf = min;
1877 perf_ctrls->desired_perf = desired_perf;
1884 perf_ctrls->energy_perf = energy_perf;
1891 perf_ctrls->auto_sel = (bool)auto_sel;
1903 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h
1907 int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls)
1954 cpc_write(cpu, desired_reg, perf_ctrls->desired_perf);
1961 if (perf_ctrls->min_perf)
1962 cpc_write(cpu, min_perf_reg, perf_ctrls->min_perf);
1963 if (perf_ctrls->max_perf)
1964 cpc_write(cpu, max_perf_reg, perf_ctrls->max_perf);