Home
last modified time | relevance | path

Searched refs:cq_off (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/tools/io_uring/
Dsetup.c41 cq->ring_sz = p->cq_off.cqes + p->cq_entries * sizeof(struct io_uring_cqe); in io_uring_mmap()
49 cq->khead = ptr + p->cq_off.head; in io_uring_mmap()
50 cq->ktail = ptr + p->cq_off.tail; in io_uring_mmap()
51 cq->kring_mask = ptr + p->cq_off.ring_mask; in io_uring_mmap()
52 cq->kring_entries = ptr + p->cq_off.ring_entries; in io_uring_mmap()
53 cq->koverflow = ptr + p->cq_off.overflow; in io_uring_mmap()
54 cq->cqes = ptr + p->cq_off.cqes; in io_uring_mmap()
Dio_uring-bench.c449 ptr = mmap(0, p.cq_off.cqes + p.cq_entries * sizeof(struct io_uring_cqe), in setup_ring()
453 cring->head = ptr + p.cq_off.head; in setup_ring()
454 cring->tail = ptr + p.cq_off.tail; in setup_ring()
455 cring->ring_mask = ptr + p.cq_off.ring_mask; in setup_ring()
456 cring->ring_entries = ptr + p.cq_off.ring_entries; in setup_ring()
457 cring->cqes = ptr + p.cq_off.cqes; in setup_ring()
/Linux-v5.10/include/uapi/linux/
Dio_uring.h243 struct io_cqring_offsets cq_off; member
/Linux-v5.10/fs/
Dio_uring.c9359 memset(&p->cq_off, 0, sizeof(p->cq_off)); in io_uring_create()
9360 p->cq_off.head = offsetof(struct io_rings, cq.head); in io_uring_create()
9361 p->cq_off.tail = offsetof(struct io_rings, cq.tail); in io_uring_create()
9362 p->cq_off.ring_mask = offsetof(struct io_rings, cq_ring_mask); in io_uring_create()
9363 p->cq_off.ring_entries = offsetof(struct io_rings, cq_ring_entries); in io_uring_create()
9364 p->cq_off.overflow = offsetof(struct io_rings, cq_overflow); in io_uring_create()
9365 p->cq_off.cqes = offsetof(struct io_rings, cqes); in io_uring_create()
9366 p->cq_off.flags = offsetof(struct io_rings, cq_flags); in io_uring_create()