Lines Matching refs:used_idx
58 unsigned short used_idx; member
87 host.used_idx = 0; in alloc_ring()
252 vring_avail_event(&ring) = host.used_idx; in enable_kick()
260 unsigned head = host.used_idx; in avail_empty()
272 unsigned used_idx = host.used_idx; in use_buf() local
277 head = ring.avail->ring[used_idx & (ring_size - 1)]; in use_buf()
278 if ((used_idx ^ head ^ 0x8000) & ~(ring_size - 1)) in use_buf()
283 used_idx &= ring_size - 1; in use_buf()
286 if (used_idx == ring.avail->idx) in use_buf()
292 used_idx &= ring_size - 1; in use_buf()
294 head = used_idx; in use_buf()
296 head = ring.avail->ring[used_idx]; in use_buf()
308 ring.used->ring[used_idx].id = head; in use_buf()
309 ring.used->ring[used_idx].len = desc->len - 1; in use_buf()
313 host.used_idx++; in use_buf()
314 ring.used->idx = host.used_idx; in use_buf()
327 host.used_idx, in call_used()
330 host.called_used_idx = host.used_idx; in call_used()