Lines Matching defs:buf
182 char *buf)
186 return sprintf(buf, "%d\n", bd->props.power);
190 const char *buf, size_t count)
196 rc = kstrtoul(buf, 0, &power);
223 struct device_attribute *attr, char *buf)
227 return sprintf(buf, "%d\n", bd->props.brightness);
254 struct device_attribute *attr, const char *buf, size_t count)
260 rc = kstrtoul(buf, 0, &brightness);
271 char *buf)
275 return sprintf(buf, "%s\n", backlight_types[bd->props.type]);
280 struct device_attribute *attr, char *buf)
284 return sprintf(buf, "%d\n", bd->props.max_brightness);
289 struct device_attribute *attr, char *buf)
296 rc = sprintf(buf, "%d\n", bd->ops->get_brightness(bd));
298 rc = sprintf(buf, "%d\n", bd->props.brightness);
306 struct device_attribute *attr, char *buf)
311 return sprintf(buf, "unknown\n");
313 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]);