Lines Matching +full:wakeup +full:- +full:method

1 // SPDX-License-Identifier: GPL-2.0-only
3 * sleep.c - ACPI sleep support.
7 * Copyright (c) 2000-2003 Patrick Mochel
30 * Some HW-full platforms do not have _S5, so they may need
68 /* do we have a wakeup address for S2 and S3? */ in acpi_sleep_prepare()
72 return -EFAULT; in acpi_sleep_prepare()
178 DMI_MATCH(DMI_BOARD_NAME, "KN9 Series(NF-CK804)"),
185 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
191 .ident = "Asus Pundit P1-AH2 (M2N8L motherboard)",
199 .ident = "Panasonic CF51-2L",
203 DMI_MATCH(DMI_BOARD_NAME, "CF51-2L"),
208 .ident = "Sony Vaio VGN-FW41E_H",
211 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW41E_H"),
216 .ident = "Sony Vaio VGN-FW21E",
219 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW21E"),
224 .ident = "Sony Vaio VGN-FW21M",
227 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW21M"),
240 .ident = "Sony Vaio VGN-SR11M",
243 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SR11M"),
264 .ident = "Sony Vaio VGN-NW130D",
267 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-NW130D"),
280 .ident = "Averatec AV1020-ED2",
288 .ident = "Asus A8N-SLI DELUXE",
291 DMI_MATCH(DMI_BOARD_NAME, "A8N-SLI DELUXE"),
296 .ident = "Asus A8N-SLI Premium",
299 DMI_MATCH(DMI_BOARD_NAME, "A8N-SLI Premium"),
304 .ident = "Sony Vaio VGN-SR26GN_P",
307 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SR26GN_P"),
320 .ident = "Sony Vaio VGN-FW520F",
323 DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW520F"),
352 * Lenovo G50-45 is a platform later than 2012, but needs nvs memory
357 .ident = "Lenovo G50-45",
365 .ident = "Lenovo G40-45",
372 * ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using
418 * acpi_pm_freeze - Disable the GPEs and suspend EC transactions.
429 * acpi_pm_pre_suspend - Enable wakeup devices, "freeze" EC and save NVS.
438 * __acpi_pm_prepare - Prepare the platform to enter the target state.
440 * If necessary, set the firmware waking vector and do arch-specific
441 * nastiness to get the wakeup code to the waking vector.
453 * acpi_pm_prepare - Prepare the platform to enter the target sleep
466 * acpi_pm_finish - Instruct the platform to leave a sleep state.
494 * hint to userspace in the form of a wakeup event on the fixed power in acpi_pm_finish()
504 NULL, -1); in acpi_pm_finish()
506 pm_wakeup_event(&pwr_btn_adev->dev, 0); in acpi_pm_finish()
512 * acpi_pm_start - Start system PM transition.
522 * acpi_pm_end - Finish up system PM transition.
551 * acpi_suspend_begin - Set the target system sleep state to the state
565 return -ENOSYS; in acpi_suspend_begin()
575 * acpi_suspend_enter - Actually enter a sleep state.
578 * Flush caches and go to sleep. For STR we have to call arch-specific
597 return -ENOSYS; in acpi_suspend_enter()
601 pr_info("Low-level resume complete\n"); in acpi_suspend_enter()
618 * a wakeup event. We flag this condition for now and generate the in acpi_suspend_enter()
620 * generate wakeup events. in acpi_suspend_enter()
636 * (like wakeup GPE) haven't handler, this can avoid such GPE misfire. in acpi_suspend_enter()
645 return ACPI_SUCCESS(status) ? 0 : -EFAULT; in acpi_suspend_enter()
674 * acpi_suspend_begin_old - Set the target system sleep state to the
676 * execute the _PTS control method. This function is used if the
677 * pre-ACPI 2.0 suspend ordering has been requested.
689 * The following callbacks are used if the pre-ACPI 2.0 suspend ordering has
719 /* Change the configuration of GPEs to avoid spurious wakeup. */ in acpi_s2idle_prepare()
736 * wakeup is pending anyway and the SCI is not the source of in acpi_s2idle_wake()
740 pm_pr_dbg("Wakeup unrelated to ACPI SCI\n"); in acpi_s2idle_wake()
746 * wakeup is regarded as valid. in acpi_s2idle_wake()
749 pm_pr_dbg("ACPI fixed event wakeup\n"); in acpi_s2idle_wake()
755 pm_pr_dbg("ACPI custom handler wakeup\n"); in acpi_s2idle_wake()
760 * Check non-EC GPE wakeups and if there are none, cancel the in acpi_s2idle_wake()
761 * SCI-related wakeup and dispatch the EC GPE. in acpi_s2idle_wake()
764 pm_pr_dbg("ACPI non-EC GPE wakeup\n"); in acpi_s2idle_wake()
772 * new wakeup events till the rearming below, so if any of them in acpi_s2idle_wake()
777 pm_pr_dbg("Wakeup after ACPI Notify sync\n"); in acpi_s2idle_wake()
781 pm_pr_dbg("Rearming ACPI SCI for wakeup\n"); in acpi_s2idle_wake()
793 * Drain pending events before restoring the working-state configuration in acpi_s2idle_restore()
828 pr_info("Efficient low-power S0 idle declared\n"); in acpi_s2idle_setup()
897 int acpi_check_s4_hw_signature = -1; /* Default behaviour is just to warn */
923 return ACPI_SUCCESS(status) ? 0 : -EFAULT; in acpi_hibernation_enter()
937 if (facs && s4_hardware_signature != facs->hardware_signature) in acpi_hibernation_leave()
964 * acpi_hibernation_begin_old - Set the target system sleep state to
965 * ACPI_STATE_S4 and execute the _PTS control method. This
966 * function is used if the pre-ACPI 2.0 suspend ordering has been
998 * The following callbacks are used if the pre-ACPI 2.0 suspend ordering has
1032 s4_hardware_signature = facs->hardware_signature; in acpi_sleep_hibernate_setup()
1041 swsusp_hardware_signature = facs->hardware_signature; in acpi_sleep_hibernate_setup()