Lines Matching defs:state

35  * @cooling_state:	Current cooling state.
37 * cooling state. State is the index into the table, and
40 * order. You can index the table by cooling device state
48 * The 'res_util' range is from 100 to (power_table[state] * 100)
49 * for the corresponding 'state'.
50 * @capped_state: index to cooling state with in dynamic power budget
69 unsigned long *state)
73 *state = dfc->freq_table_size - 1;
79 unsigned long *state)
83 *state = dfc->cooling_state;
89 unsigned long state)
96 if (state == dfc->cooling_state)
99 dev_dbg(dev, "Setting cooling state %lu\n", state);
101 if (state >= dfc->freq_table_size)
104 freq = dfc->freq_table[state];
109 dfc->cooling_state = state;
115 * freq_get_state() - get the cooling state corresponding to a frequency
119 * Return: the cooling state associated with the @freq, or
237 unsigned long state;
244 state = freq_get_state(dfc, freq);
245 if (state == THERMAL_CSTATE_INVALID) {
259 state = dfc->capped_state;
260 dfc->res_util = dfc->power_table[state];
269 dyn_power = dfc->power_table[state];
291 unsigned long state,
298 if (state >= dfc->freq_table_size)
301 freq = dfc->freq_table[state];
304 *power = dfc->power_table[state] + static_power;
309 u32 power, unsigned long *state)
337 * Find the first cooling state that is within the power
344 *state = i;
346 trace_thermal_power_devfreq_limit(cdev, freq, *state, power);
361 * device's maximum power usage at each cooling state (OPP). The
363 * frequency for the state, is acquired from the struct
367 * That way its indexed by cooling device state.