Lines Matching defs:buf
14 struct device_attribute *attr, char *buf)
18 return sysfs_emit(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 sysfs_emit(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)
145 return sprintf(buf, "%s\n", firmware);
151 const char *buf, size_t count)
156 err = rproc_set_firmware(rproc, buf);
179 char *buf)
185 return sprintf(buf, "%s\n", rproc_state_string[state]);
191 const char *buf, size_t count)
196 if (sysfs_streq(buf, "start")) {
200 } else if (sysfs_streq(buf, "stop")) {
202 } else if (sysfs_streq(buf, "detach")) {
205 dev_err(&rproc->dev, "Unrecognised option: %s\n", buf);
214 char *buf)
218 return sprintf(buf, "%s\n", rproc->name);