Lines Matching refs:first_ec
178 struct acpi_ec *first_ec; variable
179 EXPORT_SYMBOL(first_ec);
918 if (!first_ec) in ec_read()
921 err = acpi_ec_read(first_ec, addr, &temp_data); in ec_read()
933 if (!first_ec) in ec_write()
936 return acpi_ec_write(first_ec, addr, val); in ec_write()
948 if (!first_ec) in ec_transaction()
951 return acpi_ec_transaction(first_ec, &t); in ec_transaction()
958 if (!first_ec) in ec_get_handle()
960 return first_ec->handle; in ec_get_handle()
1040 struct acpi_ec *ec = first_ec; in acpi_ec_block_transactions()
1057 if (first_ec) in acpi_ec_unblock_transactions()
1058 acpi_ec_start(first_ec, true); in acpi_ec_unblock_transactions()
1416 if (first_ec == ec) in acpi_ec_free()
1417 first_ec = NULL; in acpi_ec_free()
1541 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle; in ec_install_handlers()
1608 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle; in ec_remove_handlers()
1654 if (!first_ec) in acpi_ec_setup()
1655 first_ec = ec; in acpi_ec_setup()
1659 if (ec == first_ec) in acpi_ec_setup()
1660 first_ec = NULL; in acpi_ec_setup()
1769 if (first_ec && first_ec->handle != adev->handle) in acpi_ec_register_opregions()
2142 if (first_ec && !ec_no_wakeup) in acpi_ec_mark_gpe_for_wake()
2143 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
2149 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup) in acpi_ec_set_gpe_wake_mask()
2150 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
2162 if (!first_ec) in acpi_ec_dispatch_gpe()
2169 if (acpi_any_gpe_status_set(first_ec->gpe)) in acpi_ec_dispatch_gpe()
2186 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2188 if (acpi_ec_gpe_status_set(first_ec)) { in acpi_ec_dispatch_gpe()
2191 clear_gpe_and_advance_transaction(first_ec, false); in acpi_ec_dispatch_gpe()
2192 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2195 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2208 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2210 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2212 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()