Lines Matching full:rproc

30 	struct rproc *rproc = rvring->rvdev->rproc;  in rproc_virtio_notify()  local
33 dev_dbg(&rproc->dev, "kicking vq index: %d\n", notifyid); in rproc_virtio_notify()
35 rproc->ops->kick(rproc, notifyid); in rproc_virtio_notify()
41 * @rproc: handle to the remote processor
42 * @notifyid: index of the signalled virtqueue (unique per this @rproc)
44 * This function should be called by the platform-specific rproc driver,
51 irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int notifyid) in rproc_vq_interrupt() argument
55 dev_dbg(&rproc->dev, "vq index %d is interrupted\n", notifyid); in rproc_vq_interrupt()
57 rvring = idr_find(&rproc->notifyids, notifyid); in rproc_vq_interrupt()
71 struct rproc *rproc = vdev_to_rproc(vdev); in rp_find_vq() local
72 struct device *dev = &rproc->dev; in rp_find_vq()
88 mem = rproc_find_carveout_by_name(rproc, "vdev%dvring%d", rvdev->index, in rp_find_vq()
120 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq()
178 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
188 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
199 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_reset()
211 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_features()
231 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_finalize_features()
258 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get()
276 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set()
311 struct rproc *rproc = vdev_to_rproc(vdev); in rproc_virtio_dev_release() local
317 put_device(&rproc->dev); in rproc_virtio_dev_release()
321 * rproc_add_virtio_dev() - register an rproc-induced virtio device
326 * the rproc device.
332 struct rproc *rproc = rvdev->rproc; in rproc_add_virtio_dev() local
338 if (rproc->ops->kick == NULL) { in rproc_add_virtio_dev()
340 dev_err(dev, ".kick method not defined for %s\n", rproc->name); in rproc_add_virtio_dev()
345 mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index); in rproc_add_virtio_dev()
350 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
379 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
404 * We're indirectly making a non-temporary copy of the rproc pointer in rproc_add_virtio_dev()
406 * access the wrapping rproc. in rproc_add_virtio_dev()
408 * Therefore we must increment the rproc refcount here, and decrement in rproc_add_virtio_dev()
411 get_device(&rproc->dev); in rproc_add_virtio_dev()
430 * rproc_remove_virtio_dev() - remove an rproc-induced virtio device