Lines Matching refs:head
54 int head; in virtqueue_add_outbuf() local
64 head = vq->free_head; in virtqueue_add_outbuf()
66 vq->vring.desc[head].flags = 0; in virtqueue_add_outbuf()
67 vq->vring.desc[head].addr = virt_to_phys(buf); in virtqueue_add_outbuf()
68 vq->vring.desc[head].len = len; in virtqueue_add_outbuf()
70 vq->free_head = vq->vring.desc[head].next; in virtqueue_add_outbuf()
72 vq->data[head] = buf; in virtqueue_add_outbuf()
75 vq->vring.avail->ring[avail] = head; in virtqueue_add_outbuf()
90 void detach_buf(struct vring_virtqueue *vq, unsigned head) in detach_buf() argument
92 unsigned i = head; in detach_buf()
94 vq->data[head] = NULL; in detach_buf()
102 vq->free_head = head; in detach_buf()