Lines Matching refs:kobj
293 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
309 static ssize_t enabled_store(struct kobject *kobj, in enabled_store() argument
337 ssize_t single_hugepage_flag_show(struct kobject *kobj, in single_hugepage_flag_show() argument
345 ssize_t single_hugepage_flag_store(struct kobject *kobj, in single_hugepage_flag_store() argument
367 static ssize_t defrag_show(struct kobject *kobj, in defrag_show() argument
390 static ssize_t defrag_store(struct kobject *kobj, in defrag_store() argument
426 static ssize_t use_zero_page_show(struct kobject *kobj, in use_zero_page_show() argument
429 return single_hugepage_flag_show(kobj, attr, buf, in use_zero_page_show()
432 static ssize_t use_zero_page_store(struct kobject *kobj, in use_zero_page_store() argument
435 return single_hugepage_flag_store(kobj, attr, buf, count, in use_zero_page_store()
440 static ssize_t hpage_pmd_size_show(struct kobject *kobj, in hpage_pmd_size_show() argument
448 static ssize_t split_underused_thp_show(struct kobject *kobj, in split_underused_thp_show() argument
454 static ssize_t split_underused_thp_store(struct kobject *kobj, in split_underused_thp_store() argument
486 static void thpsize_release(struct kobject *kobj);
490 static ssize_t anon_enabled_show(struct kobject *kobj, in anon_enabled_show() argument
493 int order = to_thpsize(kobj)->order; in anon_enabled_show()
508 static ssize_t anon_enabled_store(struct kobject *kobj, in anon_enabled_store() argument
512 int order = to_thpsize(kobj)->order; in anon_enabled_store()
605 static ssize_t _name##_show(struct kobject *kobj, \
608 int order = to_thpsize(kobj)->order; \
690 static int sysfs_add_group(struct kobject *kobj, in sysfs_add_group() argument
701 ret = sysfs_merge_group(kobj, grp); in sysfs_add_group()
703 ret = sysfs_create_group(kobj, grp); in sysfs_add_group()
720 ret = kobject_init_and_add(&thpsize->kobj, &thpsize_ktype, parent, in thpsize_create()
728 ret = sysfs_add_group(&thpsize->kobj, &any_ctrl_attr_grp); in thpsize_create()
732 ret = sysfs_add_group(&thpsize->kobj, &any_stats_attr_grp); in thpsize_create()
737 ret = sysfs_add_group(&thpsize->kobj, &anon_ctrl_attr_grp); in thpsize_create()
741 ret = sysfs_add_group(&thpsize->kobj, &anon_stats_attr_grp); in thpsize_create()
747 ret = sysfs_add_group(&thpsize->kobj, &file_ctrl_attr_grp); in thpsize_create()
751 ret = sysfs_add_group(&thpsize->kobj, &file_stats_attr_grp); in thpsize_create()
758 kobject_put(&thpsize->kobj); in thpsize_create()
763 static void thpsize_release(struct kobject *kobj) in thpsize_release() argument
765 kfree(to_thpsize(kobj)); in thpsize_release()
832 kobject_put(&thpsize->kobj); in hugepage_exit_sysfs()