Lines Matching defs:acpi
37 #include <linux/acpi.h>
74 #include <acpi/battery.h>
75 #include <acpi/video.h>
242 #define TPACPI_URL "http://ibm-acpi.sf.net/"
243 #define TPACPI_MAIL "ibm-acpi-devel@lists.sourceforge.net"
297 struct tp_acpi_drv_struct *acpi;
793 if (!ibm || !ibm->acpi || !ibm->acpi->notify)
796 ibm->acpi->notify(ibm, event);
803 BUG_ON(!ibm->acpi);
805 if (!*ibm->acpi->handle)
811 ibm->acpi->device = acpi_fetch_acpi_dev(*ibm->acpi->handle);
812 if (!ibm->acpi->device) {
817 ibm->acpi->device->driver_data = ibm;
818 sprintf(acpi_device_class(ibm->acpi->device), "%s/%s",
822 status = acpi_install_notify_handler(*ibm->acpi->handle,
823 ibm->acpi->type, dispatch_acpi_notify, ibm);
850 BUG_ON(!ibm->acpi);
852 ibm->acpi->driver = kzalloc(sizeof(struct acpi_driver), GFP_KERNEL);
853 if (!ibm->acpi->driver) {
854 pr_err("failed to allocate memory for ibm->acpi->driver\n");
858 sprintf(ibm->acpi->driver->name, "%s_%s", TPACPI_NAME, ibm->name);
859 ibm->acpi->driver->ids = ibm->acpi->hid;
861 ibm->acpi->driver->ops.add = &tpacpi_device_add;
863 rc = acpi_bus_register_driver(ibm->acpi->driver);
867 kfree(ibm->acpi->driver);
868 ibm->acpi->driver = NULL;
1344 * thinkpad-acpi driver attributes
1678 * thinkpad-acpi metadata subdriver
2159 pr_notice("please consider using the driver defaults, and refer to up-to-date thinkpad-acpi documentation\n");
3153 * ibm-acpi-devel mailing lists, and you should read the
3157 * acpi driver keymaps, and also that you will be
3160 * 3. Do not send thinkpad-acpi specific patches directly to
3161 * for merging, *ever*. Send them to the linux-acpi
3163 * through acpi-test and the ACPI maintainer.
3166 * Ask the thinkpad-acpi maintainer to do it, instead.
3545 pr_notice("Disabling thinkpad-acpi brightness events by default...\n");
4007 ibm->acpi->device->pnp.device_class,
4008 dev_name(&ibm->acpi->device->dev),
4093 ibm->acpi->device->pnp.device_class,
4094 dev_name(&ibm->acpi->device->dev),
4246 .acpi = &ibm_hotkey_acpidriver,
6832 * We always attempt to detect acpi support, so as to switch
11075 BUG_ON(!ibm->acpi);
11076 acpi_remove_notify_handler(*ibm->acpi->handle,
11077 ibm->acpi->type,
11092 BUG_ON(!ibm->acpi);
11093 acpi_bus_unregister_driver(ibm->acpi->driver);
11094 kfree(ibm->acpi->driver);
11095 ibm->acpi->driver = NULL;
11133 if (ibm->acpi) {
11134 if (ibm->acpi->hid) {
11140 if (ibm->acpi->notify) {
11571 MODULE_PARM_DESC(feature, "Simulates thinkpad-acpi procfs command at module load, see documentation")
11820 MODULE_DEVICE_TABLE(acpi, ibm_htk_device_ids);