Lines Matching defs:ring
390 struct spdk_aio_ring *ring;
394 ring = (struct spdk_aio_ring *)io_ctx;
396 if (spdk_unlikely(ring->version != SPDK_AIO_RING_VERSION || ring->incompat_features != 0)) {
403 /* Read the current state out of the ring */
404 head = ring->head;
405 tail = ring->tail;
412 /* Calculate how many items are in the circular ring */
415 count += ring->size;
422 kevents = (struct io_event *)((uintptr_t)ring + ring->header_length);
424 /* Copy the events out of the ring. */
425 if ((head + count) <= ring->size) {
429 uint32_t first_part = ring->size - head;
444 ring->head = (head + count) % ring->size;