Lines Matching refs: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()
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()
369 struct rproc *rproc = rvdev->rproc; in rproc_add_virtio_dev() local
375 if (rproc->ops->kick == NULL) { in rproc_add_virtio_dev()
377 dev_err(dev, ".kick method not defined for %s\n", rproc->name); in rproc_add_virtio_dev()
382 mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index); in rproc_add_virtio_dev()
387 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
416 struct device_node *np = rproc->dev.parent->of_node; in rproc_add_virtio_dev()
496 struct rproc *rproc = container_of(dev->parent, struct rproc, dev); in rproc_virtio_probe() local
508 rvdev->rproc = rproc; in rproc_virtio_probe()
511 ret = copy_dma_range_map(dev, rproc->dev.parent); in rproc_virtio_probe()
516 set_dma_ops(dev, get_dma_ops(rproc->dev.parent)); in rproc_virtio_probe()
518 ret = dma_coerce_mask_and_coherent(dev, dma_get_mask(rproc->dev.parent)); in rproc_virtio_probe()
521 dma_get_mask(rproc->dev.parent), ERR_PTR(ret)); in rproc_virtio_probe()
546 rproc_add_rvdev(rproc, rvdev); in rproc_virtio_probe()
551 rproc_add_subdev(rproc, &rvdev->subdev); in rproc_virtio_probe()
561 get_device(&rproc->dev); in rproc_virtio_probe()
575 struct rproc *rproc = rvdev->rproc; in rproc_virtio_remove() local
584 rproc_remove_subdev(rproc, &rvdev->subdev); in rproc_virtio_remove()
590 put_device(&rproc->dev); in rproc_virtio_remove()