Lines Matching refs:max_cap
359 unsigned int min_cap, max_cap; in get_perf_level_count() local
365 max_cap = arch_scale_cpu_capacity(cpu); in get_perf_level_count()
366 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in get_perf_level_count()
368 if ((min_cap == 0) || (max_cap < min_cap)) in get_perf_level_count()
370 return 1 + max_cap / CPPC_EM_CAP_STEP - min_cap / CPPC_EM_CAP_STEP; in get_perf_level_count()
389 unsigned int min_cap, max_cap; in cppc_get_cpu_power() local
401 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_power()
402 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power()
405 max_cap); in cppc_get_cpu_power()
407 max_step = max_cap / CPPC_EM_CAP_STEP; in cppc_get_cpu_power()
462 unsigned int max_cap; in cppc_get_cpu_cost() local
471 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_cost()
474 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_cost()