Lines Matching defs:buf
52 void *buf, int size)
58 index, buf, size,
67 static ssize_t brightness_show(struct device *dev, struct device_attribute *attr, char *buf)
72 return sprintf(buf, "%i", cytherm->brightness);
75 static ssize_t brightness_store(struct device *dev, struct device_attribute *attr, const char *buf,
88 cytherm->brightness = simple_strtoul(buf, NULL, 10);
116 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf)
145 return sprintf(buf, "%c%i.%i", sign ? '-' : '+', temp >> 1,
153 static ssize_t button_show(struct device *dev, struct device_attribute *attr, char *buf)
176 return sprintf(buf, "1");
178 return sprintf(buf, "0");
183 static ssize_t port0_show(struct device *dev, struct device_attribute *attr, char *buf)
203 return sprintf(buf, "%d", retval);
207 static ssize_t port0_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
220 tmp = simple_strtoul(buf, NULL, 10);
238 static ssize_t port1_show(struct device *dev, struct device_attribute *attr, char *buf)
258 return sprintf(buf, "%d", retval);
262 static ssize_t port1_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
275 tmp = simple_strtoul(buf, NULL, 10);