Home
last modified time | relevance | path

Searched refs:kobj_attr (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-sysparam.c26 struct kobj_attribute kobj_attr; member
102 struct kobj_attribute *kobj_attr, char *buf) in sys_param_show() argument
105 kobj_attr); in sys_param_show()
126 kobj_attr); in sys_param_store()
240 sysfs_attr_init(&attr[i].kobj_attr.attr); in opal_sys_param_init()
244 &attr[i].kobj_attr.attr.name)) in opal_sys_param_init()
250 attr[i].kobj_attr.attr.mode = 0444; in opal_sys_param_init()
253 attr[i].kobj_attr.attr.mode = 0200; in opal_sys_param_init()
256 attr[i].kobj_attr.attr.mode = 0644; in opal_sys_param_init()
262 attr[i].kobj_attr.show = sys_param_show; in opal_sys_param_init()
[all …]
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dpapr_platform_attributes.c58 struct kobj_attribute kobj_attr; member
143 struct kobj_attribute *kobj_attr, in desc_show() argument
147 kobj_attr); in desc_show()
162 struct kobj_attribute *kobj_attr, in val_show() argument
166 kobj_attr); in val_show()
182 struct kobj_attribute *kobj_attr, in val_desc_show() argument
186 kobj_attr); in val_desc_show()
210 sysfs_attr_init(&attr->kobj_attr.attr); in add_attr()
212 attr->kobj_attr.attr.mode = 0444; in add_attr()
213 attr->kobj_attr.show = ops_info[index].show; in add_attr()
[all …]
/openbmc/linux/fs/btrfs/
H A Dsysfs.c50 struct kobj_attribute kobj_attr; member
85 .kobj_attr = __INIT_KOBJ_ATTR(_name, S_IRUGO, \
92 (&btrfs_attr_features_##_name.kobj_attr.attr)
235 val ? "En" : "Dis", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
240 val ? "Setting" : "Clearing", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
1386 attrs[0] = &fa->kobj_attr.attr; in addrm_unknown_feature_attrs()
1509 name = btrfs_feature_attrs[set][i].kobj_attr.attr.name; in btrfs_printable_features()
1534 fa->kobj_attr.attr.name = sfa->kobj_attr.attr.name; in init_feature_attrs()
1542 if (fa->kobj_attr.attr.name) in init_feature_attrs()
1548 fa->kobj_attr.attr.name = name; in init_feature_attrs()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dcacheinfo.c573 struct kobj_attribute *kobj_attr; in cache_index_show() local
575 kobj_attr = container_of(attr, struct kobj_attribute, attr); in cache_index_show()
577 return kobj_attr->show(k, kobj_attr, buf); in cache_index_show()
/openbmc/linux/drivers/soc/hisilicon/
H A Dkunpeng_hccs.c741 struct kobj_attribute *kobj_attr; in hccs_show() local
743 kobj_attr = container_of(attr, struct kobj_attribute, attr); in hccs_show()
745 return kobj_attr->show(k, kobj_attr, buf); in hccs_show()