Lines Matching refs:attribute
41 struct attribute attr;
55 struct attribute *attr, in foo_attr_show()
58 struct foo_attribute *attribute; in foo_attr_show() local
61 attribute = to_foo_attr(attr); in foo_attr_show()
64 if (!attribute->show) in foo_attr_show()
67 return attribute->show(foo, attribute, buf); in foo_attr_show()
75 struct attribute *attr, in foo_attr_store()
78 struct foo_attribute *attribute; in foo_attr_store() local
81 attribute = to_foo_attr(attr); in foo_attr_store()
84 if (!attribute->store) in foo_attr_store()
87 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
177 static struct attribute *foo_default_attrs[] = {