Lines Matching full:guest
27 * Guest adds descriptors with unique index values and DESC_HW in flags.
59 struct guest { struct
65 } guest; argument
92 guest.avail_idx = 0; in alloc_ring()
93 guest.kicked_avail_idx = -1; in alloc_ring()
94 guest.last_used_idx = 0; in alloc_ring()
103 guest.num_free = ring_size; in alloc_ring()
111 /* guest side */
116 if (!guest.num_free) in add_inbuf()
119 guest.num_free--; in add_inbuf()
120 head = (ring_size - 1) & (guest.avail_idx++); in add_inbuf()
145 unsigned head = (ring_size - 1) & guest.last_used_idx; in get_buf()
159 guest.num_free++; in get_buf()
160 guest.last_used_idx++; in get_buf()
166 unsigned head = (ring_size - 1) & guest.last_used_idx; in used_empty()
180 event->call_index = guest.last_used_idx; in enable_call()
195 guest.avail_idx, in kick_available()
196 guest.kicked_avail_idx); in kick_available()
198 guest.kicked_avail_idx = guest.avail_idx; in kick_available()