Lines Matching defs:acpi

37 #include <linux/acpi.h>
75 #include <acpi/battery.h>
76 #include <acpi/video.h>
244 #define TPACPI_URL "http://ibm-acpi.sf.net/"
245 #define TPACPI_MAIL "ibm-acpi-devel@lists.sourceforge.net"
299 struct tp_acpi_drv_struct *acpi;
795 if (!ibm || !ibm->acpi || !ibm->acpi->notify)
798 ibm->acpi->notify(ibm, event);
805 BUG_ON(!ibm->acpi);
807 if (!*ibm->acpi->handle)
813 ibm->acpi->device = acpi_fetch_acpi_dev(*ibm->acpi->handle);
814 if (!ibm->acpi->device) {
819 ibm->acpi->device->driver_data = ibm;
820 sprintf(acpi_device_class(ibm->acpi->device), "%s/%s",
824 status = acpi_install_notify_handler(*ibm->acpi->handle,
825 ibm->acpi->type, dispatch_acpi_notify, ibm);
852 BUG_ON(!ibm->acpi);
854 ibm->acpi->driver = kzalloc(sizeof(struct acpi_driver), GFP_KERNEL);
855 if (!ibm->acpi->driver) {
856 pr_err("failed to allocate memory for ibm->acpi->driver\n");
860 sprintf(ibm->acpi->driver->name, "%s_%s", TPACPI_NAME, ibm->name);
861 ibm->acpi->driver->ids = ibm->acpi->hid;
863 ibm->acpi->driver->ops.add = &tpacpi_device_add;
865 rc = acpi_bus_register_driver(ibm->acpi->driver);
869 kfree(ibm->acpi->driver);
870 ibm->acpi->driver = NULL;
1346 * thinkpad-acpi driver attributes
1680 * thinkpad-acpi metadata subdriver
2161 pr_notice("please consider using the driver defaults, and refer to up-to-date thinkpad-acpi documentation\n");
3155 * ibm-acpi-devel mailing lists, and you should read the
3159 * acpi driver keymaps, and also that you will be
3162 * 3. Do not send thinkpad-acpi specific patches directly to
3163 * for merging, *ever*. Send them to the linux-acpi
3165 * through acpi-test and the ACPI maintainer.
3168 * Ask the thinkpad-acpi maintainer to do it, instead.
3547 pr_notice("Disabling thinkpad-acpi brightness events by default...\n");
4010 ibm->acpi->device->pnp.device_class,
4011 dev_name(&ibm->acpi->device->dev),
4096 ibm->acpi->device->pnp.device_class,
4097 dev_name(&ibm->acpi->device->dev),
4249 .acpi = &ibm_hotkey_acpidriver,
6897 * We always attempt to detect acpi support, so as to switch
11246 BUG_ON(!ibm->acpi);
11247 acpi_remove_notify_handler(*ibm->acpi->handle,
11248 ibm->acpi->type,
11263 BUG_ON(!ibm->acpi);
11264 acpi_bus_unregister_driver(ibm->acpi->driver);
11265 kfree(ibm->acpi->driver);
11266 ibm->acpi->driver = NULL;
11304 if (ibm->acpi) {
11305 if (ibm->acpi->hid) {
11311 if (ibm->acpi->notify) {
11749 MODULE_PARM_DESC(feature, "Simulates thinkpad-acpi procfs command at module load, see documentation")
11998 MODULE_DEVICE_TABLE(acpi, ibm_htk_device_ids);