Lines Matching refs:acpi_dev
21 struct acpi_device *acpi_dev; member
85 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level); in protection_level_store()
111 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in reset_protection_store()
175 static int toshiba_haps_add(struct acpi_device *acpi_dev) in toshiba_haps_add() argument
183 if (!toshiba_haps_available(acpi_dev->handle)) in toshiba_haps_add()
192 haps->acpi_dev = acpi_dev; in toshiba_haps_add()
194 acpi_dev->driver_data = haps; in toshiba_haps_add()
195 dev_set_drvdata(&acpi_dev->dev, haps); in toshiba_haps_add()
198 ret = toshiba_haps_protection_level(acpi_dev->handle, 2); in toshiba_haps_add()
202 ret = sysfs_create_group(&acpi_dev->dev.kobj, &haps_attr_group); in toshiba_haps_add()
220 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, 0); in toshiba_haps_suspend()
233 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, in toshiba_haps_resume()
237 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in toshiba_haps_resume()