Lines Matching refs:first_ec
189 struct acpi_ec *boot_ec, *first_ec; variable
190 EXPORT_SYMBOL(first_ec);
547 if (first_ec) in acpi_ec_flush_work()
548 __acpi_ec_flush_event(first_ec); in acpi_ec_flush_work()
890 if (!first_ec) in ec_read()
893 err = acpi_ec_read(first_ec, addr, &temp_data); in ec_read()
907 if (!first_ec) in ec_write()
910 err = acpi_ec_write(first_ec, addr, val); in ec_write()
924 if (!first_ec) in ec_transaction()
927 return acpi_ec_transaction(first_ec, &t); in ec_transaction()
934 if (!first_ec) in ec_get_handle()
936 return first_ec->handle; in ec_get_handle()
1016 struct acpi_ec *ec = first_ec; in acpi_ec_block_transactions()
1033 if (first_ec) in acpi_ec_unblock_transactions()
1034 acpi_ec_start(first_ec, true); in acpi_ec_unblock_transactions()
1039 if (first_ec) in acpi_ec_dispatch_gpe()
1040 acpi_dispatch_gpe(NULL, first_ec->gpe); in acpi_ec_dispatch_gpe()
1332 if (first_ec == ec) in acpi_ec_free()
1333 first_ec = NULL; in acpi_ec_free()
1519 if (!first_ec) { in acpi_ec_setup()
1520 first_ec = ec; in acpi_ec_setup()
1521 acpi_handle_info(first_ec->handle, "Used as first EC\n"); in acpi_ec_setup()