Lines Matching refs:max_cap
386 unsigned int min_cap, max_cap; in get_perf_level_count() local
392 max_cap = arch_scale_cpu_capacity(cpu); in get_perf_level_count()
393 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in get_perf_level_count()
395 if ((min_cap == 0) || (max_cap < min_cap)) in get_perf_level_count()
397 return 1 + max_cap / CPPC_EM_CAP_STEP - min_cap / CPPC_EM_CAP_STEP; in get_perf_level_count()
416 unsigned int min_cap, max_cap; in cppc_get_cpu_power() local
425 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_power()
426 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power()
429 max_cap); in cppc_get_cpu_power()
431 max_step = max_cap / CPPC_EM_CAP_STEP; in cppc_get_cpu_power()
486 unsigned int max_cap; in cppc_get_cpu_cost() local
492 max_cap = arch_scale_cpu_capacity(cpu_dev->id); in cppc_get_cpu_cost()
495 perf_step = CPPC_EM_CAP_STEP * perf_caps->highest_perf / max_cap; in cppc_get_cpu_cost()