Lines Matching defs:buf
36 char *buf)
46 return sprintf(buf, "%d000\n", val);
50 char *buf)
60 return sprintf(buf, "%d\n", !!(val & sda->index));
64 const char *buf, size_t count)
71 if (kstrtoul(buf, 10, &val))
81 const char *buf, size_t count)
88 if (kstrtoul(buf, 10, &val))
99 struct device_attribute *attr, char *buf,
117 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst);
121 char *buf)
123 return show_hyst_common(dev, attr, buf, false);
127 struct device_attribute *attr, char *buf)
129 return show_hyst_common(dev, attr, buf, true);
133 const char *buf, size_t count)
143 if (kstrtoul(buf, 10, &val))