Lines Matching full:rproc
67 * @rproc: remoteproc device handle
82 struct rproc *rproc; member
114 struct device *dev = kproc->rproc->dev.parent; in k3_dsp_rproc_mbox_callback()
115 const char *name = kproc->rproc->name; in k3_dsp_rproc_mbox_callback()
126 dev_err(dev, "K3 DSP rproc %s crashed\n", name); in k3_dsp_rproc_mbox_callback()
135 if (msg > kproc->rproc->max_notifyid) { in k3_dsp_rproc_mbox_callback()
140 if (rproc_vq_interrupt(kproc->rproc, msg) == IRQ_NONE) in k3_dsp_rproc_mbox_callback()
151 static void k3_dsp_rproc_kick(struct rproc *rproc, int vqid) in k3_dsp_rproc_kick() argument
153 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_kick()
154 struct device *dev = rproc->dev.parent; in k3_dsp_rproc_kick()
228 static int k3_dsp_rproc_prepare(struct rproc *rproc) in k3_dsp_rproc_prepare() argument
230 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_prepare()
252 static int k3_dsp_rproc_unprepare(struct rproc *rproc) in k3_dsp_rproc_unprepare() argument
254 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_unprepare()
269 * This function will be invoked only after the firmware for this rproc
273 static int k3_dsp_rproc_start(struct rproc *rproc) in k3_dsp_rproc_start() argument
275 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_start()
308 boot_addr = rproc->bootaddr; in k3_dsp_rproc_start()
338 static int k3_dsp_rproc_stop(struct rproc *rproc) in k3_dsp_rproc_stop() argument
340 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_stop()
357 static void *k3_dsp_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len) in k3_dsp_rproc_da_to_va() argument
359 struct k3_dsp_rproc *kproc = rproc->priv; in k3_dsp_rproc_da_to_va()
593 struct rproc *rproc; in k3_dsp_rproc_probe() local
609 rproc = rproc_alloc(dev, dev_name(dev), &k3_dsp_rproc_ops, fw_name, in k3_dsp_rproc_probe()
611 if (!rproc) in k3_dsp_rproc_probe()
614 rproc->has_iommu = false; in k3_dsp_rproc_probe()
615 rproc->recovery_disabled = true; in k3_dsp_rproc_probe()
617 rproc->ops->prepare = k3_dsp_rproc_prepare; in k3_dsp_rproc_probe()
618 rproc->ops->unprepare = k3_dsp_rproc_unprepare; in k3_dsp_rproc_probe()
620 kproc = rproc->priv; in k3_dsp_rproc_probe()
621 kproc->rproc = rproc; in k3_dsp_rproc_probe()
689 ret = rproc_add(rproc); in k3_dsp_rproc_probe()
713 rproc_free(rproc); in k3_dsp_rproc_probe()
723 rproc_del(kproc->rproc); in k3_dsp_rproc_remove()
736 rproc_free(kproc->rproc); in k3_dsp_rproc_remove()
778 .name = "k3-dsp-rproc",