Lines Matching refs:attr
39 struct attribute attr; member
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
43 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
53 struct attribute *attr, in foo_attr_show() argument
59 attribute = to_foo_attr(attr); in foo_attr_show()
73 struct attribute *attr, in foo_attr_store() argument
79 attribute = to_foo_attr(attr); in foo_attr_store()
112 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_show() argument
118 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store() argument
138 static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_show() argument
143 if (strcmp(attr->attr.name, "baz") == 0) in b_show()
150 static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_store() argument
159 if (strcmp(attr->attr.name, "baz") == 0) in b_store()
176 &foo_attribute.attr,
177 &baz_attribute.attr,
178 &bar_attribute.attr,