Lines Matching defs:state
22 * @state: a normalized integer giving the state of the cooling device
26 unsigned long state;
34 * @state: a percentile based number
56 unsigned long state)
58 if (!state)
61 return ((idle_duration_us * 100) / state) - idle_duration_us;
65 * cpuidle_cooling_get_max_state - Get the maximum state
67 * @state : a pointer to the state variable to be filled
75 unsigned long *state)
80 * unify that to an 0..100 interval, so the set state
83 * The state 100% will make the cluster 100% ... idle. A 0%
88 *state = 100;
94 * cpuidle_cooling_get_cur_state - Get the current cooling state
96 * @state: a pointer to the state
98 * The function just copies the state value from the private thermal
104 unsigned long *state)
108 *state = idle_cdev->state;
114 * cpuidle_cooling_set_cur_state - Set the current cooling state
116 * @state: the target state
120 * cooling device. In any case, it updates the internal state for the
126 unsigned long state)
130 unsigned long current_state = idle_cdev->state;
133 idle_cdev->state = state;
137 runtime_us = cpuidle_cooling_runtime(idle_duration_us, state);
141 if (current_state == 0 && state > 0) {
143 } else if (current_state > 0 && !state) {