Lines Matching refs:ec_ecdt
88 static struct acpi_ec *ec_ecdt; variable
593 if (ec_ecdt && ec_ecdt->uid == uid) { in acpi_ec_add()
597 acpi_remove_gpe_handler(NULL, ec_ecdt->gpe_bit, &acpi_ec_gpe_handler); in acpi_ec_add()
599 kfree(ec_ecdt); in acpi_ec_add()
785 ec_ecdt = kmalloc(sizeof(struct acpi_ec), GFP_KERNEL); in acpi_ec_ecdt_probe()
786 if (!ec_ecdt) in acpi_ec_ecdt_probe()
788 memset(ec_ecdt, 0, sizeof(struct acpi_ec)); in acpi_ec_ecdt_probe()
790 ec_ecdt->command_addr = ecdt_ptr->ec_control; in acpi_ec_ecdt_probe()
791 ec_ecdt->status_addr = ecdt_ptr->ec_control; in acpi_ec_ecdt_probe()
792 ec_ecdt->data_addr = ecdt_ptr->ec_data; in acpi_ec_ecdt_probe()
793 ec_ecdt->gpe_bit = ecdt_ptr->gpe_bit; in acpi_ec_ecdt_probe()
794 ec_ecdt->lock = SPIN_LOCK_UNLOCKED; in acpi_ec_ecdt_probe()
796 ec_ecdt->global_lock = TRUE; in acpi_ec_ecdt_probe()
797 ec_ecdt->uid = ecdt_ptr->uid; in acpi_ec_ecdt_probe()
799 status = acpi_get_handle(NULL, ecdt_ptr->ec_id, &ec_ecdt->handle); in acpi_ec_ecdt_probe()
807 status = acpi_install_gpe_handler(NULL, ec_ecdt->gpe_bit, in acpi_ec_ecdt_probe()
809 ec_ecdt); in acpi_ec_ecdt_probe()
816 &acpi_ec_space_setup, ec_ecdt); in acpi_ec_ecdt_probe()
818 acpi_remove_gpe_handler(NULL, ec_ecdt->gpe_bit, in acpi_ec_ecdt_probe()
827 kfree(ec_ecdt); in acpi_ec_ecdt_probe()
828 ec_ecdt = NULL; in acpi_ec_ecdt_probe()