Lines Matching refs:buf
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);
54 char *buf) in foo_attr_show() argument
65 return attribute->show(foo, attribute, buf); in foo_attr_show()
74 const char *buf, size_t len) in foo_attr_store() argument
85 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
113 char *buf) in foo_show() argument
115 return sysfs_emit(buf, "%d\n", foo_obj->foo); in foo_show()
119 const char *buf, size_t count) in foo_store() argument
123 ret = kstrtoint(buf, 10, &foo_obj->foo); in foo_store()
139 char *buf) in b_show() argument
147 return sysfs_emit(buf, "%d\n", var); in b_show()
151 const char *buf, size_t count) in b_store() argument
155 ret = kstrtoint(buf, 10, &var); in b_store()