Lines Matching full:handler
184 * HandlerType - The type of handler:
185 * ACPI_SYSTEM_NOTIFY: System Handler (00-7F)
186 * ACPI_DEVICE_NOTIFY: Device Handler (80-FF)
188 * Handler - Address of the handler
189 * Context - Value passed to the handler on each GPE
193 * DESCRIPTION: Install a handler for notifications on an ACPI Device,
196 * NOTES: The Root namespace object may have only one handler for each
198 * may have one device notify handler, and multiple system notify
207 ACPI_NOTIFY_HANDLER Handler, in AcpiInstallNotifyHandler() argument
222 if ((!Device) || (!Handler) || (!HandlerType) || in AcpiInstallNotifyHandler()
236 * Registering a notify handler on the root object indicates that the in AcpiInstallNotifyHandler()
238 * only one global handler can be registered per notify type. in AcpiInstallNotifyHandler()
239 * Ensure that a handler is not already installed. in AcpiInstallNotifyHandler()
247 if (AcpiGbl_GlobalNotify[i].Handler) in AcpiInstallNotifyHandler()
253 AcpiGbl_GlobalNotify[i].Handler = Handler; in AcpiInstallNotifyHandler()
258 goto UnlockAndExit; /* Global notify handler installed, all done */ in AcpiInstallNotifyHandler()
300 /* Ensure that the handler is not already installed in the lists */ in AcpiInstallNotifyHandler()
309 if (HandlerObj->Notify.Handler == Handler) in AcpiInstallNotifyHandler()
320 /* Create and populate a new notify handler object */ in AcpiInstallNotifyHandler()
331 HandlerObj->Notify.Handler = Handler; in AcpiInstallNotifyHandler()
334 /* Install the handler at the list head(s) */ in AcpiInstallNotifyHandler()
347 /* Add an extra reference if handler was installed in both lists */ in AcpiInstallNotifyHandler()
367 * PARAMETERS: Device - The device for which the handler is installed in ACPI_EXPORT_SYMBOL()
368 * HandlerType - The type of handler: in ACPI_EXPORT_SYMBOL()
369 * ACPI_SYSTEM_NOTIFY: System Handler (00-7F) in ACPI_EXPORT_SYMBOL()
370 * ACPI_DEVICE_NOTIFY: Device Handler (80-FF) in ACPI_EXPORT_SYMBOL()
372 * Handler - Address of the handler in ACPI_EXPORT_SYMBOL()
376 * DESCRIPTION: Remove a handler for notifies on an ACPI device in ACPI_EXPORT_SYMBOL()
384 ACPI_NOTIFY_HANDLER Handler) in ACPI_EXPORT_SYMBOL()
399 if ((!Device) || (!Handler) || (!HandlerType) || in ACPI_EXPORT_SYMBOL()
419 if (!AcpiGbl_GlobalNotify[i].Handler || in ACPI_EXPORT_SYMBOL()
420 (AcpiGbl_GlobalNotify[i].Handler != Handler)) in ACPI_EXPORT_SYMBOL()
427 "Removing global notify handler\n")); in ACPI_EXPORT_SYMBOL()
429 AcpiGbl_GlobalNotify[i].Handler = NULL; in ACPI_EXPORT_SYMBOL()
458 /* Internal object exists. Find the handler and remove it */ in ACPI_EXPORT_SYMBOL()
473 /* Attempt to find the handler in the handler list */ in ACPI_EXPORT_SYMBOL()
476 (HandlerObj->Notify.Handler != Handler)) in ACPI_EXPORT_SYMBOL()
488 /* Remove the handler object from the list */ in ACPI_EXPORT_SYMBOL()
490 if (PreviousHandlerObj) /* Handler is not at the list head */ in ACPI_EXPORT_SYMBOL()
495 else /* Handler is at the list head */ in ACPI_EXPORT_SYMBOL()
525 * PARAMETERS: Handler - Pointer to the handler function for the in ACPI_EXPORT_SYMBOL()
530 * DESCRIPTION: Saves the pointer to the handler function in ACPI_EXPORT_SYMBOL()
536 ACPI_EXCEPTION_HANDLER Handler) in ACPI_EXPORT_SYMBOL()
558 /* Install the handler */ in ACPI_EXPORT_SYMBOL()
560 AcpiGbl_ExceptionHandler = Handler; in ACPI_EXPORT_SYMBOL()
575 * PARAMETERS: Address - Address of the handler in ACPI_EXPORT_SYMBOL()
576 * Context - Value passed to the handler on each SCI in ACPI_EXPORT_SYMBOL()
580 * DESCRIPTION: Install a handler for a System Control Interrupt. in ACPI_EXPORT_SYMBOL()
603 /* Allocate and init a handler object */ in ACPI_EXPORT_SYMBOL()
625 /* Ensure handler does not already exist */ in ACPI_EXPORT_SYMBOL()
638 /* Install the new handler into the global list (at head) */ in ACPI_EXPORT_SYMBOL()
664 * PARAMETERS: Address - Address of the handler in ACPI_EXPORT_SYMBOL()
668 * DESCRIPTION: Remove a handler for a System Control Interrupt. in ACPI_EXPORT_SYMBOL()
696 /* Remove the SCI handler with lock */ in ACPI_EXPORT_SYMBOL()
706 /* Unlink and free the SCI handler info block */ in ACPI_EXPORT_SYMBOL()
742 * PARAMETERS: Handler - Pointer to the global event handler function in ACPI_EXPORT_SYMBOL()
743 * Context - Value passed to the handler on each event in ACPI_EXPORT_SYMBOL()
747 * DESCRIPTION: Saves the pointer to the handler function. The global handler in ACPI_EXPORT_SYMBOL()
756 ACPI_GBL_EVENT_HANDLER Handler, in ACPI_EXPORT_SYMBOL()
767 if (!Handler) in ACPI_EXPORT_SYMBOL()
786 AcpiGbl_GlobalEventHandler = Handler; in ACPI_EXPORT_SYMBOL()
803 * Handler - Pointer to the handler function for the in ACPI_EXPORT_SYMBOL()
805 * Context - Value passed to the handler on each GPE in ACPI_EXPORT_SYMBOL()
809 * DESCRIPTION: Saves the pointer to the handler function and then enables the in ACPI_EXPORT_SYMBOL()
817 ACPI_EVENT_HANDLER Handler, in ACPI_EXPORT_SYMBOL()
841 if (AcpiGbl_FixedEventHandlers[Event].Handler) in ACPI_EXPORT_SYMBOL()
847 /* Install the handler before enabling the event */ in ACPI_EXPORT_SYMBOL()
849 AcpiGbl_FixedEventHandlers[Event].Handler = Handler; in ACPI_EXPORT_SYMBOL()
859 /* Remove the handler */ in ACPI_EXPORT_SYMBOL()
861 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; in ACPI_EXPORT_SYMBOL()
867 "Enabled fixed event %s (%X), Handler=%p\n", in ACPI_EXPORT_SYMBOL()
868 AcpiUtGetEventName (Event), Event, Handler)); in ACPI_EXPORT_SYMBOL()
885 * Handler - Address of the handler in ACPI_EXPORT_SYMBOL()
889 * DESCRIPTION: Disables the event and unregisters the event handler. in ACPI_EXPORT_SYMBOL()
896 ACPI_EVENT_HANDLER Handler) in ACPI_EXPORT_SYMBOL()
917 /* Disable the event before removing the handler */ in ACPI_EXPORT_SYMBOL()
921 /* Always Remove the handler */ in ACPI_EXPORT_SYMBOL()
923 AcpiGbl_FixedEventHandlers[Event].Handler = NULL; in ACPI_EXPORT_SYMBOL()
956 * the special GPE handler mode. in ACPI_EXPORT_SYMBOL()
957 * Address - Address of the handler in ACPI_EXPORT_SYMBOL()
958 * Context - Value passed to the handler on each GPE in ACPI_EXPORT_SYMBOL()
962 * DESCRIPTION: Internal function to install a handler for a General Purpose in ACPI_EXPORT_SYMBOL()
977 ACPI_GPE_HANDLER_INFO *Handler; in ACPI_EXPORT_SYMBOL() local
998 /* Allocate and init handler object (before lock) */ in ACPI_EXPORT_SYMBOL()
1000 Handler = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_GPE_HANDLER_INFO)); in ACPI_EXPORT_SYMBOL()
1001 if (!Handler) in ACPI_EXPORT_SYMBOL()
1018 /* Make sure that there isn't a handler there already */ in ACPI_EXPORT_SYMBOL()
1029 Handler->Address = Address; in ACPI_EXPORT_SYMBOL()
1030 Handler->Context = Context; in ACPI_EXPORT_SYMBOL()
1031 Handler->MethodNode = GpeEventInfo->Dispatch.MethodNode; in ACPI_EXPORT_SYMBOL()
1032 Handler->OriginalFlags = (UINT8) (GpeEventInfo->Flags & in ACPI_EXPORT_SYMBOL()
1038 * disabled now to avoid spurious execution of the handler. in ACPI_EXPORT_SYMBOL()
1040 if (((ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == in ACPI_EXPORT_SYMBOL()
1042 (ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == in ACPI_EXPORT_SYMBOL()
1046 Handler->OriginallyEnabled = TRUE; in ACPI_EXPORT_SYMBOL()
1057 /* Install the handler */ in ACPI_EXPORT_SYMBOL()
1059 GpeEventInfo->Dispatch.Handler = Handler; in ACPI_EXPORT_SYMBOL()
1061 /* Setup up dispatch flags to indicate handler (vs. method/notify) */ in ACPI_EXPORT_SYMBOL()
1076 ACPI_FREE (Handler); in ACPI_EXPORT_SYMBOL()
1090 * Address - Address of the handler
1091 * Context - Value passed to the handler on each GPE
1095 * DESCRIPTION: Install a handler for a General Purpose Event.
1131 * Address - Address of the handler in ACPI_EXPORT_SYMBOL()
1132 * Context - Value passed to the handler on each GPE in ACPI_EXPORT_SYMBOL()
1136 * DESCRIPTION: Install a handler for a General Purpose Event. in ACPI_EXPORT_SYMBOL()
1169 * GpeNumber - The event to remove a handler in ACPI_EXPORT_SYMBOL()
1170 * Address - Address of the handler in ACPI_EXPORT_SYMBOL()
1174 * DESCRIPTION: Remove a handler for a General Purpose AcpiEvent. in ACPI_EXPORT_SYMBOL()
1185 ACPI_GPE_HANDLER_INFO *Handler; in ACPI_EXPORT_SYMBOL() local
1217 /* Make sure that a handler is indeed installed */ in ACPI_EXPORT_SYMBOL()
1228 /* Make sure that the installed handler is the same */ in ACPI_EXPORT_SYMBOL()
1230 if (GpeEventInfo->Dispatch.Handler->Address != Address) in ACPI_EXPORT_SYMBOL()
1236 /* Remove the handler */ in ACPI_EXPORT_SYMBOL()
1238 Handler = GpeEventInfo->Dispatch.Handler; in ACPI_EXPORT_SYMBOL()
1239 GpeEventInfo->Dispatch.Handler = NULL; in ACPI_EXPORT_SYMBOL()
1243 GpeEventInfo->Dispatch.MethodNode = Handler->MethodNode; in ACPI_EXPORT_SYMBOL()
1246 GpeEventInfo->Flags |= Handler->OriginalFlags; in ACPI_EXPORT_SYMBOL()
1253 if (((ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == in ACPI_EXPORT_SYMBOL()
1255 (ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == in ACPI_EXPORT_SYMBOL()
1257 Handler->OriginallyEnabled) in ACPI_EXPORT_SYMBOL()
1278 /* Now we can free the handler object */ in ACPI_EXPORT_SYMBOL()
1280 ACPI_FREE (Handler); in ACPI_EXPORT_SYMBOL()