Lines Matching full:gpe
45 /* GPE handling */
46 u32 gpe; member
260 static u32 sch_gpio_gpe_handler(acpi_handle gpe_device, u32 gpe, void *context) in sch_gpio_gpe_handler() argument
284 /* Acknowledge GPE to ACPICA */ in sch_gpio_gpe_handler()
294 acpi_disable_gpe(NULL, sch->gpe); in sch_gpio_remove_gpe_handler()
295 acpi_remove_gpe_handler(NULL, sch->gpe, sch->gpe_handler); in sch_gpio_remove_gpe_handler()
303 status = acpi_install_gpe_handler(NULL, sch->gpe, ACPI_GPE_LEVEL_TRIGGERED, in sch_gpio_install_gpe_handler()
306 dev_err(dev, "Failed to install GPE handler for %u: %s\n", in sch_gpio_install_gpe_handler()
307 sch->gpe, acpi_format_exception(status)); in sch_gpio_install_gpe_handler()
311 status = acpi_enable_gpe(NULL, sch->gpe); in sch_gpio_install_gpe_handler()
313 dev_err(dev, "Failed to enable GPE handler for %u: %s\n", in sch_gpio_install_gpe_handler()
314 sch->gpe, acpi_format_exception(status)); in sch_gpio_install_gpe_handler()
315 acpi_remove_gpe_handler(NULL, sch->gpe, sch->gpe_handler); in sch_gpio_install_gpe_handler()
396 /* GPE setup is optional */ in sch_gpio_probe()
397 sch->gpe = GPE0E_GPIO; in sch_gpio_probe()
402 dev_warn(dev, "Can't setup GPE, no IRQ support\n"); in sch_gpio_probe()