Lines Matching refs:kobj
61 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\
65 ssize_t ret = fn ## _to_text(&out, kobj, attr); \
81 static ssize_t fn ## _to_text(struct printbuf *out, struct kobject *kobj,\
88 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\
91 return bch2_err_class(fn##_store_inner(kobj, attr, buf, size)); \
94 static ssize_t fn ## _store_inner(struct kobject *kobj, struct attribute *attr,\
308 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj); in SHOW()
396 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj); in STORE()
519 struct bch_fs *c = container_of(kobj, struct bch_fs, counters_kobj); in SHOW()
566 struct bch_fs *c = container_of(kobj, struct bch_fs, internal); in SHOW()
568 return bch2_fs_to_text(out, &c->kobj, attr); in SHOW()
573 struct bch_fs *c = container_of(kobj, struct bch_fs, internal); in STORE()
575 return bch2_fs_store(&c->kobj, attr, buf, size); in STORE()
702 struct bch_fs *c = container_of(kobj, struct bch_fs, opts_dir); in SHOW()
712 struct bch_fs *c = container_of(kobj, struct bch_fs, opts_dir); in STORE()
723 int bch2_opts_create_sysfs_files(struct kobject *kobj, unsigned type) in bch2_opts_create_sysfs_files() argument
733 int ret = sysfs_create_file(kobj, &i->attr); in bch2_opts_create_sysfs_files()
745 struct bch_fs *c = container_of(kobj, struct bch_fs, time_stats); in SHOW()
758 struct bch_fs *c = container_of(kobj, struct bch_fs, time_stats); in STORE()
799 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in SHOW()
858 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in STORE()