Lines Matching refs:cring
387 struct io_uring_queue *cring = &s->cq_ring; in mmap_io_uring() local
390 cring->ring_sz = p.cq_off.cqes + p.cq_entries * sizeof(struct io_uring_cqe); in mmap_io_uring()
393 if (cring->ring_sz > sring->ring_sz) in mmap_io_uring()
394 sring->ring_sz = cring->ring_sz; in mmap_io_uring()
396 cring->ring_sz = sring->ring_sz; in mmap_io_uring()
411 cq_ptr = mmap(0, cring->ring_sz, PROT_READ | PROT_WRITE, in mmap_io_uring()
436 munmap(cq_ptr, cring->ring_sz); in mmap_io_uring()
441 cring->head = cq_ptr + p.cq_off.head; in mmap_io_uring()
442 cring->tail = cq_ptr + p.cq_off.tail; in mmap_io_uring()
443 cring->ring_mask = cq_ptr + p.cq_off.ring_mask; in mmap_io_uring()
444 cring->ring_entries = cq_ptr + p.cq_off.ring_entries; in mmap_io_uring()
445 cring->queue.cqes = cq_ptr + p.cq_off.cqes; in mmap_io_uring()
470 struct io_uring_queue *cring = &s->cq_ring; in handle_uring_cq() local
475 head = *cring->head; in handle_uring_cq()
479 if (head == *cring->tail) in handle_uring_cq()
482 cqe = &cring->queue.cqes[head & *s->cq_ring.ring_mask]; in handle_uring_cq()
495 *cring->head = head; in handle_uring_cq()