Lines Matching defs:buf
328 static ssize_t __disk_events_show(unsigned int events, char *buf)
336 pos += sprintf(buf + pos, "%s%s",
341 pos += sprintf(buf + pos, "\n");
346 struct device_attribute *attr, char *buf)
352 return __disk_events_show(disk->events, buf);
356 struct device_attribute *attr, char *buf)
363 char *buf)
368 return sprintf(buf, "-1\n");
369 return sprintf(buf, "%ld\n", disk->ev->poll_msecs);
374 const char *buf, size_t count)
379 if (!count || !sscanf(buf, "%ld", &intv))