Searched refs:used_idx (Results 1 – 3 of 3) sorted by relevance
58 unsigned short used_idx; member87 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() local277 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()[all …]
71 unsigned used_idx; member95 host.used_idx = 0; in alloc_ring()213 event->kick_index = host.used_idx; in enable_kick()221 unsigned head = (ring_size - 1) & host.used_idx; in avail_empty()228 unsigned head = (ring_size - 1) & host.used_idx; in use_buf()250 host.used_idx++; in use_buf()263 host.used_idx, in call_used()266 host.called_used_idx = host.used_idx; in call_used()
412 u16 used_idx, off; in __vringh_complete() local415 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()417 off = used_idx % vrh->vring.num; in __vringh_complete()438 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()