Lines Matching defs:state
23 * @state: a normalized integer giving the state of the cooling device
27 unsigned long state;
33 * @state: a percentile based number
55 unsigned long state)
57 if (!state)
60 return ((idle_duration_us * 100) / state) - idle_duration_us;
64 * cpuidle_cooling_get_max_state - Get the maximum state
66 * @state : a pointer to the state variable to be filled
74 unsigned long *state)
79 * unify that to an 0..100 interval, so the set state
82 * The state 100% will make the cluster 100% ... idle. A 0%
87 *state = 100;
93 * cpuidle_cooling_get_cur_state - Get the current cooling state
95 * @state: a pointer to the state
97 * The function just copies the state value from the private thermal
103 unsigned long *state)
107 *state = idle_cdev->state;
113 * cpuidle_cooling_set_cur_state - Set the current cooling state
115 * @state: the target state
119 * cooling device. In any case, it updates the internal state for the
125 unsigned long state)
129 unsigned long current_state = idle_cdev->state;
132 idle_cdev->state = state;
136 runtime_us = cpuidle_cooling_runtime(idle_duration_us, state);
140 if (current_state == 0 && state > 0) {
142 } else if (current_state > 0 && !state) {