Lines Matching defs:acpi

79 #include <linux/acpi.h>
221 #define TPACPI_URL "http://ibm-acpi.sf.net/"
222 #define TPACPI_MAIL "ibm-acpi-devel@lists.sourceforge.net"
279 struct tp_acpi_drv_struct *acpi;
747 if (!ibm || !ibm->acpi || !ibm->acpi->notify)
750 ibm->acpi->notify(ibm, event);
758 BUG_ON(!ibm->acpi);
760 if (!*ibm->acpi->handle)
766 rc = acpi_bus_get_device(*ibm->acpi->handle, &ibm->acpi->device);
772 ibm->acpi->device->driver_data = ibm;
773 sprintf(acpi_device_class(ibm->acpi->device), "%s/%s",
777 status = acpi_install_notify_handler(*ibm->acpi->handle,
778 ibm->acpi->type, dispatch_acpi_notify, ibm);
805 BUG_ON(!ibm->acpi);
807 ibm->acpi->driver = kzalloc(sizeof(struct acpi_driver), GFP_KERNEL);
808 if (!ibm->acpi->driver) {
809 pr_err("failed to allocate memory for ibm->acpi->driver\n");
813 sprintf(ibm->acpi->driver->name, "%s_%s", TPACPI_NAME, ibm->name);
814 ibm->acpi->driver->ids = ibm->acpi->hid;
816 ibm->acpi->driver->ops.add = &tpacpi_device_add;
818 rc = acpi_bus_register_driver(ibm->acpi->driver);
822 kfree(ibm->acpi->driver);
823 ibm->acpi->driver = NULL;
1427 * thinkpad-acpi driver attributes
1841 * thinkpad-acpi metadata subdriver
2172 "and refer to up-to-date thinkpad-acpi "
3066 * ibm-acpi-devel mailing lists, and you should read the
3070 * acpi driver keymaps, and also that you will be
3073 * 3. Do not send thinkpad-acpi specific patches directly to
3074 * for merging, *ever*. Send them to the linux-acpi
3076 * through acpi-test and the ACPI maintainer.
3079 * Ask the thinkpad-acpi maintainer to do it, instead.
3389 pr_notice("Disabling thinkpad-acpi brightness events "
3744 ibm->acpi->device->pnp.device_class,
3745 dev_name(&ibm->acpi->device->dev),
3830 ibm->acpi->device->pnp.device_class,
3831 dev_name(&ibm->acpi->device->dev),
3995 .acpi = &ibm_hotkey_acpidriver,
6322 * We always attempt to detect acpi support, so as to switch
8678 BUG_ON(!ibm->acpi);
8679 acpi_remove_notify_handler(*ibm->acpi->handle,
8680 ibm->acpi->type,
8695 BUG_ON(!ibm->acpi);
8696 acpi_bus_unregister_driver(ibm->acpi->driver);
8697 kfree(ibm->acpi->driver);
8698 ibm->acpi->driver = NULL;
8736 if (ibm->acpi) {
8737 if (ibm->acpi->hid) {
8743 if (ibm->acpi->notify) {
9105 MODULE_PARM_DESC(feature, "Simulates thinkpad-acpi procfs command " \
9362 MODULE_DEVICE_TABLE(acpi, ibm_htk_device_ids);