Lines Matching refs:last_used_idx
43 unsigned short last_used_idx; member
80 guest.last_used_idx = 0; in alloc_ring()
159 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
161 if ((index ^ guest.last_used_idx ^ 0x8000) & ~(ring_size - 1)) in get_buf()
167 if (ring.used->idx == guest.last_used_idx) in get_buf()
172 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
175 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
193 guest.last_used_idx++; in get_buf()
199 unsigned short last_used_idx = guest.last_used_idx; in used_empty() local
201 unsigned short head = last_used_idx & (ring_size - 1); in used_empty()
204 return (index ^ last_used_idx ^ 0x8000) & ~(ring_size - 1); in used_empty()
206 return ring.used->idx == last_used_idx; in used_empty()
219 vring_used_event(&ring) = guest.last_used_idx; in enable_call()