Lines Matching defs:buf
19 static ssize_t show_state(struct device *dev, struct device_attribute *attr, char *buf)
25 count = scnprintf(buf, PAGE_SIZE, "not-defined:");
27 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control);
30 count += sysfs_emit_at(buf, count, "not-defined:");
32 count += sysfs_emit_at(buf, count, "%lld:", fps->trip_point);
35 count += sysfs_emit_at(buf, count, "not-defined:");
37 count += sysfs_emit_at(buf, count, "%lld:", fps->speed);
40 count += sysfs_emit_at(buf, count, "not-defined:");
42 count += sysfs_emit_at(buf, count, "%lld:", fps->noise_level * 100);
45 count += sysfs_emit_at(buf, count, "not-defined\n");
47 count += sysfs_emit_at(buf, count, "%lld\n", fps->power);
52 static ssize_t show_fan_speed(struct device *dev, struct device_attribute *attr, char *buf)
62 return sprintf(buf, "%lld\n", fst.speed);
65 static ssize_t show_fine_grain_control(struct device *dev, struct device_attribute *attr, char *buf)
70 return sprintf(buf, "%d\n", fan->fif.fine_grain_ctrl);