Lines Matching defs:buf
20 field##_show(struct device *dev, struct device_attribute *attr, char *buf) \
24 return sprintf(buf, format_string, rdev->field); \
37 static ssize_t routes_show(struct device *dev, struct device_attribute *attr, char *buf)
40 char *str = buf;
52 return (str - buf);
57 struct device_attribute *attr, char *buf)
61 return sprintf(buf, "%s\n",
67 struct device_attribute *attr, char *buf)
70 char *str = buf;
83 return str - buf;
88 struct device_attribute *attr, char *buf)
92 return sprintf(buf, "rapidio:v%04Xd%04Xav%04Xad%04X\n",
118 char *buf, loff_t off, size_t count)
123 u8 *data = (u8 *) buf;
189 char *buf, loff_t off, size_t count)
194 u8 *data = (u8 *) buf;
289 static ssize_t scan_store(const struct bus_type *bus, const char *buf, size_t count)
294 if (kstrtol(buf, 0, &val) < 0)
330 char *buf)
335 return sprintf(buf, "0x%04x\n", mport->host_deviceid);
342 char *buf)
347 return sprintf(buf, "%u\n", mport->sys_size);