Searched refs:gpe_event_info (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/drivers/acpi/acpica/
H A Devgpe.c61 * PARAMETERS: gpe_event_info - GPE to update
71 acpi_ev_update_gpe_enable_mask(struct acpi_gpe_event_info *gpe_event_info) acpi_ev_update_gpe_enable_mask() argument
78 gpe_register_info = gpe_event_info->register_info; acpi_ev_update_gpe_enable_mask()
83 register_bit = acpi_hw_get_gpe_register_bit(gpe_event_info); acpi_ev_update_gpe_enable_mask()
91 if (gpe_event_info->runtime_count) { acpi_ev_update_gpe_enable_mask()
104 * PARAMETERS: gpe_event_info - GPE to enable
112 acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) acpi_ev_enable_gpe() argument
120 status = acpi_hw_clear_gpe(gpe_event_info); acpi_ev_enable_gpe()
127 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_ENABLE); acpi_ev_enable_gpe()
135 * PARAMETERS: gpe_event_info - Add a reference to this GPE
145 acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info) acpi_ev_add_gpe_reference() argument
151 if (gpe_event_info->runtime_count == ACPI_UINT8_MAX) { acpi_ev_add_gpe_reference()
155 gpe_event_info->runtime_count++; acpi_ev_add_gpe_reference()
156 if (gpe_event_info->runtime_count == 1) { acpi_ev_add_gpe_reference()
160 status = acpi_ev_update_gpe_enable_mask(gpe_event_info); acpi_ev_add_gpe_reference()
162 status = acpi_ev_enable_gpe(gpe_event_info); acpi_ev_add_gpe_reference()
166 gpe_event_info->runtime_count--; acpi_ev_add_gpe_reference()
177 * PARAMETERS: gpe_event_info - Remove a reference to this GPE
187 acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info) acpi_ev_remove_gpe_reference() argument
193 if (!gpe_event_info->runtime_count) { acpi_ev_remove_gpe_reference()
197 gpe_event_info->runtime_count--; acpi_ev_remove_gpe_reference()
198 if (!gpe_event_info->runtime_count) { acpi_ev_remove_gpe_reference()
202 status = acpi_ev_update_gpe_enable_mask(gpe_event_info); acpi_ev_remove_gpe_reference()
205 acpi_hw_low_set_gpe(gpe_event_info, acpi_ev_remove_gpe_reference()
210 gpe_event_info->runtime_count++; acpi_ev_remove_gpe_reference()
334 struct acpi_gpe_event_info *gpe_event_info; acpi_ev_gpe_detect() local
441 gpe_event_info = acpi_ev_gpe_detect()
463 (gpe_event_info->flags) == acpi_ev_gpe_detect()
469 gpe_event_info->dispatch. acpi_ev_gpe_detect()
500 (gpe_device, gpe_event_info, acpi_ev_gpe_detect()
520 * PARAMETERS: Context (gpe_event_info) - Info for this GPE
534 struct acpi_gpe_event_info *gpe_event_info = context; acpi_ev_asynch_execute_gpe_method() local
543 switch (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags)) { acpi_ev_asynch_execute_gpe_method()
556 notify = gpe_event_info->dispatch.notify_list; acpi_ev_asynch_execute_gpe_method()
580 gpe_event_info->dispatch.method_node; acpi_ev_asynch_execute_gpe_method()
590 acpi_ut_get_node_name(gpe_event_info-> acpi_ev_asynch_execute_gpe_method()
604 acpi_ev_asynch_enable_gpe, gpe_event_info); acpi_ev_asynch_execute_gpe_method()
610 acpi_ev_asynch_enable_gpe(gpe_event_info); acpi_ev_asynch_execute_gpe_method()
619 * PARAMETERS: Context (gpe_event_info) - Info for this GPE
631 struct acpi_gpe_event_info *gpe_event_info = context; acpi_ev_asynch_enable_gpe() local
635 (void)acpi_ev_finish_gpe(gpe_event_info); acpi_ev_asynch_enable_gpe()
646 * PARAMETERS: gpe_event_info - Info for this GPE
655 acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info * gpe_event_info) acpi_ev_finish_gpe() argument
659 if ((gpe_event_info->flags & ACPI_GPE_XRUPT_TYPE_MASK) == acpi_ev_finish_gpe()
665 status = acpi_hw_clear_gpe(gpe_event_info); acpi_ev_finish_gpe()
676 (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_CONDITIONAL_ENABLE); acpi_ev_finish_gpe()
686 * gpe_event_info - Info for this GPE
700 struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) acpi_ev_gpe_dispatch()
716 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_DISABLE); acpi_ev_gpe_dispatch()
727 if ((gpe_event_info->flags & ACPI_GPE_XRUPT_TYPE_MASK) == acpi_ev_gpe_dispatch()
729 status = acpi_hw_clear_gpe(gpe_event_info); acpi_ev_gpe_dispatch()
734 (void)acpi_hw_low_set_gpe(gpe_event_info, acpi_ev_gpe_dispatch()
747 switch (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags)) { acpi_ev_gpe_dispatch()
753 gpe_event_info->dispatch.handler->address(gpe_device, acpi_ev_gpe_dispatch()
755 gpe_event_info-> acpi_ev_gpe_dispatch()
762 (void)acpi_ev_finish_gpe(gpe_event_info); acpi_ev_gpe_dispatch()
774 gpe_event_info); acpi_ev_gpe_dispatch()
699 acpi_ev_gpe_dispatch(struct acpi_namespace_node *gpe_device, struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) acpi_ev_gpe_dispatch() argument
H A Devxfgpe.c121 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
133 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
134 if (gpe_event_info) { ACPI_EXPORT_SYMBOL()
135 if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) != ACPI_EXPORT_SYMBOL()
137 status = acpi_ev_add_gpe_reference(gpe_event_info); ACPI_EXPORT_SYMBOL()
166 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
175 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
176 if (gpe_event_info) { ACPI_EXPORT_SYMBOL()
177 status = acpi_ev_remove_gpe_reference(gpe_event_info) ; ACPI_EXPORT_SYMBOL()
216 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
226 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
227 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
237 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_ENABLE); ACPI_EXPORT_SYMBOL()
242 status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_DISABLE); ACPI_EXPORT_SYMBOL()
280 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
290 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
291 if (gpe_event_info) { ACPI_EXPORT_SYMBOL()
295 gpe_event_info->flags |= ACPI_GPE_CAN_WAKE; ACPI_EXPORT_SYMBOL()
328 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
375 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
376 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
387 if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == ACPI_EXPORT_SYMBOL()
393 gpe_event_info->flags = ACPI_EXPORT_SYMBOL()
401 if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == ACPI_EXPORT_SYMBOL()
406 notify = gpe_event_info->dispatch.notify_list; ACPI_EXPORT_SYMBOL()
418 new_notify->next = gpe_event_info->dispatch.notify_list; ACPI_EXPORT_SYMBOL()
419 gpe_event_info->dispatch.notify_list = new_notify; ACPI_EXPORT_SYMBOL()
425 gpe_event_info->flags |= ACPI_GPE_CAN_WAKE; ACPI_EXPORT_SYMBOL()
459 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
472 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
473 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
478 if (!(gpe_event_info->flags & ACPI_GPE_CAN_WAKE)) { ACPI_EXPORT_SYMBOL()
483 gpe_register_info = gpe_event_info->register_info; ACPI_EXPORT_SYMBOL()
489 register_bit = acpi_hw_get_gpe_register_bit(gpe_event_info); ACPI_EXPORT_SYMBOL()
535 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
544 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
545 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
550 status = acpi_hw_clear_gpe(gpe_event_info); ACPI_EXPORT_SYMBOL()
578 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
587 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
588 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
595 status = acpi_hw_get_gpe_status(gpe_event_info, event_status); ACPI_EXPORT_SYMBOL()
622 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
632 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
633 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
638 status = acpi_ev_finish_gpe(gpe_event_info); ACPI_EXPORT_SYMBOL()
H A Dhwgpe.c65 * PARAMETERS: gpe_event_info - Info block for the GPE
74 u32 acpi_hw_get_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info) acpi_hw_get_gpe_register_bit() argument
78 (gpe_event_info->gpe_number - acpi_hw_get_gpe_register_bit()
79 gpe_event_info->register_info->base_gpe_number)); acpi_hw_get_gpe_register_bit()
86 * PARAMETERS: gpe_event_info - Info block for the GPE to be disabled
98 acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action) acpi_hw_low_set_gpe() argument
109 gpe_register_info = gpe_event_info->register_info; acpi_hw_low_set_gpe()
123 register_bit = acpi_hw_get_gpe_register_bit(gpe_event_info); acpi_hw_low_set_gpe()
161 * PARAMETERS: gpe_event_info - Info block for the GPE to be cleared
169 acpi_status acpi_hw_clear_gpe(struct acpi_gpe_event_info * gpe_event_info) acpi_hw_clear_gpe() argument
179 gpe_register_info = gpe_event_info->register_info; acpi_hw_clear_gpe()
188 register_bit = acpi_hw_get_gpe_register_bit(gpe_event_info); acpi_hw_clear_gpe()
200 * PARAMETERS: gpe_event_info - Info block for the GPE to queried
210 acpi_hw_get_gpe_status(struct acpi_gpe_event_info * gpe_event_info, acpi_hw_get_gpe_status() argument
227 if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) != acpi_hw_get_gpe_status()
234 gpe_register_info = gpe_event_info->register_info; acpi_hw_get_gpe_status()
238 register_bit = acpi_hw_get_gpe_register_bit(gpe_event_info); acpi_hw_get_gpe_status()
H A Devgpeutil.c308 struct acpi_gpe_event_info *gpe_event_info; acpi_ev_delete_gpe_handlers() local
323 gpe_event_info = &gpe_block->event_info[((acpi_size) i * acpi_ev_delete_gpe_handlers()
327 if ((ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_delete_gpe_handlers()
329 (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_delete_gpe_handlers()
334 ACPI_FREE(gpe_event_info->dispatch.handler); acpi_ev_delete_gpe_handlers()
335 gpe_event_info->dispatch.handler = NULL; acpi_ev_delete_gpe_handlers()
336 gpe_event_info->flags &= acpi_ev_delete_gpe_handlers()
338 } else if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) acpi_ev_delete_gpe_handlers()
343 notify = gpe_event_info->dispatch.notify_list; acpi_ev_delete_gpe_handlers()
349 gpe_event_info->dispatch.notify_list = NULL; acpi_ev_delete_gpe_handlers()
350 gpe_event_info->flags &= acpi_ev_delete_gpe_handlers()
H A Devgpeblk.c202 struct acpi_gpe_event_info *gpe_event_info = NULL; acpi_ev_create_gpe_info_blocks() local
227 gpe_event_info = ACPI_ALLOCATE_ZEROED((acpi_size) gpe_block->gpe_count * acpi_ev_create_gpe_info_blocks()
230 if (!gpe_event_info) { acpi_ev_create_gpe_info_blocks()
240 gpe_block->event_info = gpe_event_info; acpi_ev_create_gpe_info_blocks()
249 this_event = gpe_event_info; acpi_ev_create_gpe_info_blocks()
305 if (gpe_event_info) { acpi_ev_create_gpe_info_blocks()
306 ACPI_FREE(gpe_event_info); acpi_ev_create_gpe_info_blocks()
442 struct acpi_gpe_event_info *gpe_event_info; acpi_ev_initialize_gpe_block() local
471 gpe_event_info = &gpe_block->event_info[gpe_index]; acpi_ev_initialize_gpe_block()
477 if ((ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_initialize_gpe_block()
479 || (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_initialize_gpe_block()
481 || (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_initialize_gpe_block()
483 || (gpe_event_info->flags & ACPI_GPE_CAN_WAKE)) { acpi_ev_initialize_gpe_block()
487 status = acpi_ev_add_gpe_reference(gpe_event_info); acpi_ev_initialize_gpe_block()
H A Devxface.c756 struct acpi_gpe_event_info *gpe_event_info; acpi_ev_install_gpe_handler() local
786 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); acpi_ev_install_gpe_handler()
787 if (!gpe_event_info) { acpi_ev_install_gpe_handler()
794 if ((ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_install_gpe_handler()
796 (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_install_gpe_handler()
804 handler->method_node = gpe_event_info->dispatch.method_node; acpi_ev_install_gpe_handler()
805 handler->original_flags = (u8)(gpe_event_info->flags & acpi_ev_install_gpe_handler()
817 ACPI_GPE_DISPATCH_NOTIFY)) && gpe_event_info->runtime_count) { acpi_ev_install_gpe_handler()
819 (void)acpi_ev_remove_gpe_reference(gpe_event_info); acpi_ev_install_gpe_handler()
824 (u32)(gpe_event_info->flags & ACPI_GPE_XRUPT_TYPE_MASK)) { acpi_ev_install_gpe_handler()
832 gpe_event_info->dispatch.handler = handler; acpi_ev_install_gpe_handler()
836 gpe_event_info->flags &= acpi_ev_install_gpe_handler()
838 gpe_event_info->flags |= acpi_ev_install_gpe_handler()
943 struct acpi_gpe_event_info *gpe_event_info; ACPI_EXPORT_SYMBOL() local
965 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); ACPI_EXPORT_SYMBOL()
966 if (!gpe_event_info) { ACPI_EXPORT_SYMBOL()
973 if ((ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) != ACPI_EXPORT_SYMBOL()
975 (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) != ACPI_EXPORT_SYMBOL()
983 if (gpe_event_info->dispatch.handler->address != address) { ACPI_EXPORT_SYMBOL()
990 handler = gpe_event_info->dispatch.handler; ACPI_EXPORT_SYMBOL()
991 gpe_event_info->dispatch.handler = NULL; ACPI_EXPORT_SYMBOL()
995 gpe_event_info->dispatch.method_node = handler->method_node; ACPI_EXPORT_SYMBOL()
996 gpe_event_info->flags &= ACPI_EXPORT_SYMBOL()
998 gpe_event_info->flags |= handler->original_flags; ACPI_EXPORT_SYMBOL()
1009 (void)acpi_ev_add_gpe_reference(gpe_event_info); ACPI_EXPORT_SYMBOL()
H A Dacevents.h83 acpi_ev_update_gpe_enable_mask(struct acpi_gpe_event_info *gpe_event_info);
85 acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info);
88 acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info);
91 acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info);
100 acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info *gpe_event_info);
125 struct acpi_gpe_event_info *gpe_event_info,
H A Devgpeinit.c325 struct acpi_gpe_event_info *gpe_event_info; acpi_ev_match_gpe_method() local
393 gpe_event_info = acpi_ev_match_gpe_method()
395 if (!gpe_event_info) { acpi_ev_match_gpe_method()
404 if ((ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_match_gpe_method()
406 (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_match_gpe_method()
414 if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) == acpi_ev_match_gpe_method()
420 if (type != (gpe_event_info->flags & ACPI_GPE_XRUPT_TYPE_MASK)) { acpi_ev_match_gpe_method()
430 (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_DISABLE); acpi_ev_match_gpe_method()
433 * Add the GPE information from above to the gpe_event_info block for acpi_ev_match_gpe_method()
436 gpe_event_info->flags &= ~(ACPI_GPE_DISPATCH_MASK); acpi_ev_match_gpe_method()
437 gpe_event_info->flags |= (u8)(type | ACPI_GPE_DISPATCH_METHOD); acpi_ev_match_gpe_method()
438 gpe_event_info->dispatch.method_node = method_node; acpi_ev_match_gpe_method()
H A Dachware.h113 u32 acpi_hw_get_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info);
116 acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action);
122 acpi_status acpi_hw_clear_gpe(struct acpi_gpe_event_info *gpe_event_info);
129 acpi_hw_get_gpe_status(struct acpi_gpe_event_info *gpe_event_info,
H A Ddbdisply.c736 struct acpi_gpe_event_info *gpe_event_info; acpi_db_display_gpes() local
832 gpe_event_info = acpi_db_display_gpes()
836 (gpe_event_info->flags) == acpi_db_display_gpes()
847 gpe_index, gpe_event_info, acpi_db_display_gpes()
848 gpe_event_info->runtime_count, acpi_db_display_gpes()
849 gpe_event_info->flags); acpi_db_display_gpes()
853 if (gpe_event_info-> acpi_db_display_gpes()
860 if (gpe_event_info-> acpi_db_display_gpes()
868 (gpe_event_info->flags)) { acpi_db_display_gpes()
888 gpe_event_info->dispatch. acpi_db_display_gpes()
909 (gpe_event_info-> acpi_db_display_gpes()
H A Ddbcmds.c1068 struct acpi_gpe_event_info *gpe_event_info; acpi_db_generate_gpe() local
1083 gpe_event_info = acpi_db_generate_gpe()
1086 if (!gpe_event_info) { acpi_db_generate_gpe()
1091 (void)acpi_ev_gpe_dispatch(NULL, gpe_event_info, gpe_number); acpi_db_generate_gpe()

Completed in 192 milliseconds