Lines Matching refs:rvdev
325 int rproc_alloc_vring(struct rproc_vdev *rvdev, int i) in rproc_alloc_vring() argument
327 struct rproc *rproc = rvdev->rproc; in rproc_alloc_vring()
329 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_alloc_vring()
338 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring()
341 mem = rproc_find_carveout_by_name(rproc, "vdev%dvring%d", rvdev->index, in rproc_alloc_vring()
353 rvdev->index, i); in rproc_alloc_vring()
386 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument
388 struct rproc *rproc = rvdev->rproc; in rproc_parse_vring()
391 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_parse_vring()
405 rvring->rvdev = rvdev; in rproc_parse_vring()
412 struct rproc *rproc = rvring->rvdev->rproc; in rproc_free_vring()
413 int idx = rvring - rvring->rvdev->vring; in rproc_free_vring()
430 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring()
436 void rproc_add_rvdev(struct rproc *rproc, struct rproc_vdev *rvdev) in rproc_add_rvdev() argument
438 if (rvdev && rproc) in rproc_add_rvdev()
439 list_add_tail(&rvdev->node, &rproc->rvdevs); in rproc_add_rvdev()
442 void rproc_remove_rvdev(struct rproc_vdev *rvdev) in rproc_remove_rvdev() argument
444 if (rvdev) in rproc_remove_rvdev()
445 list_del(&rvdev->node); in rproc_remove_rvdev()
480 struct rproc_vdev *rvdev; in rproc_handle_vdev() local
502 if (rsc->num_of_vrings > ARRAY_SIZE(rvdev->vring)) { in rproc_handle_vdev()
1217 struct rproc_vdev *rvdev, *rvtmp; in rproc_resource_cleanup() local
1252 list_for_each_entry_safe(rvdev, rvtmp, &rproc->rvdevs, node) in rproc_resource_cleanup()
1253 platform_device_unregister(rvdev->pdev); in rproc_resource_cleanup()