Lines Matching full:rproc

57 static  struct rproc *vdev_to_rproc(struct virtio_device *vdev)  in vdev_to_rproc()
61 return rvdev->rproc; in vdev_to_rproc()
68 struct rproc *rproc = rvring->rvdev->rproc; in rproc_virtio_notify() local
71 dev_dbg(&rproc->dev, "kicking vq index: %d\n", notifyid); in rproc_virtio_notify()
73 rproc->ops->kick(rproc, notifyid); in rproc_virtio_notify()
79 * @rproc: handle to the remote processor
80 * @notifyid: index of the signalled virtqueue (unique per this @rproc)
82 * This function should be called by the platform-specific rproc driver,
89 irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int notifyid) in rproc_vq_interrupt() argument
93 dev_dbg(&rproc->dev, "vq index %d is interrupted\n", notifyid); in rproc_vq_interrupt()
95 rvring = idr_find(&rproc->notifyids, notifyid); in rproc_vq_interrupt()
109 struct rproc *rproc = vdev_to_rproc(vdev); in rp_find_vq() local
110 struct device *dev = &rproc->dev; in rp_find_vq()
126 mem = rproc_find_carveout_by_name(rproc, "vdev%dvring%d", rvdev->index, in rp_find_vq()
160 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rp_find_vq()
218 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_status()
228 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set_status()
239 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_reset()
251 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get_features()
271 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_finalize_features()
298 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_get()
316 rsc = (void *)rvdev->rproc->table_ptr + rvdev->rsc_offset; in rproc_virtio_set()
361 * rproc_add_virtio_dev() - register an rproc-induced virtio device
366 * the rproc device.
372 struct rproc *rproc = rvdev->rproc; in rproc_add_virtio_dev() local
378 if (rproc->ops->kick == NULL) { in rproc_add_virtio_dev()
380 dev_err(dev, ".kick method not defined for %s\n", rproc->name); in rproc_add_virtio_dev()
385 mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index); in rproc_add_virtio_dev()
390 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
419 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
460 * rproc_remove_virtio_dev() - remove an rproc-induced virtio device
499 struct rproc *rproc = container_of(dev->parent, struct rproc, dev); in rproc_virtio_probe() local
511 rvdev->rproc = rproc; in rproc_virtio_probe()
514 ret = copy_dma_range_map(dev, rproc->dev.parent); in rproc_virtio_probe()
519 set_dma_ops(dev, get_dma_ops(rproc->dev.parent)); in rproc_virtio_probe()
521 ret = dma_coerce_mask_and_coherent(dev, dma_get_mask(rproc->dev.parent)); in rproc_virtio_probe()
524 dma_get_mask(rproc->dev.parent), ERR_PTR(ret)); in rproc_virtio_probe()
549 rproc_add_rvdev(rproc, rvdev); in rproc_virtio_probe()
554 rproc_add_subdev(rproc, &rvdev->subdev); in rproc_virtio_probe()
557 * We're indirectly making a non-temporary copy of the rproc pointer in rproc_virtio_probe()
559 * access the wrapping rproc. in rproc_virtio_probe()
561 * Therefore we must increment the rproc refcount here, and decrement in rproc_virtio_probe()
564 get_device(&rproc->dev); in rproc_virtio_probe()
578 struct rproc *rproc = rvdev->rproc; in rproc_virtio_remove() local
587 rproc_remove_subdev(rproc, &rvdev->subdev); in rproc_virtio_remove()
590 put_device(&rproc->dev); in rproc_virtio_remove()
598 .name = "rproc-virtio",