Lines Matching refs:boot_ec
110 struct acpi_ec *boot_ec, *first_ec;
789 if (boot_ec &&
790 (boot_ec->handle == device->handle ||
791 boot_ec->handle == ACPI_ROOT_OBJECT)) {
792 ec = boot_ec;
793 boot_ec = NULL;
880 if (!boot_ec || test_bit(EC_FLAGS_HANDLERS_INSTALLED, &boot_ec->flags))
882 if (!ec_install_handlers(boot_ec)) {
883 first_ec = boot_ec;
947 boot_ec = make_acpi_ec();
948 if (!boot_ec)
958 boot_ec->command_addr = ecdt_ptr->control.address;
959 boot_ec->data_addr = ecdt_ptr->data.address;
960 boot_ec->gpe = ecdt_ptr->gpe;
961 boot_ec->handle = ACPI_ROOT_OBJECT;
962 acpi_get_handle(ACPI_ROOT_OBJECT, ecdt_ptr->id, &boot_ec->handle);
966 saved_ec = kmemdup(boot_ec, sizeof(struct acpi_ec), GFP_KERNEL);
977 boot_ec, NULL);
979 if (ACPI_FAILURE(status) || !boot_ec->handle)
983 if (saved_ec->command_addr != boot_ec->command_addr ||
984 saved_ec->data_addr != boot_ec->data_addr ||
985 saved_ec->gpe != boot_ec->gpe ||
986 saved_ec->handle != boot_ec->handle)
996 ACPI_FAILURE(acpi_get_handle(boot_ec->handle, "_INI",
1001 if (!ec_install_handlers(boot_ec)) {
1002 first_ec = boot_ec;
1006 kfree(boot_ec);
1007 boot_ec = NULL;