Lines Matching refs:vr
307 struct mic_vring *vr = &vdev->vvr[i].vring; in vop_virtio_add_device() local
313 vr->va = (void *) in vop_virtio_add_device()
316 if (!vr->va) { in vop_virtio_add_device()
322 vr->len = vr_size; in vop_virtio_add_device()
323 vr->info = vr->va + round_up(vring_size(num, MIC_VIRTIO_RING_ALIGN), 4); in vop_virtio_add_device()
324 vr->info->magic = cpu_to_le32(MIC_MAGIC + vdev->virtio_id + i); in vop_virtio_add_device()
325 vr_addr = dma_map_single(&vpdev->dev, vr->va, vr_size, in vop_virtio_add_device()
328 free_pages((unsigned long)vr->va, get_order(vr_size)); in vop_virtio_add_device()
336 vring_init(&vr->vr, num, vr->va, MIC_VIRTIO_RING_ALIGN); in vop_virtio_add_device()
339 num, false, vr->vr.desc, vr->vr.avail, in vop_virtio_add_device()
340 vr->vr.used); in vop_virtio_add_device()
353 __func__, __LINE__, i, vr->va, vr->info, vr_size); in vop_virtio_add_device()
767 struct mic_vring *vr = &vvr->vring; in _vop_virtio_copy() local
840 vr->info->avail_idx = vrh->last_avail_idx; in _vop_virtio_copy()