Lines Matching refs:attribute
39 struct attribute attr;
54 struct attribute *attr, in foo_attr_show()
57 const struct foo_attribute *attribute; in foo_attr_show() local
60 attribute = to_foo_attr(attr); in foo_attr_show()
63 if (!attribute->show) in foo_attr_show()
66 return attribute->show(foo, attribute, buf); in foo_attr_show()
74 struct attribute *attr, in foo_attr_store()
77 const struct foo_attribute *attribute; in foo_attr_store() local
80 attribute = to_foo_attr(attr); in foo_attr_store()
83 if (!attribute->store) in foo_attr_store()
86 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
176 static const struct attribute *const foo_default_attrs[] = {
184 const struct attribute *attr, in foo_default_attrs_is_visible()