Lines Matching refs:first_ec
177 struct acpi_ec *first_ec;
178 EXPORT_SYMBOL(first_ec);
894 if (!first_ec)
897 err = acpi_ec_read(first_ec, addr, &temp_data);
911 if (!first_ec)
914 err = acpi_ec_write(first_ec, addr, val);
928 if (!first_ec)
931 return acpi_ec_transaction(first_ec, &t);
938 if (!first_ec)
940 return first_ec->handle;
1020 struct acpi_ec *ec = first_ec;
1037 if (first_ec)
1038 acpi_ec_start(first_ec, true);
1348 if (first_ec == ec)
1349 first_ec = NULL;
1577 if (!first_ec)
1578 first_ec = ec;
1985 if (first_ec && !ec_no_wakeup)
1986 acpi_mark_gpe_for_wake(NULL, first_ec->gpe);
1992 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup)
1993 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action);
2001 if (!first_ec)
2008 if (acpi_any_gpe_status_set(first_ec->gpe))
2015 ret = acpi_dispatch_gpe(NULL, first_ec->gpe);
2025 spin_lock_irq(&first_ec->lock);
2027 work_in_progress = first_ec->events_in_progress +
2028 first_ec->queries_in_progress > 0;
2030 spin_unlock_irq(&first_ec->lock);