Lines Matching refs:rvdev
326 int rproc_alloc_vring(struct rproc_vdev *rvdev, int i) in rproc_alloc_vring() argument
328 struct rproc *rproc = rvdev->rproc; in rproc_alloc_vring()
330 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_alloc_vring()
339 rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; in rproc_alloc_vring()
342 mem = rproc_find_carveout_by_name(rproc, "vdev%dvring%d", rvdev->index, in rproc_alloc_vring()
354 rvdev->index, i); in rproc_alloc_vring()
387 rproc_parse_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i) in rproc_parse_vring() argument
389 struct rproc *rproc = rvdev->rproc; in rproc_parse_vring()
392 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_parse_vring()
406 rvring->rvdev = rvdev; in rproc_parse_vring()
413 struct rproc *rproc = rvring->rvdev->rproc; in rproc_free_vring()
414 int idx = rvring - rvring->rvdev->vring; in rproc_free_vring()
431 rsc = (void *)rproc->table_ptr + rvring->rvdev->rsc_offset; in rproc_free_vring()
437 void rproc_add_rvdev(struct rproc *rproc, struct rproc_vdev *rvdev) in rproc_add_rvdev() argument
439 if (rvdev && rproc) in rproc_add_rvdev()
440 list_add_tail(&rvdev->node, &rproc->rvdevs); in rproc_add_rvdev()
443 void rproc_remove_rvdev(struct rproc_vdev *rvdev) in rproc_remove_rvdev() argument
445 if (rvdev) in rproc_remove_rvdev()
446 list_del(&rvdev->node); in rproc_remove_rvdev()
481 struct rproc_vdev *rvdev; in rproc_handle_vdev() local
503 if (rsc->num_of_vrings > ARRAY_SIZE(rvdev->vring)) { in rproc_handle_vdev()
1225 struct rproc_vdev *rvdev, *rvtmp; in rproc_resource_cleanup() local
1260 list_for_each_entry_safe(rvdev, rvtmp, &rproc->rvdevs, node) in rproc_resource_cleanup()
1261 platform_device_unregister(rvdev->pdev); in rproc_resource_cleanup()