• Home
  • Raw
  • Download

Lines Matching refs:haps

61 	struct toshiba_haps_dev *haps = dev_get_drvdata(dev);  in protection_level_show()  local
63 return sprintf(buf, "%i\n", haps->protection_level); in protection_level_show()
70 struct toshiba_haps_dev *haps = dev_get_drvdata(dev); in protection_level_store() local
85 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level); in protection_level_store()
89 haps->protection_level = level; in protection_level_store()
99 struct toshiba_haps_dev *haps = dev_get_drvdata(dev); in reset_protection_store() local
111 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in reset_protection_store()
177 struct toshiba_haps_dev *haps; in toshiba_haps_add() local
188 haps = kzalloc(sizeof(struct toshiba_haps_dev), GFP_KERNEL); in toshiba_haps_add()
189 if (!haps) in toshiba_haps_add()
192 haps->acpi_dev = acpi_dev; in toshiba_haps_add()
193 haps->protection_level = 2; 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()
206 toshiba_haps = haps; in toshiba_haps_add()
214 struct toshiba_haps_dev *haps; in toshiba_haps_suspend() local
217 haps = acpi_driver_data(to_acpi_device(device)); in toshiba_haps_suspend()
220 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, 0); in toshiba_haps_suspend()
227 struct toshiba_haps_dev *haps; in toshiba_haps_resume() local
230 haps = acpi_driver_data(to_acpi_device(device)); in toshiba_haps_resume()
233 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, in toshiba_haps_resume()
234 haps->protection_level); in toshiba_haps_resume()
237 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in toshiba_haps_resume()