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()
918 static ssize_t display_name_show(struct kobject *kobj, struct kobj_attribute *attr, in display_name_show() argument
921 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in display_name_show()
926 static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in current_value_show() argument
928 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_show()
951 static ssize_t possible_values_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in possible_values_show() argument
953 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in possible_values_show()
958 static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr, in type_show() argument
961 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in type_show()
972 static ssize_t current_value_store(struct kobject *kobj, in current_value_store() argument
976 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_store()
1049 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in current_value_store()
1067 static umode_t attr_is_visible(struct kobject *kobj, in attr_is_visible() argument
1070 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in attr_is_visible()
1092 static ssize_t tlmi_attr_show(struct kobject *kobj, struct attribute *attr, in tlmi_attr_show() argument
1099 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
1103 static ssize_t tlmi_attr_store(struct kobject *kobj, struct attribute *attr, in tlmi_attr_store() argument
1110 return kattr->store(kobj, kattr, buf, count); in tlmi_attr_store()
1119 static void tlmi_attr_setting_release(struct kobject *kobj) in tlmi_attr_setting_release() argument
1121 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in tlmi_attr_setting_release()
1127 static void tlmi_pwd_setting_release(struct kobject *kobj) in tlmi_pwd_setting_release() argument
1129 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in tlmi_pwd_setting_release()
1144 static ssize_t pending_reboot_show(struct kobject *kobj, struct kobj_attribute *attr, in pending_reboot_show() argument
1153 static ssize_t debug_cmd_store(struct kobject *kobj, struct kobj_attribute *attr, in debug_cmd_store() argument
1197 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in debug_cmd_store()
1216 sysfs_remove_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_release_attr()
1217 kobject_put(&tlmi_priv.setting[i]->kobj); in tlmi_release_attr()
1220 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_release_attr()
1222 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_release_attr()
1231 sysfs_remove_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_release_attr()
1232 kobject_put(&tlmi_priv.pwd_admin->kobj); in tlmi_release_attr()
1233 sysfs_remove_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_release_attr()
1234 kobject_put(&tlmi_priv.pwd_power->kobj); in tlmi_release_attr()
1237 sysfs_remove_group(&tlmi_priv.pwd_system->kobj, &auth_attr_group); in tlmi_release_attr()
1238 kobject_put(&tlmi_priv.pwd_system->kobj); in tlmi_release_attr()
1239 sysfs_remove_group(&tlmi_priv.pwd_hdd->kobj, &auth_attr_group); in tlmi_release_attr()
1240 kobject_put(&tlmi_priv.pwd_hdd->kobj); in tlmi_release_attr()
1241 sysfs_remove_group(&tlmi_priv.pwd_nvme->kobj, &auth_attr_group); in tlmi_release_attr()
1242 kobject_put(&tlmi_priv.pwd_nvme->kobj); in tlmi_release_attr()
1282 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
1303 tlmi_priv.setting[i]->kobj.kset = tlmi_priv.attribute_kset; in tlmi_sysfs_init()
1304 ret = kobject_add(&tlmi_priv.setting[i]->kobj, NULL, in tlmi_sysfs_init()
1309 ret = sysfs_create_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_sysfs_init()
1314 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_sysfs_init()
1319 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_sysfs_init()
1326 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
1331 tlmi_priv.pwd_admin->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1332 ret = kobject_add(&tlmi_priv.pwd_admin->kobj, NULL, "%s", "Admin"); in tlmi_sysfs_init()
1336 ret = sysfs_create_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_sysfs_init()
1340 tlmi_priv.pwd_power->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1341 ret = kobject_add(&tlmi_priv.pwd_power->kobj, NULL, "%s", "Power-on"); in tlmi_sysfs_init()
1345 ret = sysfs_create_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_sysfs_init()
1350 tlmi_priv.pwd_system->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1351 ret = kobject_add(&tlmi_priv.pwd_system->kobj, NULL, "%s", "System"); in tlmi_sysfs_init()
1355 ret = sysfs_create_group(&tlmi_priv.pwd_system->kobj, &auth_attr_group); in tlmi_sysfs_init()
1359 tlmi_priv.pwd_hdd->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1360 ret = kobject_add(&tlmi_priv.pwd_hdd->kobj, NULL, "%s", "HDD"); in tlmi_sysfs_init()
1364 ret = sysfs_create_group(&tlmi_priv.pwd_hdd->kobj, &auth_attr_group); in tlmi_sysfs_init()
1368 tlmi_priv.pwd_nvme->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
1369 ret = kobject_add(&tlmi_priv.pwd_nvme->kobj, NULL, "%s", "NVMe"); in tlmi_sysfs_init()
1373 ret = sysfs_create_group(&tlmi_priv.pwd_nvme->kobj, &auth_attr_group); in tlmi_sysfs_init()
1407 kobject_init(&new_pwd->kobj, &tlmi_pwd_setting_ktype); in tlmi_create_auth()
1513 kobject_init(&setting->kobj, &tlmi_attr_setting_ktype); in tlmi_analyze()