Lines Matching +full:attribute +full:- +full:sets
1 // SPDX-License-Identifier: GPL-2.0
4 * with dell-wmi-sysman
10 #include "dell-wmi-sysman.h"
23 int ret = -EIO; in call_biosattributes_interface()
29 return -EIO; in call_biosattributes_interface()
31 if (obj->type == ACPI_TYPE_INTEGER) in call_biosattributes_interface()
32 ret = obj->integer.value; in call_biosattributes_interface()
37 kobject_uevent(&wmi_priv.class_dev->kobj, KOBJ_CHANGE); in call_biosattributes_interface()
44 * set_attribute() - Update an attribute value
45 * @a_name: The attribute name
46 * @a_value: The attribute value
48 * Sets an attribute to new value
59 ret = -ENODEV; in set_attribute()
70 ret = -ENOMEM; in set_attribute()
87 print_hex_dump_bytes("set attribute data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_attribute()
91 if (ret == -EOPNOTSUPP) in set_attribute()
92 dev_err(&wmi_priv.bios_attr_wdev->dev, "admin password must be configured\n"); in set_attribute()
93 else if (ret == -EACCES) in set_attribute()
94 dev_err(&wmi_priv.bios_attr_wdev->dev, "invalid password\n"); in set_attribute()
103 * set_bios_defaults() - Resets BIOS defaults
118 ret = -ENODEV; in set_bios_defaults()
126 ret = -ENOMEM; in set_bios_defaults()
139 dev_err(&wmi_priv.bios_attr_wdev->dev, "reset BIOS defaults failed: %d\n", ret); in set_bios_defaults()