Lines Matching defs:buf
28 struct device_attribute *attr, char *buf)
33 return sysfs_emit(buf, "%d\n", ofbi->rotation_type);
38 const char *buf, size_t count)
46 r = kstrtoint(buf, 0, &rot_type);
82 struct device_attribute *attr, char *buf)
87 return sysfs_emit(buf, "%d\n", ofbi->mirror);
92 const char *buf, size_t count)
100 r = kstrtobool(buf, &mirror);
132 struct device_attribute *attr, char *buf)
151 l += scnprintf(buf + l, PAGE_SIZE - l, "%s%d",
155 l += scnprintf(buf + l, PAGE_SIZE - l, "\n");
181 const char *buf, size_t count)
194 len = strlen(buf);
195 if (buf[len - 1] == '\n')
202 char *p = (char *)buf;
205 while (p < buf + len) {
322 struct device_attribute *attr, char *buf)
332 l += scnprintf(buf + l, PAGE_SIZE - l, "%s%d",
336 l += scnprintf(buf + l, PAGE_SIZE - l, "\n");
344 struct device_attribute *attr, const char *buf, size_t count)
353 len = strlen(buf);
354 if (buf[len - 1] == '\n')
360 char *p = (char *)buf;
362 while (p < buf + len) {
414 struct device_attribute *attr, char *buf)
419 return sysfs_emit(buf, "%lu\n", ofbi->region->size);
423 const char *buf, size_t count)
434 r = kstrtoul(buf, 0, &size);
491 struct device_attribute *attr, char *buf)
496 return sysfs_emit(buf, "%0x\n", ofbi->region->paddr);
500 struct device_attribute *attr, char *buf)
505 return sysfs_emit(buf, "%p\n", ofbi->region->vaddr);
509 struct device_attribute *attr, char *buf)
520 return sysfs_emit(buf, "%u\n", (unsigned int)mode);
524 const char *buf, size_t count)
530 r = kstrtouint(buf, 0, &mode);