Lines Matching refs:boot_ec
175 struct acpi_ec *boot_ec, *first_ec; variable
1347 if (boot_ec && in acpi_ec_add()
1348 (boot_ec->handle == device->handle || in acpi_ec_add()
1349 boot_ec->handle == ACPI_ROOT_OBJECT)) { in acpi_ec_add()
1350 ec = boot_ec; in acpi_ec_add()
1351 boot_ec = NULL; in acpi_ec_add()
1437 if (!boot_ec || test_bit(EC_FLAGS_HANDLERS_INSTALLED, &boot_ec->flags)) in acpi_boot_ec_enable()
1439 if (!ec_install_handlers(boot_ec)) { in acpi_boot_ec_enable()
1440 first_ec = boot_ec; in acpi_boot_ec_enable()
1541 boot_ec = make_acpi_ec(); in acpi_ec_ecdt_probe()
1542 if (!boot_ec) in acpi_ec_ecdt_probe()
1552 boot_ec->command_addr = ecdt_ptr->control.address; in acpi_ec_ecdt_probe()
1553 boot_ec->data_addr = ecdt_ptr->data.address; in acpi_ec_ecdt_probe()
1554 boot_ec->gpe = ecdt_ptr->gpe; in acpi_ec_ecdt_probe()
1555 boot_ec->handle = ACPI_ROOT_OBJECT; in acpi_ec_ecdt_probe()
1557 &boot_ec->handle); in acpi_ec_ecdt_probe()
1561 saved_ec = kmemdup(boot_ec, sizeof(struct acpi_ec), GFP_KERNEL); in acpi_ec_ecdt_probe()
1576 boot_ec, NULL); in acpi_ec_ecdt_probe()
1578 if (ACPI_FAILURE(status) || !boot_ec->handle) in acpi_ec_ecdt_probe()
1582 if (saved_ec->command_addr != boot_ec->command_addr || in acpi_ec_ecdt_probe()
1583 saved_ec->data_addr != boot_ec->data_addr || in acpi_ec_ecdt_probe()
1584 saved_ec->gpe != boot_ec->gpe || in acpi_ec_ecdt_probe()
1585 saved_ec->handle != boot_ec->handle) in acpi_ec_ecdt_probe()
1598 !acpi_has_method(boot_ec->handle, "_INI")) in acpi_ec_ecdt_probe()
1602 if (!ec_install_handlers(boot_ec)) { in acpi_ec_ecdt_probe()
1603 first_ec = boot_ec; in acpi_ec_ecdt_probe()
1607 kfree(boot_ec); in acpi_ec_ecdt_probe()
1609 boot_ec = NULL; in acpi_ec_ecdt_probe()