Lines Matching refs:buf
70 family_show(struct device *dev, struct device_attribute *attr, char *buf) in family_show() argument
88 return scnprintf(buf, PAGE_SIZE, "%s\n", card); in family_show()
93 stepping_show(struct device *dev, struct device_attribute *attr, char *buf) in stepping_show() argument
117 return scnprintf(buf, PAGE_SIZE, "%s\n", string); in stepping_show()
122 state_show(struct device *dev, struct device_attribute *attr, char *buf) in state_show() argument
129 return scnprintf(buf, PAGE_SIZE, "%s\n", in state_show()
135 const char *buf, size_t count) in state_store() argument
141 if (sysfs_streq(buf, "boot")) { in state_store()
142 rc = mic_start(mdev, buf); in state_store()
151 if (sysfs_streq(buf, "reset")) { in state_store()
156 if (sysfs_streq(buf, "shutdown")) { in state_store()
161 if (sysfs_streq(buf, "suspend")) { in state_store()
173 struct device_attribute *attr, char *buf) in shutdown_status_show() argument
180 return scnprintf(buf, PAGE_SIZE, "%s\n", in shutdown_status_show()
186 cmdline_show(struct device *dev, struct device_attribute *attr, char *buf) in cmdline_show() argument
197 return scnprintf(buf, PAGE_SIZE, "%s\n", cmdline); in cmdline_show()
203 const char *buf, size_t count) in cmdline_store() argument
219 strncpy(mdev->cmdline, buf, count); in cmdline_store()
232 firmware_show(struct device *dev, struct device_attribute *attr, char *buf) in firmware_show() argument
243 return scnprintf(buf, PAGE_SIZE, "%s\n", firmware); in firmware_show()
249 const char *buf, size_t count) in firmware_store() argument
264 strncpy(mdev->firmware, buf, count); in firmware_store()
277 ramdisk_show(struct device *dev, struct device_attribute *attr, char *buf) in ramdisk_show() argument
288 return scnprintf(buf, PAGE_SIZE, "%s\n", ramdisk); in ramdisk_show()
294 const char *buf, size_t count) in ramdisk_store() argument
310 strncpy(mdev->ramdisk, buf, count); in ramdisk_store()
323 bootmode_show(struct device *dev, struct device_attribute *attr, char *buf) in bootmode_show() argument
334 return scnprintf(buf, PAGE_SIZE, "%s\n", bootmode); in bootmode_show()
340 const char *buf, size_t count) in bootmode_store() argument
347 if (!sysfs_streq(buf, "linux") && !sysfs_streq(buf, "elf")) in bootmode_store()
359 strncpy(mdev->bootmode, buf, count); in bootmode_store()
373 char *buf) in log_buf_addr_show() argument
380 return scnprintf(buf, PAGE_SIZE, "%p\n", mdev->log_buf_addr); in log_buf_addr_show()
385 const char *buf, size_t count) in log_buf_addr_store() argument
394 ret = kstrtoul(buf, 16, &addr); in log_buf_addr_store()
407 char *buf) in log_buf_len_show() argument
414 return scnprintf(buf, PAGE_SIZE, "%p\n", mdev->log_buf_len); in log_buf_len_show()
419 const char *buf, size_t count) in log_buf_len_store() argument
428 ret = kstrtoul(buf, 16, &addr); in log_buf_len_store()