Lines Matching defs:buf
209 struct device_attribute *attr, char *buf)
215 len = sprintf(buf, "%s\n", trigger_data->device_name);
266 struct device_attribute *attr, const char *buf,
272 ret = set_device_name(trigger_data, buf, size);
281 static ssize_t netdev_led_attr_show(struct device *dev, char *buf,
302 return sprintf(buf, "%u\n", test_bit(bit, &trigger_data->mode));
305 static ssize_t netdev_led_attr_store(struct device *dev, const char *buf,
313 ret = kstrtoul(buf, 0, &state);
355 struct device_attribute *attr, char *buf) \
357 return netdev_led_attr_show(dev, buf, trigger); \
360 struct device_attribute *attr, const char *buf, size_t size) \
362 return netdev_led_attr_store(dev, buf, size, trigger); \
376 struct device_attribute *attr, char *buf)
380 return sprintf(buf, "%u\n",
385 struct device_attribute *attr, const char *buf,
395 ret = kstrtoul(buf, 0, &value);
413 struct device_attribute *attr, char *buf)
417 return sprintf(buf, "%d\n", trigger_data->hw_control);