Lines Matching defs:state
103 * @valid: Callback to determine if given system sleep state is supported by
105 * Valid (ie. supported) states are advertised in /sys/power/state. Note
106 * that it still may be impossible to enter given system sleep state if the
111 * @begin: Initialise a transition to given system sleep state.
119 * @prepare: Prepare the platform for entering the system sleep state indicated
125 * system cannot enter the desired sleep state (@prepare_late(), @enter(),
129 * state indicated by @begin().
133 * system cannot enter the desired sleep state (@enter() will not be
136 * @enter: Enter the system sleep state indicated by @begin() or represented by
140 * sleep state.
142 * @wake: Called when the system has just left a sleep state, right after
165 * the platform that the system has returned to the working state or
166 * the transition to the sleep state has been aborted.
178 int (*valid)(suspend_state_t state);
179 int (*begin)(suspend_state_t state);
182 int (*enter)(suspend_state_t state);
209 extern int suspend_valid_only_mem(suspend_state_t state);
241 * or during the subsequent system-wide transitions back to the working state.
244 * the system-wide power management transition (to a sleep state) in progress in
247 * state.
255 * state (as they may need to be taken into account).
282 * or during the subsequent system-wide transitions back to the working state.
286 * is, if a device is put into a certain power state during suspend, it can be
287 * expected to remain in that state during resume).
294 /* Suspend-to-idle state machnine. */
331 extern int pm_suspend(suspend_state_t state);
345 static inline int pm_suspend(suspend_state_t state) { return -ENOSYS; }
378 * the platform that the system has returned to the working state.
384 * @finish: Restore the previous state of the platform after the hibernation
390 * @prepare: Prepare the platform for entering the low power state.
392 * devices are prepared for entering the low power state.
394 * @enter: Put the system into the low power state after the hibernation image
399 * @leave: Perform the first stage of the cleanup after the system sleep state