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. */
91 static void evtchn_free_ring(evtchn_port_t *ring)
93 kvfree(ring);
105 return u->ring + evtchn_ring_offset(u, idx);
185 smp_wmb(); /* Ensure ring contents visible */
239 /* Byte lengths of two chunks. Chunk split (if any) is at ring wrap. */
261 copy_to_user(&buf[bytes1], &u->ring[0], bytes2)))
324 * Ensure the ring is large enough to capture all possible
339 old_ring = u->ring;
342 * Access to the ring contents is serialized by either the
349 * Copy the old ring contents to the new ring.
351 * To take care of wrapping, a full ring, and the new index
359 memcpy(new_ring, old_ring, u->ring_size * sizeof(*u->ring));
361 u->ring_size * sizeof(*u->ring));
363 u->ring = new_ring;
580 /* Initialise the ring to empty. Clear errors. */
681 evtchn_free_ring(u->ring);