Lines Matching defs:acpi

66 #include <linux/acpi.h>
73 #include <acpi/battery.h>
74 #include <acpi/video.h>
225 #define TPACPI_URL "http://ibm-acpi.sf.net/"
226 #define TPACPI_MAIL "ibm-acpi-devel@lists.sourceforge.net"
283 struct tp_acpi_drv_struct *acpi;
772 if (!ibm || !ibm->acpi || !ibm->acpi->notify)
775 ibm->acpi->notify(ibm, event);
783 BUG_ON(!ibm->acpi);
785 if (!*ibm->acpi->handle)
791 rc = acpi_bus_get_device(*ibm->acpi->handle, &ibm->acpi->device);
797 ibm->acpi->device->driver_data = ibm;
798 sprintf(acpi_device_class(ibm->acpi->device), "%s/%s",
802 status = acpi_install_notify_handler(*ibm->acpi->handle,
803 ibm->acpi->type, dispatch_acpi_notify, ibm);
830 BUG_ON(!ibm->acpi);
832 ibm->acpi->driver = kzalloc(sizeof(struct acpi_driver), GFP_KERNEL);
833 if (!ibm->acpi->driver) {
834 pr_err("failed to allocate memory for ibm->acpi->driver\n");
838 sprintf(ibm->acpi->driver->name, "%s_%s", TPACPI_NAME, ibm->name);
839 ibm->acpi->driver->ids = ibm->acpi->hid;
841 ibm->acpi->driver->ops.add = &tpacpi_device_add;
843 rc = acpi_bus_register_driver(ibm->acpi->driver);
847 kfree(ibm->acpi->driver);
848 ibm->acpi->driver = NULL;
1421 * thinkpad-acpi driver attributes
1802 * thinkpad-acpi metadata subdriver
2285 pr_notice("please consider using the driver defaults, and refer to up-to-date thinkpad-acpi documentation\n");
3256 * ibm-acpi-devel mailing lists, and you should read the
3260 * acpi driver keymaps, and also that you will be
3263 * 3. Do not send thinkpad-acpi specific patches directly to
3264 * for merging, *ever*. Send them to the linux-acpi
3266 * through acpi-test and the ACPI maintainer.
3269 * Ask the thinkpad-acpi maintainer to do it, instead.
3679 pr_notice("Disabling thinkpad-acpi brightness events by default...\n");
4115 ibm->acpi->device->pnp.device_class,
4116 dev_name(&ibm->acpi->device->dev),
4201 ibm->acpi->device->pnp.device_class,
4202 dev_name(&ibm->acpi->device->dev),
4352 .acpi = &ibm_hotkey_acpidriver,
6938 * We always attempt to detect acpi support, so as to switch
10038 BUG_ON(!ibm->acpi);
10039 acpi_remove_notify_handler(*ibm->acpi->handle,
10040 ibm->acpi->type,
10055 BUG_ON(!ibm->acpi);
10056 acpi_bus_unregister_driver(ibm->acpi->driver);
10057 kfree(ibm->acpi->driver);
10058 ibm->acpi->driver = NULL;
10096 if (ibm->acpi) {
10097 if (ibm->acpi->hid) {
10103 if (ibm->acpi->notify) {
10524 MODULE_PARM_DESC(feature, "Simulates thinkpad-acpi procfs command at module load, see documentation")
10772 MODULE_DEVICE_TABLE(acpi, ibm_htk_device_ids);