Lines Matching +full:solid +full:- +full:state
1 // SPDX-License-Identifier: GPL-2.0-or-later
36 return -EIO; in toshiba_haps_reset_protection()
49 return -EIO; in toshiba_haps_protection_level()
63 return sprintf(buf, "%i\n", haps->protection_level); in protection_level_show()
79 * 0 - Disabled | 1 - Low | 2 - Medium | 3 - High in protection_level_store()
82 return -EINVAL; in protection_level_store()
85 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level); in protection_level_store()
89 haps->protection_level = level; in protection_level_store()
108 return -EINVAL; in reset_protection_store()
111 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in reset_protection_store()
136 acpi_bus_generate_netlink_event(device->pnp.device_class, in toshiba_haps_notify()
137 dev_name(&device->dev), in toshiba_haps_notify()
143 sysfs_remove_group(&device->dev.kobj, &haps_attr_group); in toshiba_haps_remove()
157 * Solid State Drives can cause the call to fail. in toshiba_haps_available()
179 return -EBUSY; in toshiba_haps_add()
181 if (!toshiba_haps_available(acpi_dev->handle)) in toshiba_haps_add()
182 return -ENODEV; in toshiba_haps_add()
188 return -ENOMEM; in toshiba_haps_add()
190 haps->acpi_dev = acpi_dev; in toshiba_haps_add()
191 haps->protection_level = 2; in toshiba_haps_add()
192 acpi_dev->driver_data = haps; in toshiba_haps_add()
193 dev_set_drvdata(&acpi_dev->dev, haps); in toshiba_haps_add()
196 ret = toshiba_haps_protection_level(acpi_dev->handle, 2); in toshiba_haps_add()
200 ret = sysfs_create_group(&acpi_dev->dev.kobj, &haps_attr_group); in toshiba_haps_add()
218 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, 0); in toshiba_haps_suspend()
231 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, in toshiba_haps_resume()
232 haps->protection_level); in toshiba_haps_resume()
235 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle); in toshiba_haps_resume()