Lines Matching refs:first_ec
175 struct acpi_ec *first_ec;
176 EXPORT_SYMBOL(first_ec);
891 if (!first_ec)
894 err = acpi_ec_read(first_ec, addr, &temp_data);
906 if (!first_ec)
909 return acpi_ec_write(first_ec, addr, val);
921 if (!first_ec)
924 return acpi_ec_transaction(first_ec, &t);
931 if (!first_ec)
933 return first_ec->handle;
1013 struct acpi_ec *ec = first_ec;
1030 if (first_ec)
1031 acpi_ec_start(first_ec, true);
1365 if (first_ec == ec)
1366 first_ec = NULL;
1485 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle;
1556 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle;
1602 if (!first_ec)
1603 first_ec = ec;
1607 if (ec == first_ec)
1608 first_ec = NULL;
2071 if (first_ec && !ec_no_wakeup)
2072 acpi_mark_gpe_for_wake(NULL, first_ec->gpe);
2078 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup)
2079 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action);
2091 if (!first_ec)
2098 if (acpi_any_gpe_status_set(first_ec->gpe))
2115 spin_lock_irq(&first_ec->lock);
2117 if (acpi_ec_gpe_status_set(first_ec)) {
2120 clear_gpe_and_advance_transaction(first_ec, false);
2121 work_in_progress = acpi_ec_work_in_progress(first_ec);
2124 spin_unlock_irq(&first_ec->lock);
2137 spin_lock_irq(&first_ec->lock);
2139 work_in_progress = acpi_ec_work_in_progress(first_ec);
2141 spin_unlock_irq(&first_ec->lock);