Lines Matching defs:buf
109 struct device_attribute *attr, char *buf)
112 return sprintf(buf, "%d\n", data->min_uV);
116 const char *buf, size_t count)
121 if (kstrtol(buf, 10, &val) != 0)
135 struct device_attribute *attr, char *buf)
138 return sprintf(buf, "%d\n", data->max_uV);
142 const char *buf, size_t count)
147 if (kstrtol(buf, 10, &val) != 0)
161 struct device_attribute *attr, char *buf)
164 return sprintf(buf, "%d\n", data->min_uA);
168 const char *buf, size_t count)
173 if (kstrtol(buf, 10, &val) != 0)
187 struct device_attribute *attr, char *buf)
190 return sprintf(buf, "%d\n", data->max_uA);
194 const char *buf, size_t count)
199 if (kstrtol(buf, 10, &val) != 0)
213 struct device_attribute *attr, char *buf)
219 return sprintf(buf, "fast\n");
221 return sprintf(buf, "normal\n");
223 return sprintf(buf, "idle\n");
225 return sprintf(buf, "standby\n");
227 return sprintf(buf, "unknown\n");
232 const char *buf, size_t count)
242 if (sysfs_streq(buf, "fast\n"))
244 else if (sysfs_streq(buf, "normal\n"))
246 else if (sysfs_streq(buf, "idle\n"))
248 else if (sysfs_streq(buf, "standby\n"))