Lines Matching defs:state
33 * @cooling_state: Current cooling state.
35 * order. You can index the table by cooling device state
44 * corresponding 'state'.
45 * @capped_state: index to cooling state with in dynamic power budget
65 unsigned long *state)
69 *state = dfc->max_state;
75 unsigned long *state)
79 *state = dfc->cooling_state;
85 unsigned long state)
93 if (state == dfc->cooling_state)
96 dev_dbg(dev, "Setting cooling state %lu\n", state);
98 if (state > dfc->max_state)
102 perf_idx = dfc->max_state - state;
105 freq = dfc->freq_table[state];
111 dfc->cooling_state = state;
184 unsigned long state;
204 state = dfc->capped_state;
207 dfc->res_util = dfc->em_pd->table[state].power;
245 unsigned long state, u32 *power)
250 if (state > dfc->max_state)
253 perf_idx = dfc->max_state - state;
261 u32 power, unsigned long *state)
288 * Find the first cooling state that is within the power
299 *state = dfc->max_state - i;
300 dfc->capped_state = *state;
302 trace_thermal_power_devfreq_limit(cdev, freq, *state, power);
312 * order. That way its indexed by cooling device state. This is for