Searched refs:bioscfg_drv (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | spmobj-attributes.c | 122 if (bioscfg_drv.spm_data.mechanism) in update_spm_state() 123 bioscfg_drv.spm_data.is_enabled = 1; in update_spm_state() 234 if (!bioscfg_drv.spm_data.signing_key) in sk_store() 314 if (!bioscfg_drv.spm_data.auth_token) { in auth_token_store() 322 kfree(bioscfg_drv.spm_data.auth_token); in auth_token_store() 323 bioscfg_drv.spm_data.auth_token = NULL; in auth_token_store() 355 kfree(bioscfg_drv.spm_data.auth_token); in hp_exit_secure_platform_attributes() 356 bioscfg_drv.spm_data.auth_token = NULL; in hp_exit_secure_platform_attributes() 371 bioscfg_drv.spm_data.is_enabled = 0; in hp_populate_secure_platform_data() 372 bioscfg_drv.spm_data.mechanism = 0; in hp_populate_secure_platform_data() [all …]
|
H A D | passwdobj-attributes.c | 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() 109 strscpy(bioscfg_drv.password_data[id].new_password, in store_password_instance() 193 bioscfg_drv.password_data = kcalloc(bioscfg_drv.password_instances_count, in hp_alloc_password_data() 195 if (!bioscfg_drv.password_data) { in hp_alloc_password_data() 196 bioscfg_drv.password_instances_count = 0; in hp_alloc_password_data() 553 bioscfg_drv.password_instances_count = 0; in hp_exit_password_attributes() 554 kfree(bioscfg_drv.password_data); in hp_exit_password_attributes() [all …]
|
H A D | bioscfg.c | 23 struct bioscfg_priv bioscfg_drv = { variable 208 bioscfg_drv.pending_reboot = true; in hp_set_reboot_and_signal_event() 551 mutex_lock(&bioscfg_drv.mutex); in release_attributes_data() 566 if (bioscfg_drv.main_dir_kset) { in release_attributes_data() 572 mutex_unlock(&bioscfg_drv.mutex); in release_attributes_data() 599 mutex_lock(&bioscfg_drv.mutex); in hp_add_other_attributes() 644 mutex_unlock(&bioscfg_drv.mutex); in hp_add_other_attributes() 650 mutex_unlock(&bioscfg_drv.mutex); in hp_add_other_attributes() 919 mutex_lock(&bioscfg_drv.mutex); in hp_init_bios_attributes() 952 mutex_unlock(&bioscfg_drv.mutex); in hp_init_bios_attributes() [all …]
|
H A D | string-attributes.c | 23 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() 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() 386 bioscfg_drv.string_data[instance_id].attr_name_kobj; in hp_exit_string_attributes() 391 bioscfg_drv.string_instances_count = 0; in hp_exit_string_attributes() 393 kfree(bioscfg_drv.string_data); in hp_exit_string_attributes() [all …]
|
H A D | enum-attributes.c | 21 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() 453 bioscfg_drv.enumeration_instances_count = 0; in hp_exit_enumeration_attributes() 455 kfree(bioscfg_drv.enumeration_data); in hp_exit_enumeration_attributes() [all …]
|
H A D | int-attributes.c | 21 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() 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() 409 bioscfg_drv.integer_data[instance_id].attr_name_kobj; in hp_exit_integer_attributes() 414 bioscfg_drv.integer_instances_count = 0; in hp_exit_integer_attributes() 416 kfree(bioscfg_drv.integer_data); in hp_exit_integer_attributes() [all …]
|
H A D | order-list-attributes.c | 21 bioscfg_drv.ordered_list_data[instance_id].current_value); in current_value_show() 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() 428 for (instance_id = 0; instance_id < bioscfg_drv.ordered_list_instances_count; in hp_exit_ordered_list_attributes() 431 bioscfg_drv.ordered_list_data[instance_id].attr_name_kobj; in hp_exit_ordered_list_attributes() 437 bioscfg_drv.ordered_list_instances_count = 0; in hp_exit_ordered_list_attributes() 439 kfree(bioscfg_drv.ordered_list_data); in hp_exit_ordered_list_attributes() [all …]
|
H A D | biosattr-interface.c | 47 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 D | bioscfg.h | 227 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 D | surestart-attributes.c | 124 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()
|