Lines Matching refs:attr
41 struct attribute attr; member
42 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
43 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
45 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
55 struct attribute *attr, in foo_attr_show() argument
61 attribute = to_foo_attr(attr); in foo_attr_show()
75 struct attribute *attr, in foo_attr_store() argument
81 attribute = to_foo_attr(attr); in foo_attr_store()
114 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_show() argument
120 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store() argument
140 static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_show() argument
145 if (strcmp(attr->attr.name, "baz") == 0) in b_show()
152 static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_store() argument
161 if (strcmp(attr->attr.name, "baz") == 0) in b_store()
178 &foo_attribute.attr,
179 &baz_attribute.attr,
180 &bar_attribute.attr,