Home
last modified time | relevance | path

Searched refs:bioscfg_drv (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dspmobj-attributes.c121 bioscfg_drv.spm_data.mechanism = data.state; in update_spm_state()
122 if (bioscfg_drv.spm_data.mechanism) in update_spm_state()
123 bioscfg_drv.spm_data.is_enabled = 1; in update_spm_state()
216 spm_mechanism_types[bioscfg_drv.spm_data.mechanism]); in key_mechanism_show()
233 bioscfg_drv.spm_data.signing_key = kmemdup(buf, length, GFP_KERNEL); in sk_store()
234 if (!bioscfg_drv.spm_data.signing_key) in sk_store()
240 (void *)bioscfg_drv.spm_data.signing_key, in sk_store()
244 bioscfg_drv.spm_data.mechanism = SIGNING_KEY; in sk_store()
248 kfree(bioscfg_drv.spm_data.signing_key); in sk_store()
249 bioscfg_drv.spm_data.signing_key = NULL; in sk_store()
[all …]
H A Dpasswdobj-attributes.c19 struct password_data *password_data = &bioscfg_drv.password_data[instance]; in clear_passwords()
38 int count = bioscfg_drv.password_instances_count; in hp_clear_all_credentials()
46 kfree(bioscfg_drv.spm_data.auth_token); in hp_clear_all_credentials()
47 bioscfg_drv.spm_data.auth_token = NULL; in hp_clear_all_credentials()
54 int count = bioscfg_drv.password_instances_count; in hp_get_password_instance_for_type()
58 if (!strcmp(bioscfg_drv.password_data[instance].common.display_name, name)) in hp_get_password_instance_for_type()
67 struct password_data *password_data = &bioscfg_drv.password_data[instance_id]; in validate_password_input()
105 strscpy(bioscfg_drv.password_data[id].current_password, in store_password_instance()
107 sizeof(bioscfg_drv.password_data[id].current_password)); in store_password_instance()
109 strscpy(bioscfg_drv.password_data[id].new_password, in store_password_instance()
[all …]
H A Dbioscfg.c23 struct bioscfg_priv bioscfg_drv = { variable
24 .mutex = __MUTEX_INITIALIZER(bioscfg_drv.mutex),
208 bioscfg_drv.pending_reboot = true; in hp_set_reboot_and_signal_event()
209 kobject_uevent(&bioscfg_drv.class_dev->kobj, KOBJ_CHANGE); in hp_set_reboot_and_signal_event()
344 return sysfs_emit(buf, "%d\n", bioscfg_drv.pending_reboot); in pending_reboot_show()
354 return sysfs_create_file(&bioscfg_drv.main_dir_kset->kobj, in create_attributes_level_sysfs_files()
551 mutex_lock(&bioscfg_drv.mutex); in release_attributes_data()
561 if (bioscfg_drv.authentication_dir_kset) { in release_attributes_data()
562 destroy_attribute_objs(bioscfg_drv.authentication_dir_kset); in release_attributes_data()
563 kset_unregister(bioscfg_drv.authentication_dir_kset); in release_attributes_data()
[all …]
H A Dstring-attributes.c23 bioscfg_drv.string_data[instance_id].current_value); in current_value_show()
36 struct string_data *string_data = &bioscfg_drv.string_data[instance_id]; in validate_string_input()
50 struct string_data *string_data = &bioscfg_drv.string_data[instance_id]; in update_string_value()
103 bioscfg_drv.string_instances_count = hp_get_instance_count(HP_WMI_BIOS_STRING_GUID); in hp_alloc_string_data()
104 bioscfg_drv.string_data = kcalloc(bioscfg_drv.string_instances_count, in hp_alloc_string_data()
105 sizeof(*bioscfg_drv.string_data), GFP_KERNEL); in hp_alloc_string_data()
106 if (!bioscfg_drv.string_data) { in hp_alloc_string_data()
107 bioscfg_drv.string_instances_count = 0; in hp_alloc_string_data()
141 struct string_data *string_data = &bioscfg_drv.string_data[instance_id]; in hp_populate_string_elements_from_package()
277 struct string_data *string_data = &bioscfg_drv.string_data[instance_id]; in hp_populate_string_package_data()
[all …]
H A Denum-attributes.c21 bioscfg_drv.enumeration_data[instance_id].current_value); in current_value_show()
35 struct enumeration_data *enum_data = &bioscfg_drv.enumeration_data[instance_id]; in validate_enumeration_input()
53 struct enumeration_data *enum_data = &bioscfg_drv.enumeration_data[instance_id]; in update_enumeration_value()
96 bioscfg_drv.enumeration_instances_count = in hp_alloc_enumeration_data()
99 bioscfg_drv.enumeration_data = kcalloc(bioscfg_drv.enumeration_instances_count, in hp_alloc_enumeration_data()
100 sizeof(*bioscfg_drv.enumeration_data), GFP_KERNEL); in hp_alloc_enumeration_data()
101 if (!bioscfg_drv.enumeration_data) { in hp_alloc_enumeration_data()
102 bioscfg_drv.enumeration_instances_count = 0; in hp_alloc_enumeration_data()
138 struct enumeration_data *enum_data = &bioscfg_drv.enumeration_data[instance_id]; in hp_populate_enumeration_elements_from_package()
315 struct enumeration_data *enum_data = &bioscfg_drv.enumeration_data[instance_id]; in hp_populate_enumeration_package_data()
[all …]
H A Dint-attributes.c21 bioscfg_drv.integer_data[instance_id].current_value); in current_value_show()
35 struct integer_data *integer_data = &bioscfg_drv.integer_data[instance_id]; in validate_integer_input()
56 struct integer_data *integer_data = &bioscfg_drv.integer_data[instance_id]; in update_integer_value()
111 bioscfg_drv.integer_instances_count = hp_get_instance_count(HP_WMI_BIOS_INTEGER_GUID); in hp_alloc_integer_data()
112 bioscfg_drv.integer_data = kcalloc(bioscfg_drv.integer_instances_count, in hp_alloc_integer_data()
113 sizeof(*bioscfg_drv.integer_data), GFP_KERNEL); in hp_alloc_integer_data()
115 if (!bioscfg_drv.integer_data) { in hp_alloc_integer_data()
116 bioscfg_drv.integer_instances_count = 0; in hp_alloc_integer_data()
151 struct integer_data *integer_data = &bioscfg_drv.integer_data[instance_id]; in hp_populate_integer_elements_from_package()
288 struct integer_data *integer_data = &bioscfg_drv.integer_data[instance_id]; in hp_populate_integer_package_data()
[all …]
H A Dorder-list-attributes.c21 bioscfg_drv.ordered_list_data[instance_id].current_value); in current_value_show()
58 struct ordered_list_data *ordered_list_data = &bioscfg_drv.ordered_list_data[instance]; in update_ordered_list_value()
101 bioscfg_drv.ordered_list_instances_count = in hp_alloc_ordered_list_data()
103 bioscfg_drv.ordered_list_data = kcalloc(bioscfg_drv.ordered_list_instances_count, in hp_alloc_ordered_list_data()
104 sizeof(*bioscfg_drv.ordered_list_data), in hp_alloc_ordered_list_data()
106 if (!bioscfg_drv.ordered_list_data) { in hp_alloc_ordered_list_data()
107 bioscfg_drv.ordered_list_instances_count = 0; in hp_alloc_ordered_list_data()
146 struct ordered_list_data *ordered_list_data = &bioscfg_drv.ordered_list_data[instance_id]; in hp_populate_ordered_list_elements_from_package()
311 struct ordered_list_data *ordered_list_data = &bioscfg_drv.ordered_list_data[instance_id]; in hp_populate_ordered_list_package_data()
331 struct ordered_list_data *ordered_list_data = &bioscfg_drv.ordered_list_data[instance_id]; in hp_populate_ordered_list_elements_from_buffer()
[all …]
H A Dbiosattr-interface.c47 mutex_lock(&bioscfg_drv.mutex); in hp_set_attribute()
56 if (bioscfg_drv.spm_data.auth_token) in hp_set_attribute()
57 auth_token_choice = bioscfg_drv.spm_data.auth_token; in hp_set_attribute()
59 auth_token_choice = bioscfg_drv.password_data[instance].current_password; in hp_set_attribute()
94 mutex_unlock(&bioscfg_drv.mutex); in hp_set_attribute()
223 dev_err(bioscfg_drv.class_dev, "UTF16 conversion failed\n"); in hp_ascii_to_utf16_unicode()
228 dev_err(bioscfg_drv.class_dev, "Error string too long\n"); in hp_ascii_to_utf16_unicode()
277 mutex_lock(&bioscfg_drv.mutex); in hp_attr_set_interface_probe()
278 mutex_unlock(&bioscfg_drv.mutex); in hp_attr_set_interface_probe()
284 mutex_lock(&bioscfg_drv.mutex); in hp_attr_set_interface_remove()
[all …]
H A Dbioscfg.h227 extern struct bioscfg_priv bioscfg_drv;
288 for (i = 0; i <= bioscfg_drv.type##_instances_count; i++) { \
289 if (!strcmp(kobj->name, bioscfg_drv.type##_data[i].attr_name_kobj->name)) \
301 return sysfs_emit(buf, "%s\n", bioscfg_drv.type##_data[i].name); \
311 return sysfs_emit(buf, "%d\n", bioscfg_drv.type##_data[i].name); \
338 if (bioscfg_drv.type##_data[i].common.requires_physical_presence) \
350 return sysfs_emit(buf, "%d\n", bioscfg_drv.type##_data.name); \
356 return sysfs_emit(buf, "%s\n", bioscfg_drv.type##_data.name); \
370 for (i = 0; i < bioscfg_drv.type##_data[instance_id].name##_size; i++) { \
375 bioscfg_drv.type##_data[instance_id].name[i]); \
[all …]
H A Dsurestart-attributes.c124 sysfs_remove_group(bioscfg_drv.sure_start_attr_kobj, in hp_exit_sure_start_attributes()
130 bioscfg_drv.sure_start_attr_kobj = attr_name_kobj; in hp_populate_sure_start_data()