Lines Matching refs:foo_attribute
40 struct foo_attribute { struct
42 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); argument
43 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); argument
45 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
58 struct foo_attribute *attribute; in foo_attr_show()
78 struct foo_attribute *attribute; in foo_attr_store()
114 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_show()
120 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store()
133 static struct foo_attribute foo_attribute = variable
140 static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_show()
152 static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_store()
168 static struct foo_attribute baz_attribute =
170 static struct foo_attribute bar_attribute =
178 &foo_attribute.attr,