• Home
  • Raw
  • Download

Lines Matching full:gpe

129  * this threshold, will think there is a GPE storm happened and
130 * will disable the GPE for normal transaction.
134 MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
185 static int EC_FLAGS_IGNORE_DSDT_GPE; /* Needs ECDT GPE as correction setting */
186 static int EC_FLAGS_TRUST_DSDT_GPE; /* Needs DSDT GPE as correction setting */
336 * GPE Registers
343 (void)acpi_get_gpe_status(NULL, ec->gpe, &gpe_status); in acpi_ec_is_gpe_raised()
350 acpi_enable_gpe(NULL, ec->gpe); in acpi_ec_enable_gpe()
353 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_enable_gpe()
357 * On some platforms, EN=1 writes cannot trigger GPE. So in acpi_ec_enable_gpe()
358 * software need to manually trigger a pseudo GPE event on in acpi_ec_enable_gpe()
369 acpi_disable_gpe(NULL, ec->gpe); in acpi_ec_disable_gpe()
372 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); in acpi_ec_disable_gpe()
379 * GPE STS is a W1C register, which means: in acpi_ec_clear_gpe()
384 * So software can clear GPE in any contexts. in acpi_ec_clear_gpe()
386 * EC commands will be sent without GPE raised. in acpi_ec_clear_gpe()
390 acpi_clear_gpe(NULL, ec->gpe); in acpi_ec_clear_gpe()
401 ec->gpe >= 0 && ec->reference_count == 1) in acpi_ec_submit_request()
411 ec->gpe >= 0 && ec->reference_count == 0) in acpi_ec_complete_request()
421 if (ec->gpe >= 0) in acpi_ec_mask_events()
435 if (ec->gpe >= 0) in acpi_ec_unmask_events()
647 * trigger a GPE interrupt. in advance_transaction()
649 if (ec->gpe >= 0) in advance_transaction()
740 * GPE handler after the transaction enters in ec_guard()
790 /* Enable GPE for command processing (IBF=0/OBF=1) */ in acpi_ec_transaction_unlocked()
809 /* Disable GPE for command processing (IBF=0/OBF=1) */ in acpi_ec_transaction_unlocked()
950 /* Enable GPE for event processing (SCI_EVT=1) */ in acpi_ec_start()
982 /* Disable GPE for event processing (SCI_EVT=1) */ in acpi_ec_stop()
1352 ec->gpe = -1; in acpi_ec_alloc()
1393 * Always inherit the GPE number setting from the ECDT in ec_parse_device()
1396 ec->gpe = boot_ec->gpe; in ec_parse_device()
1398 /* Get GPE bit assignment (EC events). */ in ec_parse_device()
1402 ec->gpe = tmp; in ec_parse_device()
1406 * platforms which use GpioInt instead of GPE. in ec_parse_device()
1421 status = acpi_install_gpe_raw_handler(NULL, ec->gpe, in install_gpe_event_handler()
1446 * namespace and register them, and install an event (either GPE or GPIO IRQ)
1477 if (ec->gpe < 0) { in ec_install_handlers()
1500 if (ec->gpe >= 0) in ec_install_handlers()
1534 * Flushes the EC requests and thus disables the GPE before in ec_remove_handlers()
1535 * removing the GPE handler. This is required by the current ACPICA in ec_remove_handlers()
1536 * GPE core. ACPICA GPE core will automatically disable a GPE when in ec_remove_handlers()
1538 * must disable the GPEs prior to removing the GPE handlers. in ec_remove_handlers()
1543 if (ec->gpe >= 0 && in ec_remove_handlers()
1544 ACPI_FAILURE(acpi_remove_gpe_handler(NULL, ec->gpe, in ec_remove_handlers()
1546 pr_err("failed to remove gpe handler\n"); in ec_remove_handlers()
1575 if (ec->gpe >= 0) in acpi_ec_setup()
1576 pr_info("GPE=0x%x\n", ec->gpe); in acpi_ec_setup()
1614 * ECDT ID. But trust ECDT GPE rather than _GPE in acpi_ec_add()
1616 * boot_ec->gpe to ec->gpe. in acpi_ec_add()
1742 * At this point, the GPE is not fully initialized, so do not to in acpi_ec_dsdt_probe()
1835 * Some ECDTs contain wrong GPE setting, but they share the same port addresses
1841 pr_debug("Detected system needing DSDT GPE setting.\n"); in ec_honor_dsdt_gpe()
1847 * Some DSDTs contain wrong GPE setting.
1853 pr_debug("Detected system needing ignore DSDT GPE setting.\n"); in ec_honor_ecdt_gpe()
1945 * Ignore the GPE value on Reduced Hardware platforms. in acpi_ec_ecdt_probe()
1949 ec->gpe = ecdt_ptr->gpe; in acpi_ec_ecdt_probe()
1988 * The SCI handler doesn't run at this point, so the GPE can be in acpi_ec_suspend_noirq()
1992 ec->gpe >= 0 && ec->reference_count >= 1) in acpi_ec_suspend_noirq()
1993 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); in acpi_ec_suspend_noirq()
2007 ec->gpe >= 0 && ec->reference_count >= 1) in acpi_ec_resume_noirq()
2008 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_resume_noirq()
2025 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
2032 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
2043 * Report wakeup if the status bit is set for any enabled GPE other in acpi_ec_dispatch_gpe()
2046 if (acpi_any_gpe_status_set(first_ec->gpe)) in acpi_ec_dispatch_gpe()
2050 * Dispatch the EC GPE in-band, but do not report wakeup in any case in acpi_ec_dispatch_gpe()
2053 ret = acpi_dispatch_gpe(NULL, first_ec->gpe); in acpi_ec_dispatch_gpe()
2055 pm_pr_dbg("ACPI EC GPE dispatched\n"); in acpi_ec_dispatch_gpe()
2181 * wakeup from EC GPE. in acpi_ec_init()