Lines Matching refs:ring
196 struct io_sq_ring *ring = &s->sq_ring; in prep_more_ios() local
199 next_tail = tail = *ring->tail; in prep_more_ios()
203 if (next_tail == *ring->head) in prep_more_ios()
208 ring->array[index] = index; in prep_more_ios()
213 if (*ring->tail != tail) { in prep_more_ios()
216 *ring->tail = tail; in prep_more_ios()
246 struct io_cq_ring *ring = &s->cq_ring; in reap_events() local
250 head = *ring->head; in reap_events()
255 if (head == *ring->tail) in reap_events()
257 cqe = &ring->cqes[head & cq_ring_mask]; in reap_events()
273 *ring->head = head; in reap_events()
281 struct io_sq_ring *ring = &s->sq_ring; in submitter_fn() local
309 if (!sq_thread_poll || (*ring->flags & IORING_SQ_NEED_WAKEUP)) { in submitter_fn()
314 if ((*ring->flags & IORING_SQ_NEED_WAKEUP)) in submitter_fn()