44 #include <linux/export.h>
51 #define _COMPONENT ACPI_EVENTS
94 if ((!device) || (!handler) || (!handler_type) ||
113 if (handler_type & (i + 1)) {
116 goto unlock_and_exit;
124 goto unlock_and_exit;
138 goto unlock_and_exit;
151 goto unlock_and_exit;
159 goto unlock_and_exit;
166 if (handler_type & (i + 1)) {
168 while (handler_obj) {
169 if (handler_obj->
notify.handler == handler) {
171 goto unlock_and_exit;
174 handler_obj = handler_obj->
notify.next[
i];
184 goto unlock_and_exit;
189 handler_obj->
notify.handler = handler;
195 if (handler_type & (i + 1)) {
248 if ((!device) || (!handler) || (!handler_type) ||
265 if (handler_type & (i + 1)) {
270 goto unlock_and_exit;
274 "Removing global notify handler\n"));
281 goto unlock_and_exit;
288 goto unlock_and_exit;
296 goto unlock_and_exit;
302 if (handler_type & (i + 1)) {
304 previous_handler_obj =
NULL;
308 while (handler_obj &&
309 (handler_obj->
notify.handler != handler)) {
310 previous_handler_obj = handler_obj;
311 handler_obj = handler_obj->
notify.next[
i];
316 goto unlock_and_exit;
321 if (previous_handler_obj) {
322 previous_handler_obj->
notify.next[
i] =
353 #ifdef ACPI_FUTURE_USAGE
384 #if (!ACPI_REDUCED_HARDWARE)
494 "Enabled fixed event %X, Handler=%p\n", event,
546 "Could not write to fixed event enable register 0x%X",
604 goto unlock_and_exit;
612 if (!gpe_event_info) {
651 gpe_event_info->
flags &=
664 goto unlock_and_exit;
714 if (!gpe_event_info) {
716 goto unlock_and_exit;
724 goto unlock_and_exit;
731 goto unlock_and_exit;
741 gpe_event_info->
flags &=