Lines Matching refs:max_cap
483 unsigned int min_cap, max_cap; in get_perf_level_count() local
489 max_cap = arch_scale_cpu_capacity(cpu); in get_perf_level_count()
490 min_cap = div_u64(max_cap * perf_caps->lowest_perf, perf_caps->highest_perf); in get_perf_level_count()
491 if ((min_cap == 0) || (max_cap < min_cap)) in get_perf_level_count()
493 return 1 + max_cap / CPPC_EM_CAP_STEP - min_cap / CPPC_EM_CAP_STEP; in get_perf_level_count()
512 unsigned int min_cap, max_cap; in cppc_get_cpu_power() local
521 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_power()
522 min_cap = div_u64(max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power()
525 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_power()
527 max_step = max_cap / CPPC_EM_CAP_STEP; in cppc_get_cpu_power()
582 unsigned int max_cap; in cppc_get_cpu_cost() local
588 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_cost()
591 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_cost()