/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | bioscfg.c | 590 struct kobject *attr_name_kobj; in hp_add_other_attributes() local 595 attr_name_kobj = kzalloc(sizeof(*attr_name_kobj), GFP_KERNEL); in hp_add_other_attributes() 596 if (!attr_name_kobj) in hp_add_other_attributes() 604 attr_name_kobj->kset = bioscfg_drv.authentication_dir_kset; in hp_add_other_attributes() 609 attr_name_kobj->kset = bioscfg_drv.main_dir_kset; in hp_add_other_attributes() 616 kfree(attr_name_kobj); in hp_add_other_attributes() 620 ret = kobject_init_and_add(attr_name_kobj, &attr_name_ktype, in hp_add_other_attributes() 630 ret = hp_populate_secure_platform_data(attr_name_kobj); in hp_add_other_attributes() 634 ret = hp_populate_sure_start_data(attr_name_kobj); in hp_add_other_attributes() 648 kobject_put(attr_name_kobj); in hp_add_other_attributes() [all …]
|
H A D | bioscfg.h | 133 struct kobject *attr_name_kobj; member 142 struct kobject *attr_name_kobj; member 152 struct kobject *attr_name_kobj; member 161 struct kobject *attr_name_kobj; member 170 struct kobject *attr_name_kobj; member 195 struct kobject *attr_name_kobj; member 289 if (!strcmp(kobj->name, bioscfg_drv.type##_data[i].attr_name_kobj->name)) \ 398 struct kobject *attr_name_kobj); 403 struct kobject *attr_name_kobj); 408 struct kobject *attr_name_kobj); [all …]
|
H A D | passwdobj-attributes.c | 397 struct kobject *attr_name_kobj) in hp_populate_password_package_data() argument 401 password_data->attr_name_kobj = attr_name_kobj; in hp_populate_password_package_data() 408 attr_name_kobj->name, in hp_populate_password_package_data() 412 if (!strcmp(attr_name_kobj->name, SETUP_PASSWD)) in hp_populate_password_package_data() 413 return sysfs_create_group(attr_name_kobj, &password_attr_group); in hp_populate_password_package_data() 415 return sysfs_create_group(attr_name_kobj, &password_attr_group); in hp_populate_password_package_data() 507 struct kobject *attr_name_kobj) in hp_populate_password_buffer_data() argument 512 password_data->attr_name_kobj = attr_name_kobj; in hp_populate_password_buffer_data() 521 attr_name_kobj->name, in hp_populate_password_buffer_data() 524 if (!strcmp(attr_name_kobj->name, SETUP_PASSWD)) in hp_populate_password_buffer_data() [all …]
|
H A D | string-attributes.c | 275 struct kobject *attr_name_kobj) in hp_populate_string_package_data() argument 279 string_data->attr_name_kobj = attr_name_kobj; in hp_populate_string_package_data() 288 attr_name_kobj->name, in hp_populate_string_package_data() 291 return sysfs_create_group(attr_name_kobj, &string_attr_group); in hp_populate_string_package_data() 352 struct kobject *attr_name_kobj) in hp_populate_string_buffer_data() argument 357 string_data->attr_name_kobj = attr_name_kobj; in hp_populate_string_buffer_data() 367 attr_name_kobj->name, in hp_populate_string_buffer_data() 371 return sysfs_create_group(attr_name_kobj, &string_attr_group); in hp_populate_string_buffer_data() 385 struct kobject *attr_name_kobj = in hp_exit_string_attributes() local 386 bioscfg_drv.string_data[instance_id].attr_name_kobj; in hp_exit_string_attributes() [all …]
|
H A D | enum-attributes.c | 313 struct kobject *attr_name_kobj) in hp_populate_enumeration_package_data() argument 317 enum_data->attr_name_kobj = attr_name_kobj; in hp_populate_enumeration_package_data() 329 attr_name_kobj->name, in hp_populate_enumeration_package_data() 332 return sysfs_create_group(attr_name_kobj, &enumeration_attr_group); in hp_populate_enumeration_package_data() 409 struct kobject *attr_name_kobj) in hp_populate_enumeration_buffer_data() argument 414 enum_data->attr_name_kobj = attr_name_kobj; in hp_populate_enumeration_buffer_data() 429 attr_name_kobj->name, in hp_populate_enumeration_buffer_data() 433 return sysfs_create_group(attr_name_kobj, &enumeration_attr_group); in hp_populate_enumeration_buffer_data() 448 struct kobject *attr_name_kobj = enum_data->attr_name_kobj; in hp_exit_enumeration_attributes() local 450 if (attr_name_kobj) in hp_exit_enumeration_attributes() [all …]
|
H A D | int-attributes.c | 286 struct kobject *attr_name_kobj) in hp_populate_integer_package_data() argument 290 integer_data->attr_name_kobj = attr_name_kobj; in hp_populate_integer_package_data() 297 attr_name_kobj->name, in hp_populate_integer_package_data() 300 return sysfs_create_group(attr_name_kobj, &integer_attr_group); in hp_populate_integer_package_data() 374 struct kobject *attr_name_kobj) in hp_populate_integer_buffer_data() argument 379 integer_data->attr_name_kobj = attr_name_kobj; in hp_populate_integer_buffer_data() 390 attr_name_kobj->name, in hp_populate_integer_buffer_data() 394 return sysfs_create_group(attr_name_kobj, &integer_attr_group); in hp_populate_integer_buffer_data() 408 struct kobject *attr_name_kobj = in hp_exit_integer_attributes() local 409 bioscfg_drv.integer_data[instance_id].attr_name_kobj; in hp_exit_integer_attributes() [all …]
|
H A D | order-list-attributes.c | 309 struct kobject *attr_name_kobj) in hp_populate_ordered_list_package_data() argument 313 ordered_list_data->attr_name_kobj = attr_name_kobj; in hp_populate_ordered_list_package_data() 321 attr_name_kobj->name, in hp_populate_ordered_list_package_data() 324 return sysfs_create_group(attr_name_kobj, &ordered_list_attr_group); in hp_populate_ordered_list_package_data() 396 struct kobject *attr_name_kobj) in hp_populate_ordered_list_buffer_data() argument 401 ordered_list_data->attr_name_kobj = attr_name_kobj; in hp_populate_ordered_list_buffer_data() 412 attr_name_kobj->name, in hp_populate_ordered_list_buffer_data() 416 return sysfs_create_group(attr_name_kobj, &ordered_list_attr_group); in hp_populate_ordered_list_buffer_data() 430 struct kobject *attr_name_kobj = in hp_exit_ordered_list_attributes() local 431 bioscfg_drv.ordered_list_data[instance_id].attr_name_kobj; in hp_exit_ordered_list_attributes() [all …]
|
H A D | surestart-attributes.c | 128 int hp_populate_sure_start_data(struct kobject *attr_name_kobj) in hp_populate_sure_start_data() argument 130 bioscfg_drv.sure_start_attr_kobj = attr_name_kobj; in hp_populate_sure_start_data() 131 return sysfs_create_group(attr_name_kobj, &sure_start_attr_group); in hp_populate_sure_start_data()
|
H A D | spmobj-attributes.c | 358 if (bioscfg_drv.spm_data.attr_name_kobj) in hp_exit_secure_platform_attributes() 359 sysfs_remove_group(bioscfg_drv.spm_data.attr_name_kobj, in hp_exit_secure_platform_attributes() 363 int hp_populate_secure_platform_data(struct kobject *attr_name_kobj) in hp_populate_secure_platform_data() argument 366 bioscfg_drv.spm_data.attr_name_kobj = attr_name_kobj; in hp_populate_secure_platform_data() 380 return sysfs_create_group(attr_name_kobj, &secure_platform_attr_group); in hp_populate_secure_platform_data()
|
/openbmc/linux/drivers/platform/x86/dell/dell-wmi-sysman/ |
H A D | dell-wmi-sysman.h | 27 struct kobject *attr_name_kobj; member 38 struct kobject *attr_name_kobj; member 50 struct kobject *attr_name_kobj; member 61 struct kobject *attr_name_kobj; member 163 struct kobject *attr_name_kobj, u32 enum_property_count); 168 struct kobject *attr_name_kobj); 172 int populate_str_data(union acpi_object *str_obj, int instance_id, struct kobject *attr_name_kobj); 176 int populate_po_data(union acpi_object *po_obj, int instance_id, struct kobject *attr_name_kobj);
|
H A D | sysman.c | 393 struct kobject *attr_name_kobj; //individual attribute names in init_bios_attributes() local 464 attr_name_kobj = kzalloc(sizeof(*attr_name_kobj), GFP_KERNEL); in init_bios_attributes() 465 if (!attr_name_kobj) { in init_bios_attributes() 470 attr_name_kobj->kset = tmp_set; in init_bios_attributes() 472 retval = kobject_init_and_add(attr_name_kobj, &attr_name_ktype, NULL, "%s", in init_bios_attributes() 475 kobject_put(attr_name_kobj); in init_bios_attributes() 482 retval = populate_enum_data(elements, instance_id, attr_name_kobj, in init_bios_attributes() 486 retval = populate_int_data(elements, instance_id, attr_name_kobj); in init_bios_attributes() 489 retval = populate_str_data(elements, instance_id, attr_name_kobj); in init_bios_attributes() 492 retval = populate_po_data(elements, instance_id, attr_name_kobj); in init_bios_attributes()
|
H A D | string-attributes.c | 125 int populate_str_data(union acpi_object *str_obj, int instance_id, struct kobject *attr_name_kobj) in populate_str_data() argument 127 wmi_priv.str_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_str_data() 155 return sysfs_create_group(attr_name_kobj, &str_attr_group); in populate_str_data() 168 if (wmi_priv.str_data[instance_id].attr_name_kobj) in exit_str_attributes() 169 sysfs_remove_group(wmi_priv.str_data[instance_id].attr_name_kobj, in exit_str_attributes()
|
H A D | passobj-attributes.c | 159 int populate_po_data(union acpi_object *po_obj, int instance_id, struct kobject *attr_name_kobj) in populate_po_data() argument 161 wmi_priv.po_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_po_data() 175 return sysfs_create_group(attr_name_kobj, &po_attr_group); in populate_po_data() 188 if (wmi_priv.po_data[instance_id].attr_name_kobj) in exit_po_attributes() 189 sysfs_remove_group(wmi_priv.po_data[instance_id].attr_name_kobj, in exit_po_attributes()
|
H A D | int-attributes.c | 141 struct kobject *attr_name_kobj) in populate_int_data() argument 143 wmi_priv.integer_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_int_data() 177 return sysfs_create_group(attr_name_kobj, &integer_attr_group); in populate_int_data() 190 if (wmi_priv.integer_data[instance_id].attr_name_kobj) in exit_int_attributes() 191 sysfs_remove_group(wmi_priv.integer_data[instance_id].attr_name_kobj, in exit_int_attributes()
|
H A D | enum-attributes.c | 138 struct kobject *attr_name_kobj, u32 enum_property_count) in populate_enum_data() argument 142 wmi_priv.enumeration_data[instance_id].attr_name_kobj = attr_name_kobj; in populate_enum_data() 200 return sysfs_create_group(attr_name_kobj, &enumeration_attr_group); in populate_enum_data() 213 if (wmi_priv.enumeration_data[instance_id].attr_name_kobj) in exit_enum_attributes() 214 sysfs_remove_group(wmi_priv.enumeration_data[instance_id].attr_name_kobj, in exit_enum_attributes()
|