Lines Matching refs:rproc
11 #define to_rproc(d) container_of(d, struct rproc, dev)
16 struct rproc *rproc = to_rproc(dev); in recovery_show() local
18 return sysfs_emit(buf, "%s", rproc->recovery_disabled ? "disabled\n" : "enabled\n"); in recovery_show()
49 struct rproc *rproc = to_rproc(dev); in recovery_store() local
53 rproc->recovery_disabled = false; in recovery_store()
54 rproc_trigger_recovery(rproc); in recovery_store()
56 rproc->recovery_disabled = true; in recovery_store()
59 rproc_trigger_recovery(rproc); in recovery_store()
83 struct rproc *rproc = to_rproc(dev); in coredump_show() local
85 return sysfs_emit(buf, "%s\n", rproc_coredump_str[rproc->dump_conf]); in coredump_show()
108 struct rproc *rproc = to_rproc(dev); in coredump_store() local
110 if (rproc->state == RPROC_CRASHED) { in coredump_store()
111 dev_err(&rproc->dev, "can't change coredump configuration\n"); in coredump_store()
116 rproc->dump_conf = RPROC_COREDUMP_DISABLED; in coredump_store()
118 rproc->dump_conf = RPROC_COREDUMP_ENABLED; in coredump_store()
120 rproc->dump_conf = RPROC_COREDUMP_INLINE; in coredump_store()
122 dev_err(&rproc->dev, "Invalid coredump configuration\n"); in coredump_store()
134 struct rproc *rproc = to_rproc(dev); in firmware_show() local
135 const char *firmware = rproc->firmware; in firmware_show()
142 if (rproc->state == RPROC_ATTACHED) in firmware_show()
153 struct rproc *rproc = to_rproc(dev); in firmware_store() local
156 err = rproc_set_firmware(rproc, buf); in firmware_store()
181 struct rproc *rproc = to_rproc(dev); in state_show() local
184 state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state; in state_show()
193 struct rproc *rproc = to_rproc(dev); in state_store() local
197 ret = rproc_boot(rproc); in state_store()
199 dev_err(&rproc->dev, "Boot failed: %d\n", ret); in state_store()
201 ret = rproc_shutdown(rproc); in state_store()
203 ret = rproc_detach(rproc); in state_store()
205 dev_err(&rproc->dev, "Unrecognised option: %s\n", buf); in state_store()
216 struct rproc *rproc = to_rproc(dev); in name_show() local
218 return sprintf(buf, "%s\n", rproc->name); in name_show()
226 struct rproc *rproc = to_rproc(dev); in rproc_is_visible() local
229 if (rproc->sysfs_read_only && (attr == &dev_attr_recovery.attr || in rproc_is_visible()