Lines Matching refs:rproc
126 struct rproc *rproc; member
156 struct rproc *rproc = s->private; in regs_show() local
157 struct pru_rproc *pru = rproc->priv; in regs_show()
214 struct rproc *rproc = data; in pru_rproc_debug_ss_set() local
215 struct pru_rproc *pru = rproc->priv; in pru_rproc_debug_ss_set()
240 struct rproc *rproc = data; in pru_rproc_debug_ss_get() local
241 struct pru_rproc *pru = rproc->priv; in pru_rproc_debug_ss_get()
256 static void pru_rproc_create_debug_entries(struct rproc *rproc) in pru_rproc_create_debug_entries() argument
258 if (!rproc->dbg_dir) in pru_rproc_create_debug_entries()
261 debugfs_create_file("regs", 0400, rproc->dbg_dir, in pru_rproc_create_debug_entries()
262 rproc, ®s_fops); in pru_rproc_create_debug_entries()
263 debugfs_create_file("single_step", 0600, rproc->dbg_dir, in pru_rproc_create_debug_entries()
264 rproc, &pru_rproc_debug_ss_fops); in pru_rproc_create_debug_entries()
286 static int pru_handle_intrmap(struct rproc *rproc) in pru_handle_intrmap() argument
288 struct device *dev = rproc->dev.parent; in pru_handle_intrmap()
289 struct pru_rproc *pru = rproc->priv; in pru_handle_intrmap()
373 static int pru_rproc_start(struct rproc *rproc) in pru_rproc_start() argument
375 struct device *dev = &rproc->dev; in pru_rproc_start()
376 struct pru_rproc *pru = rproc->priv; in pru_rproc_start()
382 names[pru->data->type], pru->id, (rproc->bootaddr >> 2)); in pru_rproc_start()
384 ret = pru_handle_intrmap(rproc); in pru_rproc_start()
394 val = CTRL_CTRL_EN | ((rproc->bootaddr >> 2) << 16); in pru_rproc_start()
400 static int pru_rproc_stop(struct rproc *rproc) in pru_rproc_stop() argument
402 struct device *dev = &rproc->dev; in pru_rproc_stop()
403 struct pru_rproc *pru = rproc->priv; in pru_rproc_stop()
509 static void *pru_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem) in pru_rproc_da_to_va() argument
511 struct pru_rproc *pru = rproc->priv; in pru_rproc_da_to_va()
517 static void *pru_da_to_va(struct rproc *rproc, u64 da, size_t len, bool is_iram) in pru_da_to_va() argument
519 struct pru_rproc *pru = rproc->priv; in pru_da_to_va()
579 pru_rproc_load_elf_segments(struct rproc *rproc, const struct firmware *fw) in pru_rproc_load_elf_segments() argument
581 struct pru_rproc *pru = rproc->priv; in pru_rproc_load_elf_segments()
582 struct device *dev = &rproc->dev; in pru_rproc_load_elf_segments()
622 ptr = pru_da_to_va(rproc, da, memsz, is_iram); in pru_rproc_load_elf_segments()
703 static int pru_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw) in pru_rproc_parse_fw() argument
705 struct device *dev = &rproc->dev; in pru_rproc_parse_fw()
706 struct pru_rproc *pru = rproc->priv; in pru_rproc_parse_fw()
714 ret = rproc_elf_load_rsc_table(rproc, fw); in pru_rproc_parse_fw()
716 dev_dbg(&rproc->dev, "no resource table found for this fw\n"); in pru_rproc_parse_fw()
773 struct rproc *rproc = NULL; in pru_rproc_probe() local
789 rproc = devm_rproc_alloc(dev, pdev->name, &pru_rproc_ops, fw_name, in pru_rproc_probe()
791 if (!rproc) { in pru_rproc_probe()
796 rproc->ops->load = pru_rproc_load_elf_segments; in pru_rproc_probe()
799 rproc->ops->parse_fw = pru_rproc_parse_fw; in pru_rproc_probe()
802 rproc->recovery_disabled = true; in pru_rproc_probe()
811 rproc->auto_boot = false; in pru_rproc_probe()
813 pru = rproc->priv; in pru_rproc_probe()
817 pru->rproc = rproc; in pru_rproc_probe()
842 platform_set_drvdata(pdev, rproc); in pru_rproc_probe()
844 ret = devm_rproc_add(dev, pru->rproc); in pru_rproc_probe()
850 pru_rproc_create_debug_entries(rproc); in pru_rproc_probe()
860 struct rproc *rproc = platform_get_drvdata(pdev); in pru_rproc_remove() local
862 dev_dbg(dev, "%s: removing rproc %s\n", __func__, rproc->name); in pru_rproc_remove()