Lines Matching defs:buf
14 struct device_attribute *attr, char *buf)
18 return sprintf(buf, "%s", rproc->recovery_disabled ? "disabled\n" : "enabled\n");
47 const char *buf, size_t count)
51 if (sysfs_streq(buf, "enabled")) {
55 } else if (sysfs_streq(buf, "disabled")) {
57 } else if (sysfs_streq(buf, "recover")) {
81 struct device_attribute *attr, char *buf)
85 return sprintf(buf, "%s\n", rproc_coredump_str[rproc->dump_conf]);
106 const char *buf, size_t count)
115 if (sysfs_streq(buf, "disabled")) {
117 } else if (sysfs_streq(buf, "enabled")) {
119 } else if (sysfs_streq(buf, "inline")) {
132 char *buf)
148 return sprintf(buf, "%s\n", firmware);
154 const char *buf, size_t count)
172 len = strcspn(buf, "\n");
179 p = kstrndup(buf, len, GFP_KERNEL);
210 char *buf)
216 return sprintf(buf, "%s\n", rproc_state_string[state]);
222 const char *buf, size_t count)
227 if (sysfs_streq(buf, "start")) {
234 } else if (sysfs_streq(buf, "stop")) {
240 dev_err(&rproc->dev, "Unrecognised option: %s\n", buf);
249 char *buf)
253 return sprintf(buf, "%s\n", rproc->name);