Home | History | Annotate | Download | only in bus

Lines Matching defs:vr

37    struct vring *vr = &vq->vring;
43 while (vr->desc[i].flags & VRING_DESC_F_NEXT)
44 i = vr->desc[i].next;
48 vr->desc[i].next = vq->free_head;
62 struct vring *vr = &vq->vring;
69 elem = &vr->used->ring[vq->last_used_idx % vr->num];
89 struct vring *vr = &vq->vring;
96 for (i = head; out; i = vr->desc[i].next, out--) {
98 vr->desc[i].flags = VRING_DESC_F_NEXT;
99 vr->desc[i].addr = (u64)virt_to_phys(list->addr);
100 vr->desc[i].len = list->length;
104 for ( ; in; i = vr->desc[i].next, in--) {
106 vr->desc[i].flags = VRING_DESC_F_NEXT|VRING_DESC_F_WRITE;
107 vr->desc[i].addr = (u64)virt_to_phys(list->addr);
108 vr->desc[i].len = list->length;
112 vr->desc[prev].flags &= ~VRING_DESC_F_NEXT;
118 avail = (vr->avail->idx + num_added) % vr->num;
119 vr->avail->ring[avail] = head;
125 struct vring *vr = &vq->vring;
128 vr->avail->idx += num_added;
131 if (!(vr->used->flags & VRING_USED_F_NO_NOTIFY))