Lines Matching refs:first_ec

175 struct acpi_ec *first_ec;  variable
176 EXPORT_SYMBOL(first_ec);
915 if (!first_ec) in ec_read()
918 err = acpi_ec_read(first_ec, addr, &temp_data); in ec_read()
930 if (!first_ec) in ec_write()
933 return acpi_ec_write(first_ec, addr, val); in ec_write()
945 if (!first_ec) in ec_transaction()
948 return acpi_ec_transaction(first_ec, &t); in ec_transaction()
955 if (!first_ec) in ec_get_handle()
957 return first_ec->handle; in ec_get_handle()
1037 struct acpi_ec *ec = first_ec; in acpi_ec_block_transactions()
1054 if (first_ec) in acpi_ec_unblock_transactions()
1055 acpi_ec_start(first_ec, true); in acpi_ec_unblock_transactions()
1413 if (first_ec == ec) in acpi_ec_free()
1414 first_ec = NULL; in acpi_ec_free()
1538 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle; in ec_install_handlers()
1605 acpi_handle scope_handle = ec == first_ec ? ACPI_ROOT_OBJECT : ec->handle; in ec_remove_handlers()
1651 if (!first_ec) in acpi_ec_setup()
1652 first_ec = ec; in acpi_ec_setup()
1658 if (ec == first_ec) in acpi_ec_setup()
1659 first_ec = NULL; in acpi_ec_setup()
1765 if (first_ec && first_ec->handle != adev->handle) in acpi_ec_register_opregions()
2138 if (first_ec && !ec_no_wakeup) in acpi_ec_mark_gpe_for_wake()
2139 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
2145 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup) in acpi_ec_set_gpe_wake_mask()
2146 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
2158 if (!first_ec) in acpi_ec_dispatch_gpe()
2165 if (acpi_any_gpe_status_set(first_ec->gpe)) in acpi_ec_dispatch_gpe()
2182 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2184 if (acpi_ec_gpe_status_set(first_ec)) { in acpi_ec_dispatch_gpe()
2187 clear_gpe_and_advance_transaction(first_ec, false); in acpi_ec_dispatch_gpe()
2188 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2191 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2204 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2206 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2208 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()