Lines Matching full:gpe
45 /* GPE handling */
46 u32 gpe; member
258 static u32 sch_gpio_gpe_handler(acpi_handle gpe_device, u32 gpe, void *context) in sch_gpio_gpe_handler() argument
282 /* Acknowledge GPE to ACPICA */ in sch_gpio_gpe_handler()
292 acpi_disable_gpe(NULL, sch->gpe); in sch_gpio_remove_gpe_handler()
293 acpi_remove_gpe_handler(NULL, sch->gpe, sch->gpe_handler); in sch_gpio_remove_gpe_handler()
301 status = acpi_install_gpe_handler(NULL, sch->gpe, ACPI_GPE_LEVEL_TRIGGERED, in sch_gpio_install_gpe_handler()
304 dev_err(dev, "Failed to install GPE handler for %u: %s\n", in sch_gpio_install_gpe_handler()
305 sch->gpe, acpi_format_exception(status)); in sch_gpio_install_gpe_handler()
309 status = acpi_enable_gpe(NULL, sch->gpe); in sch_gpio_install_gpe_handler()
311 dev_err(dev, "Failed to enable GPE handler for %u: %s\n", in sch_gpio_install_gpe_handler()
312 sch->gpe, acpi_format_exception(status)); in sch_gpio_install_gpe_handler()
313 acpi_remove_gpe_handler(NULL, sch->gpe, sch->gpe_handler); in sch_gpio_install_gpe_handler()
391 /* GPE setup is optional */ in sch_gpio_probe()
392 sch->gpe = GPE0E_GPIO; in sch_gpio_probe()
397 dev_warn(&pdev->dev, "Can't setup GPE, no IRQ support\n"); in sch_gpio_probe()