• Home
  • Raw
  • Download

Lines Matching refs:rproc

66 	struct rproc *rproc = filp->private_data;  in rproc_name_read()  local
71 i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name); in rproc_name_read()
86 struct rproc *rproc = filp->private_data; in rproc_recovery_read() local
87 char *buf = rproc->recovery_disabled ? "disabled\n" : "enabled\n"; in rproc_recovery_read()
120 struct rproc *rproc = filp->private_data; in rproc_recovery_write() local
136 rproc->recovery_disabled = false; in rproc_recovery_write()
138 if (rproc->state == RPROC_CRASHED) in rproc_recovery_write()
139 rproc_trigger_recovery(rproc); in rproc_recovery_write()
141 rproc->recovery_disabled = true; in rproc_recovery_write()
144 if (rproc->state == RPROC_CRASHED) in rproc_recovery_write()
145 rproc_trigger_recovery(rproc); in rproc_recovery_write()
163 struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc, in rproc_create_trace_file() argument
168 tfile = debugfs_create_file(name, 0400, rproc->dbg_dir, trace, in rproc_create_trace_file()
171 dev_err(&rproc->dev, "failed to create debugfs trace entry\n"); in rproc_create_trace_file()
178 void rproc_delete_debug_dir(struct rproc *rproc) in rproc_delete_debug_dir() argument
180 if (!rproc->dbg_dir) in rproc_delete_debug_dir()
183 debugfs_remove_recursive(rproc->dbg_dir); in rproc_delete_debug_dir()
186 void rproc_create_debug_dir(struct rproc *rproc) in rproc_create_debug_dir() argument
188 struct device *dev = &rproc->dev; in rproc_create_debug_dir()
193 rproc->dbg_dir = debugfs_create_dir(dev_name(dev), rproc_dbg); in rproc_create_debug_dir()
194 if (!rproc->dbg_dir) in rproc_create_debug_dir()
197 debugfs_create_file("name", 0400, rproc->dbg_dir, in rproc_create_debug_dir()
198 rproc, &rproc_name_ops); in rproc_create_debug_dir()
199 debugfs_create_file("recovery", 0400, rproc->dbg_dir, in rproc_create_debug_dir()
200 rproc, &rproc_recovery_ops); in rproc_create_debug_dir()