Lines Matching refs:first_ec
177 struct acpi_ec *first_ec; variable
178 EXPORT_SYMBOL(first_ec);
562 if (first_ec) in acpi_ec_flush_work()
563 __acpi_ec_flush_event(first_ec); in acpi_ec_flush_work()
905 if (!first_ec) in ec_read()
908 err = acpi_ec_read(first_ec, addr, &temp_data); in ec_read()
922 if (!first_ec) in ec_write()
925 err = acpi_ec_write(first_ec, addr, val); in ec_write()
939 if (!first_ec) in ec_transaction()
942 return acpi_ec_transaction(first_ec, &t); in ec_transaction()
949 if (!first_ec) in ec_get_handle()
951 return first_ec->handle; in ec_get_handle()
1031 struct acpi_ec *ec = first_ec; in acpi_ec_block_transactions()
1048 if (first_ec) in acpi_ec_unblock_transactions()
1049 acpi_ec_start(first_ec, true); in acpi_ec_unblock_transactions()
1341 if (first_ec == ec) in acpi_ec_free()
1342 first_ec = NULL; in acpi_ec_free()
1528 if (!first_ec) { in acpi_ec_setup()
1529 first_ec = ec; in acpi_ec_setup()
1530 acpi_handle_info(first_ec->handle, "Used as first EC\n"); in acpi_ec_setup()
1963 if (first_ec && !ec_no_wakeup) in acpi_ec_mark_gpe_for_wake()
1964 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
1970 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup) in acpi_ec_set_gpe_wake_mask()
1971 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
1978 if (!first_ec) in acpi_ec_dispatch_gpe()
1981 ret = acpi_dispatch_gpe(NULL, first_ec->gpe); in acpi_ec_dispatch_gpe()