Lines Matching +full:suspend +full:- +full:to +full:- +full:disk
1 /* SPDX-License-Identifier: GPL-2.0 */
100 * struct platform_suspend_ops - Callbacks for managing platform dependent
103 * @valid: Callback to determine if given system sleep state is supported by
106 * that it still may be impossible to enter given system sleep state if the
109 * assigned to this if the platform only supports mem sleep.
111 * @begin: Initialise a transition to given system sleep state.
112 * @begin() is executed right prior to suspending devices. The information
113 * conveyed to the platform code by @begin() should be disregarded by it as
117 * passed to @enter() is redundant and should be ignored.
122 * appropriate .suspend() method has been executed for each device) and
123 * before device drivers' late suspend callbacks are executed. It returns
131 * device drivers' late suspend callbacks have been executed. It returns
149 * @finish: Finish wake-up of the platform.
150 * @finish is called right prior to calling device drivers' regular suspend
157 * @suspend_again: Returns whether the system should suspend again (true) or
158 * not (false). If the platform wants to poll sensors or execute some
160 * suspend_again callback is the place assuming that periodic-wakeup or
161 * alarm-wakeup is already setup. This allows to execute some codes while
164 * @end: Called by the PM core right after resuming devices, to indicate to
165 * the platform that the system has returned to the working state or
166 * the transition to the sleep state has been aborted.
172 * @recover: Recover the platform from a suspend failure.
204 * suspend_set_ops - set platform dependent suspend operations
205 * @ops: The new suspend operations to set.
240 /* Suspend-to-idle state machnine. */
243 S2IDLE_STATE_ENTER, /* Enter suspend-to-idle. */
244 S2IDLE_STATE_WAKE, /* Wake up from suspend-to-idle. */
260 * arch_suspend_disable_irqs - disable IRQs for suspend
263 * code and thus allows architectures to override it if more needs to be
264 * done. Not called for suspend to disk.
269 * arch_suspend_enable_irqs - enable IRQs after suspend
272 * code and thus allows architectures to override it if more needs to be
273 * done. Not called for suspend to disk.
289 static inline int pm_suspend(suspend_state_t state) { return -ENOSYS; } in pm_suspend()
297 * atomically during the resume from disk, because the page frames they have
298 * occupied before the suspend are in use.
310 * struct platform_hibernation_ops - hibernation platform support
312 * The methods in this structure allow a platform to carry out special
320 * @end: Called by the PM core right after resuming devices, to indicate to
321 * the platform that the system has returned to the working state.
338 * has been saved to disk.
344 * Called right after the control has been passed from the boot kernel to
356 * @recover: Recover the platform from a failure to suspend devices.
406 static inline int hibernate(void) { return -ENOSYS; } in hibernate()
411 /* Hibernation and suspend events */
412 #define PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */
414 #define PM_SUSPEND_PREPARE 0x0003 /* Going to suspend the system */
415 #define PM_POST_SUSPEND 0x0004 /* Suspend finished */
416 #define PM_RESTORE_PREPARE 0x0005 /* Going to restore a saved image */
511 * to save/restore additional information to/from the array of page
512 * frame numbers in the hibernation image. For s390 this is used to