Lines Matching +full:wake +full:- +full:device
3 * Module Name: evxfgpe - External Interfaces for General Purpose Events (GPEs)
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
174 * device _PRW methods (this indicates that these GPEs are
175 * generally intended for system or device wakeup. Such GPEs
181 * Device has been added or if any new GPE methods have been added via a
234 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
235 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
240 * hardware-enabled. in ACPI_EXPORT_SYMBOL()
267 if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != in ACPI_EXPORT_SYMBOL()
274 /* Poll edge-triggered GPEs to handle existing events */ in ACPI_EXPORT_SYMBOL()
299 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
300 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
306 * the GPE mask bit disabled (for wake GPEs) in ACPI_EXPORT_SYMBOL()
344 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
345 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
346 * Action - ACPI_GPE_ENABLE or ACPI_GPE_DISABLE in ACPI_EXPORT_SYMBOL()
357 * AcpiEnableGpe() <- Ensure the reference count > 0 in ACPI_EXPORT_SYMBOL()
358 * AcpiSetGpe(ACPI_GPE_DISABLE) <- Enter polling mode in ACPI_EXPORT_SYMBOL()
359 * AcpiSetGpe(ACPI_GPE_ENABLE) <- Leave polling mode in ACPI_EXPORT_SYMBOL()
360 * AcpiDisableGpe() <- Decrease the reference count in ACPI_EXPORT_SYMBOL()
401 GpeEventInfo->DisableForDispatch = FALSE; in ACPI_EXPORT_SYMBOL()
407 GpeEventInfo->DisableForDispatch = TRUE; in ACPI_EXPORT_SYMBOL()
428 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
429 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
430 * IsMasked - Whether the GPE is masked or not in ACPI_EXPORT_SYMBOL()
478 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
479 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
483 * DESCRIPTION: Mark a GPE as having the ability to wake the system. Simply in ACPI_EXPORT_SYMBOL()
487 * there won't be any notify handlers installed for device wake notifications in ACPI_EXPORT_SYMBOL()
491 * setup implicit wake notification for it (since there's no handler method). in ACPI_EXPORT_SYMBOL()
515 /* Mark the GPE as a possible wake event */ in ACPI_EXPORT_SYMBOL()
517 GpeEventInfo->Flags |= ACPI_GPE_CAN_WAKE; in ACPI_EXPORT_SYMBOL()
532 * PARAMETERS: WakeDevice - Device associated with the GPE (via _PRW) in ACPI_EXPORT_SYMBOL()
533 * GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
534 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
538 * DESCRIPTION: Mark a GPE as having the ability to wake the system. This in ACPI_EXPORT_SYMBOL()
540 * _PRW methods (Power Resources for Wake) in the system tables. in ACPI_EXPORT_SYMBOL()
541 * Each _PRW appears under a Device Object (The WakeDevice), and in ACPI_EXPORT_SYMBOL()
542 * contains the info for the wake GPE associated with the in ACPI_EXPORT_SYMBOL()
586 /* Validate WakeDevice is of type Device */ in ACPI_EXPORT_SYMBOL()
588 if (DeviceNode->Type != ACPI_TYPE_DEVICE) in ACPI_EXPORT_SYMBOL()
595 * Memory allocation while holding a spinlock is a big no-no in ACPI_EXPORT_SYMBOL()
619 * level-triggered (for windows compatibility). in ACPI_EXPORT_SYMBOL()
621 if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == in ACPI_EXPORT_SYMBOL()
625 * This is the first device for implicit notify on this GPE. in ACPI_EXPORT_SYMBOL()
628 GpeEventInfo->Flags = in ACPI_EXPORT_SYMBOL()
631 else if (GpeEventInfo->Flags & ACPI_GPE_AUTO_ENABLED) in ACPI_EXPORT_SYMBOL()
639 GpeEventInfo->Flags &= ~ACPI_GPE_AUTO_ENABLED; in ACPI_EXPORT_SYMBOL()
644 * this device to the notify list. in ACPI_EXPORT_SYMBOL()
646 if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == in ACPI_EXPORT_SYMBOL()
649 /* Ensure that the device is not already in the list */ in ACPI_EXPORT_SYMBOL()
651 Notify = GpeEventInfo->Dispatch.NotifyList; in ACPI_EXPORT_SYMBOL()
654 if (Notify->DeviceNode == DeviceNode) in ACPI_EXPORT_SYMBOL()
659 Notify = Notify->Next; in ACPI_EXPORT_SYMBOL()
662 /* Add this device to the notify list for this GPE */ in ACPI_EXPORT_SYMBOL()
664 NewNotify->DeviceNode = DeviceNode; in ACPI_EXPORT_SYMBOL()
665 NewNotify->Next = GpeEventInfo->Dispatch.NotifyList; in ACPI_EXPORT_SYMBOL()
666 GpeEventInfo->Dispatch.NotifyList = NewNotify; in ACPI_EXPORT_SYMBOL()
670 /* Mark the GPE as a possible wake event */ in ACPI_EXPORT_SYMBOL()
672 GpeEventInfo->Flags |= ACPI_GPE_CAN_WAKE; in ACPI_EXPORT_SYMBOL()
695 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
696 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
697 * Action - Enable or Disable in ACPI_EXPORT_SYMBOL()
702 * already be marked as a WAKE GPE. in ACPI_EXPORT_SYMBOL()
726 * fact a wake GPE in ACPI_EXPORT_SYMBOL()
735 if (!(GpeEventInfo->Flags & ACPI_GPE_CAN_WAKE)) in ACPI_EXPORT_SYMBOL()
741 GpeRegisterInfo = GpeEventInfo->RegisterInfo; in ACPI_EXPORT_SYMBOL()
756 ACPI_SET_BIT (GpeRegisterInfo->EnableForWake, (UINT8) RegisterBit); in ACPI_EXPORT_SYMBOL()
761 ACPI_CLEAR_BIT (GpeRegisterInfo->EnableForWake, (UINT8) RegisterBit); in ACPI_EXPORT_SYMBOL()
783 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
784 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
830 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
831 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
832 * EventStatus - Where the current status of the event in ACPI_EXPORT_SYMBOL()
882 * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 in ACPI_EXPORT_SYMBOL()
883 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
909 * PARAMETERS: GpeDevice - Namespace node for the GPE Block in ACPI_EXPORT_SYMBOL()
911 * GpeNumber - GPE level within the GPE block in ACPI_EXPORT_SYMBOL()
915 * DESCRIPTION: Clear and conditionally re-enable a GPE. This completes the GPE in ACPI_EXPORT_SYMBOL()
916 * processing. Intended for use by asynchronous host-installed in ACPI_EXPORT_SYMBOL()
917 * GPE handlers. The GPE is only re-enabled if the EnableForRun bit in ACPI_EXPORT_SYMBOL()
1110 * PARAMETERS: GpeDevice - Handle to the parent GPE Block Device in ACPI_EXPORT_SYMBOL()
1111 * GpeBlockAddress - Address and SpaceID in ACPI_EXPORT_SYMBOL()
1112 * RegisterCount - Number of GPE register pairs in the block in ACPI_EXPORT_SYMBOL()
1113 * InterruptNumber - H/W interrupt for the block in ACPI_EXPORT_SYMBOL()
1158 /* Validate the parent device */ in ACPI_EXPORT_SYMBOL()
1160 if (Node->Type != ACPI_TYPE_DEVICE) in ACPI_EXPORT_SYMBOL()
1166 if (Node->Object) in ACPI_EXPORT_SYMBOL()
1173 * For user-installed GPE Block Devices, the GpeBlockBaseNumber in ACPI_EXPORT_SYMBOL()
1176 Status = AcpiEvCreateGpeBlock (Node, GpeBlockAddress->Address, in ACPI_EXPORT_SYMBOL()
1177 GpeBlockAddress->SpaceId, RegisterCount, in ACPI_EXPORT_SYMBOL()
1190 * No object, create a new one (Device nodes do not always have in ACPI_EXPORT_SYMBOL()
1213 ObjDesc->Device.GpeBlock = GpeBlock; in ACPI_EXPORT_SYMBOL()
1228 * PARAMETERS: GpeDevice - Handle to the parent GPE Block Device in ACPI_EXPORT_SYMBOL()
1266 /* Validate the parent device */ in ACPI_EXPORT_SYMBOL()
1268 if (Node->Type != ACPI_TYPE_DEVICE) in ACPI_EXPORT_SYMBOL()
1278 !ObjDesc->Device.GpeBlock) in ACPI_EXPORT_SYMBOL()
1285 Status = AcpiEvDeleteGpeBlock (ObjDesc->Device.GpeBlock); in ACPI_EXPORT_SYMBOL()
1288 ObjDesc->Device.GpeBlock = NULL; in ACPI_EXPORT_SYMBOL()
1303 * PARAMETERS: Index - System GPE index (0-CurrentGpeCount) in ACPI_EXPORT_SYMBOL()
1304 * GpeDevice - Where the parent GPE Device is returned in ACPI_EXPORT_SYMBOL()
1308 * DESCRIPTION: Obtain the GPE device associated with the input index. A NULL in ACPI_EXPORT_SYMBOL()
1309 * gpe device indicates that the gpe number is contained in one of in ACPI_EXPORT_SYMBOL()
1310 * the FADT-defined gpe blocks. Otherwise, the GPE block device. in ACPI_EXPORT_SYMBOL()