Lines Matching +full:enable +full:- +full:charge +full:- +full:control
3 * Name: hwsleep.c - ACPI Hardware Sleep/Wake Support functions for the
12 * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
109 * any of its subsidiaries will export/re-export any technical data, process,
131 * 3. Neither the names of the above-listed copyright holders nor the names
165 * PARAMETERS: SleepState - Which sleep state to enter
215 /* Enable all wakeup GPEs */
223 /* Get current value of PM1A control */
236 Pm1aControl &= ~(SleepTypeRegInfo->AccessBitMask |
237 SleepEnableRegInfo->AccessBitMask);
242 Pm1aControl |= (AcpiGbl_SleepTypeA << SleepTypeRegInfo->BitPosition);
243 Pm1bControl |= (AcpiGbl_SleepTypeB << SleepTypeRegInfo->BitPosition);
250 /* Write #1: write the SLP_TYP data to the PM1 Control registers */
258 /* Insert the sleep enable (SLP_EN) bit */
260 Pm1aControl |= SleepEnableRegInfo->AccessBitMask;
261 Pm1bControl |= SleepEnableRegInfo->AccessBitMask;
304 SleepEnableRegInfo->AccessBitMask);
331 * PARAMETERS: SleepState - Which sleep state we just exited
335 * DESCRIPTION: Perform the first state of OS-independent ACPI cleanup after a
366 /* Get current value of PM1A control */
374 Pm1aControl &= ~(SleepTypeRegInfo->AccessBitMask |
375 SleepEnableRegInfo->AccessBitMask);
381 SleepTypeRegInfo->BitPosition);
383 SleepTypeRegInfo->BitPosition);
385 /* Write the control registers and ignore any errors */
399 * PARAMETERS: SleepState - Which sleep state we just exited
403 * DESCRIPTION: Perform OS-independent ACPI cleanup after a sleep
418 /* Ensure EnterSleepStatePrep -> EnterSleepState ordering */
429 * 2) Enable all runtime GPEs
458 /* Enable power button */
468 /* Enable sleep button */