Lines Matching full:rproc

45 	struct rproc *rproc = filp->private_data;  in rproc_coredump_read()  local
50 rproc_coredump_str[rproc->dump_conf]); in rproc_coredump_read()
75 struct rproc *rproc = filp->private_data; in rproc_coredump_write() local
90 if (rproc->state == RPROC_CRASHED) { in rproc_coredump_write()
91 dev_err(&rproc->dev, "can't change coredump configuration\n"); in rproc_coredump_write()
97 rproc->dump_conf = RPROC_COREDUMP_DISABLED; in rproc_coredump_write()
99 rproc->dump_conf = RPROC_COREDUMP_ENABLED; in rproc_coredump_write()
101 rproc->dump_conf = RPROC_COREDUMP_INLINE; in rproc_coredump_write()
103 dev_err(&rproc->dev, "Invalid coredump configuration\n"); in rproc_coredump_write()
122 * We will most probably improve the rproc tracing facilities later on,
135 va = rproc_da_to_va(data->rproc, trace->da, trace->len, NULL); in rproc_trace_read()
158 struct rproc *rproc = filp->private_data; in rproc_name_read() local
163 i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name); in rproc_name_read()
178 struct rproc *rproc = filp->private_data; in rproc_recovery_read() local
179 char *buf = rproc->recovery_disabled ? "disabled\n" : "enabled\n"; in rproc_recovery_read()
212 struct rproc *rproc = filp->private_data; in rproc_recovery_write() local
229 rproc->recovery_disabled = false; in rproc_recovery_write()
230 rproc_trigger_recovery(rproc); in rproc_recovery_write()
232 rproc->recovery_disabled = true; in rproc_recovery_write()
235 rproc_trigger_recovery(rproc); in rproc_recovery_write()
255 struct rproc *rproc = filp->private_data; in rproc_crash_write() local
263 rproc_report_crash(rproc, type); in rproc_crash_write()
278 struct rproc *rproc = seq->private; in rproc_rsc_table_show() local
279 struct resource_table *table = rproc->table_ptr; in rproc_rsc_table_show()
364 struct rproc *rproc = seq->private; in rproc_carveouts_show() local
367 list_for_each_entry(carveout, &rproc->carveouts, node) { in rproc_carveouts_show()
386 struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc, in rproc_create_trace_file() argument
389 return debugfs_create_file(name, 0400, rproc->dbg_dir, trace, in rproc_create_trace_file()
393 void rproc_delete_debug_dir(struct rproc *rproc) in rproc_delete_debug_dir() argument
395 debugfs_remove_recursive(rproc->dbg_dir); in rproc_delete_debug_dir()
398 void rproc_create_debug_dir(struct rproc *rproc) in rproc_create_debug_dir() argument
400 struct device *dev = &rproc->dev; in rproc_create_debug_dir()
405 rproc->dbg_dir = debugfs_create_dir(dev_name(dev), rproc_dbg); in rproc_create_debug_dir()
407 debugfs_create_file("name", 0400, rproc->dbg_dir, in rproc_create_debug_dir()
408 rproc, &rproc_name_ops); in rproc_create_debug_dir()
409 debugfs_create_file("recovery", 0600, rproc->dbg_dir, in rproc_create_debug_dir()
410 rproc, &rproc_recovery_ops); in rproc_create_debug_dir()
411 debugfs_create_file("crash", 0200, rproc->dbg_dir, in rproc_create_debug_dir()
412 rproc, &rproc_crash_ops); in rproc_create_debug_dir()
413 debugfs_create_file("resource_table", 0400, rproc->dbg_dir, in rproc_create_debug_dir()
414 rproc, &rproc_rsc_table_fops); in rproc_create_debug_dir()
415 debugfs_create_file("carveout_memories", 0400, rproc->dbg_dir, in rproc_create_debug_dir()
416 rproc, &rproc_carveouts_fops); in rproc_create_debug_dir()
417 debugfs_create_file("coredump", 0600, rproc->dbg_dir, in rproc_create_debug_dir()
418 rproc, &rproc_coredump_fops); in rproc_create_debug_dir()