Lines Matching defs:buf
40 struct device_attribute *attr, char *buf)
44 return nd_size_select_show(nd_btt->lbasize, btt_lbasize_supported, buf);
48 struct device_attribute *attr, const char *buf, size_t len)
55 rc = nd_size_select_store(dev, buf, &nd_btt->lbasize,
57 dev_dbg(dev, "result: %zd wrote: %s%s", rc, buf,
58 buf[len - 1] == '\n' ? "" : "\n");
67 struct device_attribute *attr, char *buf)
72 return sprintf(buf, "%pUb\n", nd_btt->uuid);
73 return sprintf(buf, "\n");
77 struct device_attribute *attr, const char *buf, size_t len)
83 rc = nd_uuid_store(dev, &nd_btt->uuid, buf, len);
84 dev_dbg(dev, "result: %zd wrote: %s%s", rc, buf,
85 buf[len - 1] == '\n' ? "" : "\n");
93 struct device_attribute *attr, char *buf)
99 rc = sprintf(buf, "%s\n", nd_btt->ndns
106 struct device_attribute *attr, const char *buf, size_t len)
113 rc = nd_namespace_store(dev, &nd_btt->ndns, buf, len);
114 dev_dbg(dev, "result: %zd wrote: %s%s", rc, buf,
115 buf[len - 1] == '\n' ? "" : "\n");
124 struct device_attribute *attr, char *buf)
131 rc = sprintf(buf, "%llu\n", nd_btt->size);
143 struct device_attribute *attr, char *buf)
145 return sprintf(buf, "Y\n");