• Home
  • Raw
  • Download

Lines Matching full:gpe

110 	EC_FLAGS_GPE_HANDLER_INSTALLED,	/* GPE handler installed */
115 EC_FLAGS_GPE_MASKED, /* GPE masked */
142 * this threshold, will think there is a GPE storm happened and
143 * will disable the GPE for normal transaction.
147 MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
196 static int EC_FLAGS_IGNORE_DSDT_GPE; /* Needs ECDT GPE as correction setting */
346 * GPE Registers
353 (void)acpi_get_gpe_status(NULL, ec->gpe, &gpe_status); in acpi_ec_is_gpe_raised()
360 acpi_enable_gpe(NULL, ec->gpe); in acpi_ec_enable_gpe()
363 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_enable_gpe()
367 * On some platforms, EN=1 writes cannot trigger GPE. So in acpi_ec_enable_gpe()
368 * software need to manually trigger a pseudo GPE event on in acpi_ec_enable_gpe()
379 acpi_disable_gpe(NULL, ec->gpe); in acpi_ec_disable_gpe()
382 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); in acpi_ec_disable_gpe()
389 * GPE STS is a W1C register, which means: in acpi_ec_clear_gpe()
394 * So software can clear GPE in any contexts. in acpi_ec_clear_gpe()
396 * EC commands will be sent without GPE raised. in acpi_ec_clear_gpe()
400 acpi_clear_gpe(NULL, ec->gpe); in acpi_ec_clear_gpe()
659 * trigger a GPE interrupt. in advance_transaction()
762 * GPE handler after the transaction enters in ec_guard()
812 /* Enable GPE for command processing (IBF=0/OBF=1) */ in acpi_ec_transaction_unlocked()
831 /* Disable GPE for command processing (IBF=0/OBF=1) */ in acpi_ec_transaction_unlocked()
972 /* Enable GPE for event processing (SCI_EVT=1) */ in acpi_ec_start()
1004 /* Disable GPE for event processing (SCI_EVT=1) */ in acpi_ec_stop()
1065 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
1071 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
1077 acpi_dispatch_gpe(NULL, first_ec->gpe); in acpi_ec_dispatch_gpe()
1421 * Always inherit the GPE number setting from the ECDT in ec_parse_device()
1424 ec->gpe = boot_ec->gpe; in ec_parse_device()
1426 /* Get GPE bit assignment (EC events). */ in ec_parse_device()
1431 ec->gpe = tmp; in ec_parse_device()
1487 status = acpi_install_gpe_raw_handler(NULL, ec->gpe, in ec_install_handlers()
1519 * Flushes the EC requests and thus disables the GPE before in ec_remove_handlers()
1520 * removing the GPE handler. This is required by the current ACPICA in ec_remove_handlers()
1521 * GPE core. ACPICA GPE core will automatically disable a GPE when in ec_remove_handlers()
1523 * must disable the GPEs prior to removing the GPE handlers. in ec_remove_handlers()
1528 if (ACPI_FAILURE(acpi_remove_gpe_handler(NULL, ec->gpe, in ec_remove_handlers()
1530 pr_err("failed to remove gpe handler\n"); in ec_remove_handlers()
1554 "GPE=0x%x, EC_CMD/EC_SC=0x%lx, EC_DATA=0x%lx\n", in acpi_ec_setup()
1555 ec->gpe, ec->command_addr, ec->data_addr); in acpi_ec_setup()
1660 * ECDT ID. But trust ECDT GPE rather than _GPE in acpi_ec_add()
1662 * boot_ec->gpe to ec->gpe. in acpi_ec_add()
1782 * At this point, the GPE is not fully initialized, so do not to in acpi_ec_dsdt_probe()
1808 * At this point, the namespace and the GPE is initialized, so in acpi_ec_ecdt_start()
1878 * Some DSDTs contain wrong GPE setting.
1884 pr_debug("Detected system needing ignore DSDT GPE setting.\n"); in ec_honor_ecdt_gpe()
1957 ec->gpe = ecdt_ptr->gpe; in acpi_ec_ecdt_probe()
1986 * The SCI handler doesn't run at this point, so the GPE can be in acpi_ec_suspend_noirq()
1991 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE); in acpi_ec_suspend_noirq()
2008 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE); in acpi_ec_resume_noirq()
2134 * wakeup from EC GPE. in acpi_ec_init()