Lines Matching defs:ring
66 /* Notification ring, accessed via /dev/xen/evtchn. */
68 evtchn_port_t *ring;
73 /* Processes wait on this queue when ring is empty. */
90 static void evtchn_free_ring(evtchn_port_t *ring)
92 kvfree(ring);
104 return u->ring + evtchn_ring_offset(u, idx);
176 wmb(); /* Ensure ring contents visible */
229 /* Byte lengths of two chunks. Chunk split (if any) is at ring wrap. */
251 copy_to_user(&buf[bytes1], &u->ring[0], bytes2)))
314 * Ensure the ring is large enough to capture all possible
329 old_ring = u->ring;
332 * Access to the ring contents is serialized by either the
339 * Copy the old ring contents to the new ring.
341 * To take care of wrapping, a full ring, and the new index
349 memcpy(new_ring, old_ring, u->ring_size * sizeof(*u->ring));
351 u->ring_size * sizeof(*u->ring));
353 u->ring = new_ring;
584 /* Initialise the ring to empty. Clear errors. */
683 evtchn_free_ring(u->ring);