Lines Matching full: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 sprintf(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 sprintf(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()
140 * simply display a generic string rather then rproc->firmware. in firmware_show()
145 if (rproc->autonomous) in firmware_show()
156 struct rproc *rproc = to_rproc(dev); in firmware_store() local
160 err = mutex_lock_interruptible(&rproc->lock); in firmware_store()
162 dev_err(dev, "can't lock rproc %s: %d\n", rproc->name, err); in firmware_store()
166 if (rproc->state != RPROC_OFFLINE) { in firmware_store()
185 kfree(rproc->firmware); in firmware_store()
186 rproc->firmware = p; in firmware_store()
188 mutex_unlock(&rproc->lock); in firmware_store()
212 struct rproc *rproc = to_rproc(dev); in state_show() local
215 state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state; in state_show()
224 struct rproc *rproc = to_rproc(dev); in state_store() local
228 if (rproc->state == RPROC_RUNNING) in state_store()
231 ret = rproc_boot(rproc); in state_store()
233 dev_err(&rproc->dev, "Boot failed: %d\n", ret); in state_store()
235 if (rproc->state != RPROC_RUNNING) in state_store()
238 rproc_shutdown(rproc); in state_store()
240 dev_err(&rproc->dev, "Unrecognised option: %s\n", buf); in state_store()
251 struct rproc *rproc = to_rproc(dev); in name_show() local
253 return sprintf(buf, "%s\n", rproc->name); in name_show()