Lines Matching defs:buf
20 static ssize_t dio_show_id(struct device *dev, struct device_attribute *attr, char *buf)
25 return sprintf(buf, "0x%02x\n", (d->id & 0xff));
29 static ssize_t dio_show_ipl(struct device *dev, struct device_attribute *attr, char *buf)
34 return sprintf(buf, "0x%02x\n", d->ipl);
38 static ssize_t dio_show_secid(struct device *dev, struct device_attribute *attr, char *buf)
43 return sprintf(buf, "0x%02x\n", ((d->id >> 8)& 0xff));
47 static ssize_t dio_show_name(struct device *dev, struct device_attribute *attr, char *buf)
52 return sprintf(buf, "%s\n", d->name);
56 static ssize_t dio_show_resource(struct device *dev, struct device_attribute *attr, char *buf)
60 return sprintf(buf, "0x%08lx 0x%08lx 0x%08lx\n",