Lines Matching defs:power
115 power_mw = cpufreq_cdev->em->table[i + 1].power;
122 u32 power)
128 /* Convert EM power to milli-Watts to make safe comparison */
129 em_power_mw = cpufreq_cdev->em->table[i].power;
131 if (power >= em_power_mw)
180 * get_dynamic_power() - calculate the dynamic power
184 * Return: the dynamic power consumed by the cpus described by
197 * cpufreq_get_requested_power() - get the current power
199 * @power: pointer in which to store the resulting power
201 * Calculate the current power consumption of the cpus in milliwatts
202 * and store it in @power. This function should actually calculate
203 * the requested power, but it's hard to get the frequency that
205 * Instead, we calculate the current power on the assumption that the
219 u32 *power)
242 *power = get_dynamic_power(cpufreq_cdev, freq);
244 trace_thermal_power_cpu_get_power_simple(policy->cpu, *power);
250 * cpufreq_state2power() - convert a cpu cdev state to power consumed
253 * @power: pointer in which to store the resulting power
255 * Convert cooling device state @state into power consumption in
256 * milliwatts assuming 100% load. Store the calculated power in
257 * @power.
263 unsigned long state, u32 *power)
276 *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus;
282 * cpufreq_power2state() - convert power to a cooling device state
284 * @power: power in milliwatts to be converted
288 * that would allow them to consume at most @power mW and store it in
290 * such as the CPUs load. Calling this function with the same power
297 u32 power, unsigned long *state)
305 normalised_power = (power * 100) / last_load;
310 power);
617 * Using this function, the cooling device will implement the power