Lines Matching refs:boot_ec

120 struct acpi_ec *boot_ec, *first_ec;  variable
805 if (boot_ec && in acpi_ec_add()
806 (boot_ec->handle == device->handle || in acpi_ec_add()
807 boot_ec->handle == ACPI_ROOT_OBJECT)) { in acpi_ec_add()
808 ec = boot_ec; in acpi_ec_add()
809 boot_ec = NULL; in acpi_ec_add()
894 if (!boot_ec || test_bit(EC_FLAGS_HANDLERS_INSTALLED, &boot_ec->flags)) in acpi_boot_ec_enable()
896 if (!ec_install_handlers(boot_ec)) { in acpi_boot_ec_enable()
897 first_ec = boot_ec; in acpi_boot_ec_enable()
994 boot_ec = make_acpi_ec(); in acpi_ec_ecdt_probe()
995 if (!boot_ec) in acpi_ec_ecdt_probe()
1005 boot_ec->command_addr = ecdt_ptr->control.address; in acpi_ec_ecdt_probe()
1006 boot_ec->data_addr = ecdt_ptr->data.address; in acpi_ec_ecdt_probe()
1007 boot_ec->gpe = ecdt_ptr->gpe; in acpi_ec_ecdt_probe()
1008 boot_ec->handle = ACPI_ROOT_OBJECT; in acpi_ec_ecdt_probe()
1009 acpi_get_handle(ACPI_ROOT_OBJECT, ecdt_ptr->id, &boot_ec->handle); in acpi_ec_ecdt_probe()
1013 saved_ec = kmemdup(boot_ec, sizeof(struct acpi_ec), GFP_KERNEL); in acpi_ec_ecdt_probe()
1026 boot_ec, NULL); in acpi_ec_ecdt_probe()
1028 if (ACPI_FAILURE(status) || !boot_ec->handle) in acpi_ec_ecdt_probe()
1032 if (saved_ec->command_addr != boot_ec->command_addr || in acpi_ec_ecdt_probe()
1033 saved_ec->data_addr != boot_ec->data_addr || in acpi_ec_ecdt_probe()
1034 saved_ec->gpe != boot_ec->gpe || in acpi_ec_ecdt_probe()
1035 saved_ec->handle != boot_ec->handle) in acpi_ec_ecdt_probe()
1049 ACPI_FAILURE(acpi_get_handle(boot_ec->handle, "_INI", in acpi_ec_ecdt_probe()
1054 if (!ec_install_handlers(boot_ec)) { in acpi_ec_ecdt_probe()
1055 first_ec = boot_ec; in acpi_ec_ecdt_probe()
1059 kfree(boot_ec); in acpi_ec_ecdt_probe()
1060 boot_ec = NULL; in acpi_ec_ecdt_probe()