Lines Matching refs:kobj
178 #define to_tlmi_pwd_setting(kobj) container_of(kobj, struct tlmi_pwd_setting, kobj) argument
179 #define to_tlmi_attr_setting(kobj) container_of(kobj, struct tlmi_attr_setting, kobj) argument
390 static ssize_t is_enabled_show(struct kobject *kobj, struct kobj_attribute *attr, in is_enabled_show() argument
393 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in is_enabled_show()
400 static ssize_t current_password_store(struct kobject *kobj, in current_password_store() argument
404 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in current_password_store()
420 static ssize_t new_password_store(struct kobject *kobj, in new_password_store() argument
424 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in new_password_store()
508 static ssize_t min_password_length_show(struct kobject *kobj, struct kobj_attribute *attr, in min_password_length_show() argument
511 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in min_password_length_show()
518 static ssize_t max_password_length_show(struct kobject *kobj, struct kobj_attribute *attr, in max_password_length_show() argument
521 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in max_password_length_show()
527 static ssize_t mechanism_show(struct kobject *kobj, struct kobj_attribute *attr, in mechanism_show() argument
534 static ssize_t encoding_show(struct kobject *kobj, struct kobj_attribute *attr, in encoding_show() argument
537 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in encoding_show()
542 static ssize_t encoding_store(struct kobject *kobj, in encoding_store() argument
546 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in encoding_store()
560 static ssize_t kbdlang_show(struct kobject *kobj, struct kobj_attribute *attr, in kbdlang_show() argument
563 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in kbdlang_show()
568 static ssize_t kbdlang_store(struct kobject *kobj, in kbdlang_store() argument
572 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in kbdlang_store()
587 static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr, in role_show() argument
590 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in role_show()
596 static ssize_t index_show(struct kobject *kobj, struct kobj_attribute *attr, in index_show() argument
599 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in index_show()
604 static ssize_t index_store(struct kobject *kobj, in index_store() argument
608 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in index_store()
624 static ssize_t level_show(struct kobject *kobj, struct kobj_attribute *attr, in level_show() argument
627 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in level_show()
632 static ssize_t level_store(struct kobject *kobj, in level_store() argument
636 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in level_store()
675 static ssize_t certificate_thumbprint_show(struct kobject *kobj, struct kobj_attribute *attr, in certificate_thumbprint_show() argument
678 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in certificate_thumbprint_show()
692 static ssize_t cert_to_password_store(struct kobject *kobj, in cert_to_password_store() argument
696 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in cert_to_password_store()
734 static ssize_t certificate_store(struct kobject *kobj, in certificate_store() argument
738 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in certificate_store()
807 static ssize_t signature_store(struct kobject *kobj, in signature_store() argument
811 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in signature_store()
836 static ssize_t save_signature_store(struct kobject *kobj, in save_signature_store() argument
840 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in save_signature_store()
865 static umode_t auth_attr_is_visible(struct kobject *kobj, in auth_attr_is_visible() argument
868 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in auth_attr_is_visible()
922 static ssize_t display_name_show(struct kobject *kobj, struct kobj_attribute *attr, in display_name_show() argument
925 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in display_name_show()
930 static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in current_value_show() argument
932 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_show()
955 static ssize_t possible_values_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in possible_values_show() argument
957 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in possible_values_show()
962 static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr, in type_show() argument
965 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in type_show()
976 static ssize_t current_value_store(struct kobject *kobj, in current_value_store() argument
980 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_store()
1079 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in current_value_store()
1097 static umode_t attr_is_visible(struct kobject *kobj, in attr_is_visible() argument
1100 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in attr_is_visible()
1122 static void tlmi_attr_setting_release(struct kobject *kobj) in tlmi_attr_setting_release() argument
1124 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in tlmi_attr_setting_release()
1130 static void tlmi_pwd_setting_release(struct kobject *kobj) in tlmi_pwd_setting_release() argument
1132 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in tlmi_pwd_setting_release()
1147 static ssize_t pending_reboot_show(struct kobject *kobj, struct kobj_attribute *attr, in pending_reboot_show() argument
1156 static ssize_t debug_cmd_store(struct kobject *kobj, struct kobj_attribute *attr, in debug_cmd_store() argument
1200 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in debug_cmd_store()
1219 sysfs_remove_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_release_attr()
1220 kobject_put(&tlmi_priv.setting[i]->kobj); in tlmi_release_attr()
1223 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_release_attr()
1225 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_release_attr()
1234 sysfs_remove_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_release_attr()
1235 kobject_put(&tlmi_priv.pwd_admin->kobj); in tlmi_release_attr()
1236 sysfs_remove_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_release_attr()
1237 kobject_put(&tlmi_priv.pwd_power->kobj); in tlmi_release_attr()
1240 sysfs_remove_group(&tlmi_priv.pwd_system->kobj, &auth_attr_group); in tlmi_release_attr()
1241 kobject_put(&tlmi_priv.pwd_system->kobj); in tlmi_release_attr()
1242 sysfs_remove_group(&tlmi_priv.pwd_hdd->kobj, &auth_attr_group); in tlmi_release_attr()
1243 kobject_put(&tlmi_priv.pwd_hdd->kobj); in tlmi_release_attr()
1244 sysfs_remove_group(&tlmi_priv.pwd_nvme->kobj, &auth_attr_group); in tlmi_release_attr()
1245 kobject_put(&tlmi_priv.pwd_nvme->kobj); in tlmi_release_attr()
1285 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
1306 tlmi_priv.setting[i]->kobj.kset = tlmi_priv.attribute_kset; in tlmi_sysfs_init()
1307 ret = kobject_add(&tlmi_priv.setting[i]->kobj, NULL, in tlmi_sysfs_init()
1312 ret = sysfs_create_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_sysfs_init()
1317 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_sysfs_init()
1322 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_sysfs_init()
1329 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
1334 tlmi_priv.pwd_admin->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1335 ret = kobject_add(&tlmi_priv.pwd_admin->kobj, NULL, "%s", "Admin"); in tlmi_sysfs_init()
1339 ret = sysfs_create_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_sysfs_init()
1343 tlmi_priv.pwd_power->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1344 ret = kobject_add(&tlmi_priv.pwd_power->kobj, NULL, "%s", "Power-on"); in tlmi_sysfs_init()
1348 ret = sysfs_create_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_sysfs_init()
1353 tlmi_priv.pwd_system->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1354 ret = kobject_add(&tlmi_priv.pwd_system->kobj, NULL, "%s", "System"); in tlmi_sysfs_init()
1358 ret = sysfs_create_group(&tlmi_priv.pwd_system->kobj, &auth_attr_group); in tlmi_sysfs_init()
1362 tlmi_priv.pwd_hdd->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1363 ret = kobject_add(&tlmi_priv.pwd_hdd->kobj, NULL, "%s", "HDD"); in tlmi_sysfs_init()
1367 ret = sysfs_create_group(&tlmi_priv.pwd_hdd->kobj, &auth_attr_group); in tlmi_sysfs_init()
1371 tlmi_priv.pwd_nvme->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1372 ret = kobject_add(&tlmi_priv.pwd_nvme->kobj, NULL, "%s", "NVMe"); in tlmi_sysfs_init()
1376 ret = sysfs_create_group(&tlmi_priv.pwd_nvme->kobj, &auth_attr_group); in tlmi_sysfs_init()
1410 kobject_init(&new_pwd->kobj, &tlmi_pwd_setting_ktype); in tlmi_create_auth()
1515 kobject_init(&setting->kobj, &tlmi_attr_setting_ktype); in tlmi_analyze()