Lines Matching refs:caps
316 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_perf_to_khz() local
320 if (caps->lowest_freq && caps->nominal_freq) { in cppc_cpufreq_perf_to_khz()
321 if (perf >= caps->nominal_perf) { in cppc_cpufreq_perf_to_khz()
322 mul = caps->nominal_freq; in cppc_cpufreq_perf_to_khz()
323 div = caps->nominal_perf; in cppc_cpufreq_perf_to_khz()
325 mul = caps->nominal_freq - caps->lowest_freq; in cppc_cpufreq_perf_to_khz()
326 div = caps->nominal_perf - caps->lowest_perf; in cppc_cpufreq_perf_to_khz()
332 div = caps->highest_perf; in cppc_cpufreq_perf_to_khz()
340 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_khz_to_perf() local
344 if (caps->lowest_freq && caps->nominal_freq) { in cppc_cpufreq_khz_to_perf()
345 if (freq >= caps->nominal_freq) { in cppc_cpufreq_khz_to_perf()
346 mul = caps->nominal_perf; in cppc_cpufreq_khz_to_perf()
347 div = caps->nominal_freq; in cppc_cpufreq_khz_to_perf()
349 mul = caps->lowest_perf; in cppc_cpufreq_khz_to_perf()
350 div = caps->lowest_freq; in cppc_cpufreq_khz_to_perf()
355 mul = caps->highest_perf; in cppc_cpufreq_khz_to_perf()
487 struct cppc_perf_caps *caps; in cppc_cpufreq_cpu_init() local
495 caps = &cpu_data->perf_caps; in cppc_cpufreq_cpu_init()
503 caps->lowest_nonlinear_perf); in cppc_cpufreq_cpu_init()
505 caps->nominal_perf); in cppc_cpufreq_cpu_init()
513 caps->lowest_perf); in cppc_cpufreq_cpu_init()
515 caps->nominal_perf); in cppc_cpufreq_cpu_init()
544 if (caps->highest_perf > caps->nominal_perf) in cppc_cpufreq_cpu_init()
548 policy->cur = cppc_cpufreq_perf_to_khz(cpu_data, caps->highest_perf); in cppc_cpufreq_cpu_init()
549 cpu_data->perf_ctrls.desired_perf = caps->highest_perf; in cppc_cpufreq_cpu_init()
554 caps->highest_perf, cpu, ret); in cppc_cpufreq_cpu_init()
569 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_cpu_exit() local
575 cpu_data->perf_ctrls.desired_perf = caps->lowest_perf; in cppc_cpufreq_cpu_exit()
580 caps->lowest_perf, cpu, ret); in cppc_cpufreq_cpu_exit()
644 struct cppc_perf_caps *caps = &cpu_data->perf_caps; in cppc_cpufreq_set_boost() local
654 caps->highest_perf); in cppc_cpufreq_set_boost()
657 caps->nominal_perf); in cppc_cpufreq_set_boost()