Lines Matching refs:buf
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);
56 char *buf) in foo_attr_show() argument
67 return attribute->show(foo, attribute, buf); in foo_attr_show()
76 const char *buf, size_t len) in foo_attr_store() argument
87 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
115 char *buf) in foo_show() argument
117 return sprintf(buf, "%d\n", foo_obj->foo); in foo_show()
121 const char *buf, size_t count) in foo_store() argument
123 sscanf(buf, "%du", &foo_obj->foo); in foo_store()
136 char *buf) in b_show() argument
144 return sprintf(buf, "%d\n", var); in b_show()
148 const char *buf, size_t count) in b_store() argument
152 sscanf(buf, "%du", &var); in b_store()