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()
1656 if (ec == first_ec) in acpi_ec_setup()
1657 first_ec = NULL; in acpi_ec_setup()
1770 if (first_ec && first_ec->handle != adev->handle) in acpi_ec_register_opregions()
2126 if (first_ec && !ec_no_wakeup) in acpi_ec_mark_gpe_for_wake()
2127 acpi_mark_gpe_for_wake(NULL, first_ec->gpe); in acpi_ec_mark_gpe_for_wake()
2133 if (pm_suspend_no_platform() && first_ec && !ec_no_wakeup) in acpi_ec_set_gpe_wake_mask()
2134 acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action); in acpi_ec_set_gpe_wake_mask()
2146 if (!first_ec) in acpi_ec_dispatch_gpe()
2153 if (acpi_any_gpe_status_set(first_ec->gpe)) in acpi_ec_dispatch_gpe()
2170 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2172 if (acpi_ec_gpe_status_set(first_ec)) { in acpi_ec_dispatch_gpe()
2175 clear_gpe_and_advance_transaction(first_ec, false); in acpi_ec_dispatch_gpe()
2176 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2179 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2192 spin_lock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()
2194 work_in_progress = acpi_ec_work_in_progress(first_ec); in acpi_ec_dispatch_gpe()
2196 spin_unlock_irq(&first_ec->lock); in acpi_ec_dispatch_gpe()