Lines Matching full:rproc

22 static int rcar_rproc_mem_alloc(struct rproc *rproc,  in rcar_rproc_mem_alloc()  argument
25 struct device *dev = &rproc->dev; in rcar_rproc_mem_alloc()
42 static int rcar_rproc_mem_release(struct rproc *rproc, in rcar_rproc_mem_release() argument
45 dev_dbg(&rproc->dev, "unmap memory: %pa\n", &mem->dma); in rcar_rproc_mem_release()
51 static int rcar_rproc_prepare(struct rproc *rproc) in rcar_rproc_prepare() argument
53 struct device *dev = rproc->dev.parent; in rcar_rproc_prepare()
67 dev_err(&rproc->dev, in rcar_rproc_prepare()
91 rproc_add_carveout(rproc, mem); in rcar_rproc_prepare()
97 static int rcar_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw) in rcar_rproc_parse_fw() argument
101 ret = rproc_elf_load_rsc_table(rproc, fw); in rcar_rproc_parse_fw()
103 dev_info(&rproc->dev, "No resource table in elf\n"); in rcar_rproc_parse_fw()
108 static int rcar_rproc_start(struct rproc *rproc) in rcar_rproc_start() argument
110 struct rcar_rproc *priv = rproc->priv; in rcar_rproc_start()
113 if (!rproc->bootaddr) in rcar_rproc_start()
116 err = rcar_rst_set_rproc_boot_addr(rproc->bootaddr); in rcar_rproc_start()
118 dev_err(&rproc->dev, "failed to set rproc boot addr\n"); in rcar_rproc_start()
124 dev_err(&rproc->dev, "failed to deassert reset\n"); in rcar_rproc_start()
129 static int rcar_rproc_stop(struct rproc *rproc) in rcar_rproc_stop() argument
131 struct rcar_rproc *priv = rproc->priv; in rcar_rproc_stop()
136 dev_err(&rproc->dev, "failed to assert reset\n"); in rcar_rproc_stop()
158 struct rproc *rproc; in rcar_rproc_probe() local
161 rproc = devm_rproc_alloc(dev, np->name, &rcar_rproc_ops, in rcar_rproc_probe()
163 if (!rproc) in rcar_rproc_probe()
166 priv = rproc->priv; in rcar_rproc_probe()
171 dev_err_probe(dev, ret, "fail to acquire rproc reset\n"); in rcar_rproc_probe()
182 dev_set_drvdata(dev, rproc); in rcar_rproc_probe()
184 /* Manually start the rproc */ in rcar_rproc_probe()
185 rproc->auto_boot = false; in rcar_rproc_probe()
187 ret = devm_rproc_add(dev, rproc); in rcar_rproc_probe()
219 .name = "rcar-rproc",