Searched refs:wmi_priv (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.6/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | biosattr-interface.c | 34 if (wmi_priv.pending_changes == 0) { in call_biosattributes_interface() 35 wmi_priv.pending_changes = 1; in call_biosattributes_interface() 37 kobject_uevent(&wmi_priv.class_dev->kobj, KOBJ_CHANGE); in call_biosattributes_interface() 57 mutex_lock(&wmi_priv.mutex); in set_attribute() 58 if (!wmi_priv.bios_attr_wdev) { in set_attribute() 64 security_area_size = calculate_security_buffer(wmi_priv.current_admin_password); in set_attribute() 75 populate_security_buffer(buffer, wmi_priv.current_admin_password); in set_attribute() 88 ret = call_biosattributes_interface(wmi_priv.bios_attr_wdev, in set_attribute() 92 dev_err(&wmi_priv.bios_attr_wdev->dev, "admin password must be configured\n"); in set_attribute() 94 dev_err(&wmi_priv.bios_attr_wdev->dev, "invalid password\n"); in set_attribute() [all …]
|
D | string-attributes.c | 46 if ((in_len < wmi_priv.str_data[instance_id].min_length) || in validate_str_input() 47 (in_len > wmi_priv.str_data[instance_id].max_length)) in validate_str_input() 109 wmi_priv.str_instances_count = get_instance_count(DELL_WMI_BIOS_STRING_ATTRIBUTE_GUID); in alloc_str_data() 110 wmi_priv.str_data = kcalloc(wmi_priv.str_instances_count, in alloc_str_data() 112 if (!wmi_priv.str_data) { in alloc_str_data() 113 wmi_priv.str_instances_count = 0; in alloc_str_data() 127 wmi_priv.str_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_str_data() 130 strlcpy_attr(wmi_priv.str_data[instance_id].attribute_name, in populate_str_data() 134 strlcpy_attr(wmi_priv.str_data[instance_id].display_name_language_code, in populate_str_data() 138 strlcpy_attr(wmi_priv.str_data[instance_id].display_name, in populate_str_data() [all …]
|
D | sysman.c | 21 struct wmi_sysman_priv wmi_priv = { variable 22 .mutex = __MUTEX_INITIALIZER(wmi_priv.mutex), 46 dev_err(wmi_priv.class_dev, "UTF16 conversion failed\n"); in populate_string_buffer() 51 dev_err(wmi_priv.class_dev, "Error string too long\n"); in populate_string_buffer() 198 return sprintf(buf, "%d\n", wmi_priv.pending_changes); in pending_reboot_show() 213 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &reset_bios.attr); in create_attributes_level_sysfs_files() 217 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &pending_reboot.attr); in create_attributes_level_sysfs_files() 363 mutex_lock(&wmi_priv.mutex); in release_attributes_data() 368 if (wmi_priv.authentication_dir_kset) { in release_attributes_data() 369 destroy_attribute_objs(wmi_priv.authentication_dir_kset); in release_attributes_data() [all …]
|
D | passwordattr-interface.c | 30 kobject_uevent(&wmi_priv.class_dev->kobj, KOBJ_CHANGE); in call_password_interface() 49 mutex_lock(&wmi_priv.mutex); in set_new_password() 50 if (!wmi_priv.password_attr_wdev) { in set_new_password() 55 current_password = wmi_priv.current_admin_password; in set_new_password() 57 current_password = wmi_priv.current_system_password; in set_new_password() 60 dev_err(&wmi_priv.password_attr_wdev->dev, "unknown password type %s\n", in set_new_password() 66 security_area_size = calculate_security_buffer(wmi_priv.current_admin_password); in set_new_password() 78 populate_security_buffer(buffer, wmi_priv.current_admin_password); in set_new_password() 97 ret = call_password_interface(wmi_priv.password_attr_wdev, buffer, buffer_size); in set_new_password() 103 dev_err(&wmi_priv.password_attr_wdev->dev, "admin password must be configured\n"); in set_new_password() [all …]
|
D | int-attributes.c | 50 if (in_val < wmi_priv.integer_data[instance_id].min_value || in validate_integer_input() 51 in_val > wmi_priv.integer_data[instance_id].max_value) in validate_integer_input() 124 wmi_priv.integer_instances_count = get_instance_count(DELL_WMI_BIOS_INTEGER_ATTRIBUTE_GUID); in alloc_int_data() 125 wmi_priv.integer_data = kcalloc(wmi_priv.integer_instances_count, in alloc_int_data() 127 if (!wmi_priv.integer_data) { in alloc_int_data() 128 wmi_priv.integer_instances_count = 0; in alloc_int_data() 143 wmi_priv.integer_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_int_data() 146 strlcpy_attr(wmi_priv.integer_data[instance_id].attribute_name, in populate_int_data() 150 strlcpy_attr(wmi_priv.integer_data[instance_id].display_name_language_code, in populate_int_data() 154 strlcpy_attr(wmi_priv.integer_data[instance_id].display_name, in populate_int_data() [all …]
|
D | enum-attributes.c | 45 options = tmp = kstrdup(wmi_priv.enumeration_data[instance_id].possible_values, in validate_enumeration_input() 119 wmi_priv.enumeration_instances_count = in alloc_enum_data() 121 wmi_priv.enumeration_data = kcalloc(wmi_priv.enumeration_instances_count, in alloc_enum_data() 123 if (!wmi_priv.enumeration_data) { in alloc_enum_data() 124 wmi_priv.enumeration_instances_count = 0; in alloc_enum_data() 142 wmi_priv.enumeration_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_enum_data() 145 strlcpy_attr(wmi_priv.enumeration_data[instance_id].attribute_name, in populate_enum_data() 149 strlcpy_attr(wmi_priv.enumeration_data[instance_id].display_name_language_code, in populate_enum_data() 153 strlcpy_attr(wmi_priv.enumeration_data[instance_id].display_name, in populate_enum_data() 157 strlcpy_attr(wmi_priv.enumeration_data[instance_id].default_value, in populate_enum_data() [all …]
|
D | passobj-attributes.c | 58 target = wmi_priv.current_admin_password; in current_password_store() 60 target = wmi_priv.current_system_password; in current_password_store() 144 wmi_priv.po_instances_count = get_instance_count(DELL_WMI_BIOS_PASSOBJ_ATTRIBUTE_GUID); in alloc_po_data() 145 wmi_priv.po_data = kcalloc(wmi_priv.po_instances_count, sizeof(struct po_data), GFP_KERNEL); in alloc_po_data() 146 if (!wmi_priv.po_data) { in alloc_po_data() 147 wmi_priv.po_instances_count = 0; in alloc_po_data() 161 wmi_priv.po_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_po_data() 164 strlcpy_attr(wmi_priv.po_data[instance_id].attribute_name, in populate_po_data() 168 wmi_priv.po_data[instance_id].min_password_length = in populate_po_data() 172 wmi_priv.po_data[instance_id].max_password_length = in populate_po_data() [all …]
|
D | dell-wmi-sysman.h | 88 extern struct wmi_sysman_priv wmi_priv; 105 for (i = 0; i <= wmi_priv.type##_instances_count; i++) { \ 106 if (!(strcmp(kobj->name, wmi_priv.type##_data[i].attribute_name)))\ 118 return sprintf(buf, "%s\n", wmi_priv.type##_data[i].name); \ 128 return sprintf(buf, "%d\n", wmi_priv.type##_data[i].name); \
|