Lines Matching defs:power

118 	return cpufreq_cdev->em->table[i + 1].power;
122 u32 power)
127 if (power >= cpufreq_cdev->em->table[i].power)
166 * get_dynamic_power() - calculate the dynamic power
170 * Return: the dynamic power consumed by the cpus described by
183 * cpufreq_get_requested_power() - get the current power
185 * @power: pointer in which to store the resulting power
187 * Calculate the current power consumption of the cpus in milliwatts
188 * and store it in @power. This function should actually calculate
189 * the requested power, but it's hard to get the frequency that
191 * Instead, we calculate the current power on the assumption that the
202 * Return: 0 on success, -E* if getting the static power failed.
205 u32 *power)
239 *power = get_dynamic_power(cpufreq_cdev, freq);
243 load_cpu, i, *power);
252 * cpufreq_state2power() - convert a cpu cdev state to power consumed
255 * @power: pointer in which to store the resulting power
257 * Convert cooling device state @state into power consumption in
258 * milliwatts assuming 100% load. Store the calculated power in
259 * @power.
263 * when calculating the static power.
266 unsigned long state, u32 *power)
279 *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus;
285 * cpufreq_power2state() - convert power to a cooling device state
287 * @power: power in milliwatts to be converted
291 * that would allow them to consume at most @power mW and store it in
293 * such as the cpu load or the current static power. Calling this
294 * function with the same power as input can yield different cooling
304 u32 power, unsigned long *state)
312 normalised_power = (power * 100) / last_load;
317 power);
615 * Using this function, the cooling device will implement the power
616 * extensions by using a simple cpu power model. The cpus must have
620 * static power consumed by the cpu.