Lines Matching defs:power

36  * @power_table:	Pointer to table with maximum power draw for each
38 * the power is in mW.
44 * @res_util: Resource utilization scaling factor for the power.
46 * for estimation of the power budget instead of using
50 * @capped_state: index to cooling state with in dynamic power budget
164 * get_static_power() - calculate the static power
168 * Calculate the static power in milliwatts using the supplied
171 * static power is negligible.
191 * get_dynamic_power - calculate the dynamic power
196 * Calculate the dynamic power in milliwatts consumed by the device at
199 * function is used. Otherwise, a simple power model (Pdyn = Coeff *
206 u64 power;
215 power = (u64)dfc_power->dyn_power_coeff * freq_mhz * voltage * voltage;
216 do_div(power, 1000000000);
218 return power;
232 u32 *power)
257 res = dfc->power_ops->get_real_power(df, power, freq, voltage);
263 if (*power > 1)
264 dfc->res_util /= *power;
271 /* Scale dynamic power for utilization */
274 /* Get static power */
277 *power = dyn_power + static_power;
281 static_power, *power);
292 u32 *power)
304 *power = dfc->power_table[state] + static_power;
309 u32 power, unsigned long *state)
323 est_power = power * dfc->res_util;
328 dyn_power = power - static_power;
331 /* Scale dynamic power for utilization */
337 * Find the first cooling state that is within the power
338 * budget for dynamic power.
346 trace_thermal_power_devfreq_limit(cdev, freq, *state, power);
357 * devfreq_cooling_gen_tables() - Generate power and freq tables.
360 * Generate power and frequency tables: the power table hold the
361 * device's maximum power usage at each cooling state (OPP). The
362 * static and dynamic power using the appropriate voltage and
364 * devfreq_cooling_power, and summed to make the maximum power draw.
401 unsigned long power, voltage;
415 power = get_total_power(dfc, freq, voltage);
417 power = get_dynamic_power(dfc, freq, voltage);
420 freq / 1000000, voltage, power, power);
422 power_table[i] = power;
446 * with OF and power information.
455 * power extensions. For the power extensions to work correctly,