Lines Matching refs:kobj
133 #define to_tlmi_pwd_setting(kobj) container_of(kobj, struct tlmi_pwd_setting, kobj) argument
134 #define to_tlmi_attr_setting(kobj) container_of(kobj, struct tlmi_attr_setting, kobj) argument
311 static ssize_t is_enabled_show(struct kobject *kobj, struct kobj_attribute *attr, in is_enabled_show() argument
314 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in is_enabled_show()
321 static ssize_t current_password_store(struct kobject *kobj, in current_password_store() argument
325 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in current_password_store()
343 static ssize_t new_password_store(struct kobject *kobj, in new_password_store() argument
347 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in new_password_store()
390 static ssize_t min_password_length_show(struct kobject *kobj, struct kobj_attribute *attr, in min_password_length_show() argument
393 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in min_password_length_show()
400 static ssize_t max_password_length_show(struct kobject *kobj, struct kobj_attribute *attr, in max_password_length_show() argument
403 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in max_password_length_show()
409 static ssize_t mechanism_show(struct kobject *kobj, struct kobj_attribute *attr, in mechanism_show() argument
416 static ssize_t encoding_show(struct kobject *kobj, struct kobj_attribute *attr, in encoding_show() argument
419 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in encoding_show()
424 static ssize_t encoding_store(struct kobject *kobj, in encoding_store() argument
428 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in encoding_store()
442 static ssize_t kbdlang_show(struct kobject *kobj, struct kobj_attribute *attr, in kbdlang_show() argument
445 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in kbdlang_show()
450 static ssize_t kbdlang_store(struct kobject *kobj, in kbdlang_store() argument
454 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in kbdlang_store()
469 static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr, in role_show() argument
472 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in role_show()
496 static ssize_t display_name_show(struct kobject *kobj, struct kobj_attribute *attr, in display_name_show() argument
499 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in display_name_show()
504 static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in current_value_show() argument
506 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_show()
524 static ssize_t possible_values_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in possible_values_show() argument
526 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in possible_values_show()
534 static ssize_t current_value_store(struct kobject *kobj, in current_value_store() argument
538 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in current_value_store()
589 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in current_value_store()
615 static ssize_t tlmi_attr_show(struct kobject *kobj, struct attribute *attr, in tlmi_attr_show() argument
622 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
626 static ssize_t tlmi_attr_store(struct kobject *kobj, struct attribute *attr, in tlmi_attr_store() argument
633 return kattr->store(kobj, kattr, buf, count); in tlmi_attr_store()
642 static void tlmi_attr_setting_release(struct kobject *kobj) in tlmi_attr_setting_release() argument
644 struct tlmi_attr_setting *setting = to_tlmi_attr_setting(kobj); in tlmi_attr_setting_release()
650 static void tlmi_pwd_setting_release(struct kobject *kobj) in tlmi_pwd_setting_release() argument
652 struct tlmi_pwd_setting *setting = to_tlmi_pwd_setting(kobj); in tlmi_pwd_setting_release()
667 static ssize_t pending_reboot_show(struct kobject *kobj, struct kobj_attribute *attr, in pending_reboot_show() argument
676 static ssize_t debug_cmd_store(struct kobject *kobj, struct kobj_attribute *attr, in debug_cmd_store() argument
722 kobject_uevent(&tlmi_priv.class_dev->kobj, KOBJ_CHANGE); in debug_cmd_store()
741 sysfs_remove_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_release_attr()
742 kobject_put(&tlmi_priv.setting[i]->kobj); in tlmi_release_attr()
745 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_release_attr()
747 sysfs_remove_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_release_attr()
751 sysfs_remove_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_release_attr()
752 kobject_put(&tlmi_priv.pwd_admin->kobj); in tlmi_release_attr()
753 sysfs_remove_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_release_attr()
754 kobject_put(&tlmi_priv.pwd_power->kobj); in tlmi_release_attr()
774 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
797 tlmi_priv.setting[i]->kobj.kset = tlmi_priv.attribute_kset; in tlmi_sysfs_init()
798 ret = kobject_add(&tlmi_priv.setting[i]->kobj, NULL, in tlmi_sysfs_init()
803 ret = sysfs_create_group(&tlmi_priv.setting[i]->kobj, &tlmi_attr_group); in tlmi_sysfs_init()
808 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &pending_reboot.attr); in tlmi_sysfs_init()
813 ret = sysfs_create_file(&tlmi_priv.attribute_kset->kobj, &debug_cmd.attr); in tlmi_sysfs_init()
819 &tlmi_priv.class_dev->kobj); in tlmi_sysfs_init()
824 tlmi_priv.pwd_admin->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
825 ret = kobject_add(&tlmi_priv.pwd_admin->kobj, NULL, "%s", "Admin"); in tlmi_sysfs_init()
829 ret = sysfs_create_group(&tlmi_priv.pwd_admin->kobj, &auth_attr_group); in tlmi_sysfs_init()
833 tlmi_priv.pwd_power->kobj.kset = tlmi_priv.authentication_kset; in tlmi_sysfs_init()
834 ret = kobject_add(&tlmi_priv.pwd_power->kobj, NULL, "%s", "System"); in tlmi_sysfs_init()
838 ret = sysfs_create_group(&tlmi_priv.pwd_power->kobj, &auth_attr_group); in tlmi_sysfs_init()
917 kobject_init(&setting->kobj, &tlmi_attr_setting_ktype); in tlmi_analyze()
944 kobject_init(&tlmi_priv.pwd_admin->kobj, &tlmi_pwd_setting_ktype); in tlmi_analyze()
961 kobject_init(&tlmi_priv.pwd_power->kobj, &tlmi_pwd_setting_ktype); in tlmi_analyze()