Lines Matching defs:state
141 * state - control system power state.
176 suspend_state_t state = PM_SUSPEND_STANDBY;
193 for (s = &pm_states[state]; state < PM_SUSPEND_MAX; s++, state++) {
197 if (state < PM_SUSPEND_MAX && *s)
198 error = enter_state(state);
205 power_attr(state);
213 * If a wakeup event occurs when the system is in a sleep state, it simply is
215 * state occurs when it is undergoing a transition to that sleep state, the
217 * system is in the working state, an attempt to start a transition to the
218 * given sleep state should fail during certain period after the detection of
219 * the event. Using the 'state' attribute alone is not sufficient to satisfy
220 * these requirements, because a wakeup event may occur exactly when 'state'
224 * a sleep state to be aborted.
227 * writing to 'state'. It first should read from 'wakeup_count' and store
229 * transition to a sleep state, it should write the stored value to
231 * 'wakeup_count' was read and 'state' should not be written to. Otherwise, it
232 * is allowed to write to 'state', but the transition will be aborted if there