Searched refs:bioscfg_drv (Results 1 – 10 of 10) sorted by relevance
| /drivers/platform/x86/hp/hp-bioscfg/ |
| 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() 370 bioscfg_drv.spm_data.is_enabled = 0; in hp_populate_secure_platform_data() 371 bioscfg_drv.spm_data.mechanism = 0; in hp_populate_secure_platform_data() [all …]
|
| A D | bioscfg.c | 23 struct bioscfg_priv bioscfg_drv = { variable 206 bioscfg_drv.pending_reboot = true; in hp_set_reboot_and_signal_event() 546 mutex_lock(&bioscfg_drv.mutex); in release_attributes_data() 561 if (bioscfg_drv.main_dir_kset) { in release_attributes_data() 567 mutex_unlock(&bioscfg_drv.mutex); in release_attributes_data() 593 mutex_lock(&bioscfg_drv.mutex); in hp_add_other_attributes() 638 mutex_unlock(&bioscfg_drv.mutex); in hp_add_other_attributes() 644 mutex_unlock(&bioscfg_drv.mutex); in hp_add_other_attributes() 912 mutex_lock(&bioscfg_drv.mutex); in hp_init_bios_attributes() 945 mutex_unlock(&bioscfg_drv.mutex); in hp_init_bios_attributes() [all …]
|
| A D | passwdobj-attributes.c | 37 int count = bioscfg_drv.password_instances_count; in hp_clear_all_credentials() 45 kfree(bioscfg_drv.spm_data.auth_token); in hp_clear_all_credentials() 46 bioscfg_drv.spm_data.auth_token = NULL; in hp_clear_all_credentials() 53 int count = bioscfg_drv.password_instances_count; in hp_get_password_instance_for_type() 158 if (bioscfg_drv.password_data[i].mechanism != PASSWORD) in mechanism_show() 188 bioscfg_drv.password_data = kcalloc(bioscfg_drv.password_instances_count, in hp_alloc_password_data() 190 if (!bioscfg_drv.password_data) { in hp_alloc_password_data() 191 bioscfg_drv.password_instances_count = 0; in hp_alloc_password_data() 538 bioscfg_drv.password_instances_count = 0; in hp_exit_password_attributes() 539 kfree(bioscfg_drv.password_data); in hp_exit_password_attributes() [all …]
|
| 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() 382 bioscfg_drv.string_data[instance_id].attr_name_kobj; in hp_exit_string_attributes() 387 bioscfg_drv.string_instances_count = 0; in hp_exit_string_attributes() 389 kfree(bioscfg_drv.string_data); in hp_exit_string_attributes() [all …]
|
| 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() 94 bioscfg_drv.enumeration_instances_count = in hp_alloc_enumeration_data() 97 bioscfg_drv.enumeration_data = kcalloc(bioscfg_drv.enumeration_instances_count, in hp_alloc_enumeration_data() 98 sizeof(*bioscfg_drv.enumeration_data), GFP_KERNEL); in hp_alloc_enumeration_data() 99 if (!bioscfg_drv.enumeration_data) { in hp_alloc_enumeration_data() 100 bioscfg_drv.enumeration_instances_count = 0; in hp_alloc_enumeration_data() 445 bioscfg_drv.enumeration_instances_count = 0; in hp_exit_enumeration_attributes() 447 kfree(bioscfg_drv.enumeration_data); in hp_exit_enumeration_attributes() [all …]
|
| 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() 406 bioscfg_drv.integer_data[instance_id].attr_name_kobj; in hp_exit_integer_attributes() 411 bioscfg_drv.integer_instances_count = 0; in hp_exit_integer_attributes() 413 kfree(bioscfg_drv.integer_data); in hp_exit_integer_attributes() [all …]
|
| A D | order-list-attributes.c | 21 bioscfg_drv.ordered_list_data[instance_id].current_value); in current_value_show() 99 bioscfg_drv.ordered_list_instances_count = in hp_alloc_ordered_list_data() 101 bioscfg_drv.ordered_list_data = kcalloc(bioscfg_drv.ordered_list_instances_count, in hp_alloc_ordered_list_data() 102 sizeof(*bioscfg_drv.ordered_list_data), in hp_alloc_ordered_list_data() 104 if (!bioscfg_drv.ordered_list_data) { in hp_alloc_ordered_list_data() 105 bioscfg_drv.ordered_list_instances_count = 0; in hp_alloc_ordered_list_data() 420 for (instance_id = 0; instance_id < bioscfg_drv.ordered_list_instances_count; in hp_exit_ordered_list_attributes() 423 bioscfg_drv.ordered_list_data[instance_id].attr_name_kobj; in hp_exit_ordered_list_attributes() 429 bioscfg_drv.ordered_list_instances_count = 0; in hp_exit_ordered_list_attributes() 431 kfree(bioscfg_drv.ordered_list_data); in hp_exit_ordered_list_attributes() [all …]
|
| 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 …]
|
| 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 …]
|
| 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()
|
Completed in 19 milliseconds