Lines Matching refs:index
155 unsigned index; in get_buf() local
160 index = ring.used->ring[head].id; in get_buf()
161 if ((index ^ guest.last_used_idx ^ 0x8000) & ~(ring_size - 1)) in get_buf()
165 index &= ring_size - 1; in get_buf()
173 index = head; in get_buf()
176 index = ring.used->ring[head].id; in get_buf()
181 *lenp = ring.desc[index].len; in get_buf()
185 datap = data[index].data; in get_buf()
186 *bufp = (void*)(unsigned long)ring.desc[index].addr; in get_buf()
187 data[index].data = NULL; in get_buf()
189 ring.desc[index].next = guest.free_head; in get_buf()
190 guest.free_head = index; in get_buf()
202 unsigned index = ring.used->ring[head].id; in used_empty() local
204 return (index ^ last_used_idx ^ 0x8000) & ~(ring_size - 1); in used_empty()
262 unsigned index = ring.avail->ring[head & (ring_size - 1)]; in avail_empty() local
264 return ((index ^ head ^ 0x8000) & ~(ring_size - 1)); in avail_empty()