Lines Matching full:vring

329 	struct rproc_vring *rvring = &rvdev->vring[i];  in rproc_alloc_vring()
335 /* actual size of vring (in bytes) */ in rproc_alloc_vring()
344 if (rproc_check_carveout_da(rproc, mem, rsc->vring[i].da, size)) in rproc_alloc_vring()
349 size, rsc->vring[i].da, in rproc_alloc_vring()
363 * Assign an rproc-wide unique index for this vring in rproc_alloc_vring()
380 /* Let the rproc know the notifyid of this vring.*/ in rproc_alloc_vring()
381 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring()
390 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring() local
391 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_parse_vring()
393 dev_dbg(dev, "vdev rsc: vring%d: da 0x%x, qsz %d, align %d\n", in rproc_parse_vring()
394 i, vring->da, vring->num, vring->align); in rproc_parse_vring()
396 /* verify queue size and vring alignment are sane */ in rproc_parse_vring()
397 if (!vring->num || !vring->align) { in rproc_parse_vring()
399 vring->num, vring->align); in rproc_parse_vring()
403 rvring->num = vring->num; in rproc_parse_vring()
404 rvring->align = vring->align; in rproc_parse_vring()
413 int idx = rvring - rvring->rvdev->vring; in rproc_free_vring()
431 rsc->vring[idx].da = 0; in rproc_free_vring()
432 rsc->vring[idx].notifyid = -1; in rproc_free_vring()
450 * @ptr: the vring resource descriptor
462 * doing the vring allocation only later when ->find_vqs() is invoked, and
486 rsc_size = struct_size(rsc, vring, rsc->num_of_vrings); in rproc_handle_vdev()
502 if (rsc->num_of_vrings > ARRAY_SIZE(rvdev->vring)) { in rproc_handle_vdev()
1274 * resource table. The address of the vring along with the other in rproc_start()