Lines Matching defs:buf
93 struct device_attribute *attr, const char *buf, size_t count)
99 ret = kstrtoul(buf, 16, &value);
112 struct device_attribute *attr, char *buf)
125 *buf = 0;
129 strcat(buf, tmp);
133 strcat(buf, "\n");
135 strcpy(buf, "none\n");
138 return strlen(buf);
142 struct device_attribute *attr, char *buf)
152 *buf = 0;
155 strcat(buf, "over-current ");
158 strcat(buf, "over-temperature");
160 strcat(buf, "\n");
161 return strlen(buf);