Lines Matching defs:device
448 * @ec: the EC device
935 /* Get the handle to the EC device */
1451 * @device: ACPI device object corresponding to @ec.
1454 * already. If @device is not NULL, also look for EC query methods in the
1464 static int ec_install_handlers(struct acpi_ec *ec, struct acpi_device *device)
1483 if (!device)
1488 int irq = acpi_dev_gpio_irq_get(device, 0);
1568 static int acpi_ec_setup(struct acpi_ec *ec, struct acpi_device *device)
1572 ret = ec_install_handlers(ec, device);
1593 static int acpi_ec_add(struct acpi_device *device)
1598 strcpy(acpi_device_name(device), ACPI_EC_DEVICE_NAME);
1599 strcpy(acpi_device_class(device), ACPI_EC_CLASS);
1601 if (boot_ec && (boot_ec->handle == device->handle ||
1602 !strcmp(acpi_device_hid(device), ACPI_ECDT_HID))) {
1603 /* Fast path: this device corresponds to the boot EC. */
1612 status = ec_parse_device(device->handle, 0, ec, NULL);
1634 ret = acpi_ec_setup(ec, device);
1646 device->driver_data = ec;
1666 static int acpi_ec_remove(struct acpi_device *device)
1670 if (!device)
1673 ec = acpi_driver_data(device);
1676 device->driver_data = NULL;
1715 * namespace EC before the main ACPI device enumeration process. It is
1726 * following probe is not a part of the ACPI device enumeration,
1728 * picking up an invalid EC device.
1773 * provide a functional ECDT EC to handle events, so add an extra device object
1799 /* Add a special ACPI device object to represent the boot EC. */
1934 static int acpi_ec_suspend(struct device *dev)
1944 static int acpi_ec_suspend_noirq(struct device *dev)
1961 static int acpi_ec_resume_noirq(struct device *dev)
1974 static int acpi_ec_resume(struct device *dev)