Lines Matching refs:desc
86 ring.desc[i].next = i + 1; in alloc_ring()
105 struct vring_desc *desc; in add_inbuf() local
117 desc = ring.desc; in add_inbuf()
118 desc[head].flags = VRING_DESC_F_NEXT; in add_inbuf()
119 desc[head].addr = (unsigned long)(void *)buf; in add_inbuf()
120 desc[head].len = len; in add_inbuf()
125 desc[head].flags &= ~VRING_DESC_F_NEXT; in add_inbuf()
127 guest.free_head = desc[head].next; in add_inbuf()
181 *lenp = ring.desc[index].len; in get_buf()
186 *bufp = (void*)(unsigned long)ring.desc[index].addr; in get_buf()
189 ring.desc[index].next = guest.free_head; in get_buf()
273 struct vring_desc *desc; in use_buf() local
284 desc = &ring.desc[head & (ring_size - 1)]; in use_buf()
298 desc = &ring.desc[head]; in use_buf()
301 *lenp = desc->len; in use_buf()
302 *bufp = (void *)(unsigned long)desc->addr; in use_buf()
305 desc->len = desc->len - 1; in use_buf()
309 ring.used->ring[used_idx].len = desc->len - 1; in use_buf()