Home
last modified time | relevance | path

Searched refs:cq (Results 1 – 5 of 5) sorted by relevance

/tools/io_uring/
Dsetup.c11 struct io_uring_sq *sq, struct io_uring_cq *cq) in io_uring_mmap() argument
41 cq->ring_sz = p->cq_off.cqes + p->cq_entries * sizeof(struct io_uring_cqe); in io_uring_mmap()
42 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, 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()
69 ret = io_uring_mmap(fd, p, &ring->sq, &ring->cq); in io_uring_queue_mmap()
[all …]
Dqueue.c14 struct io_uring_cq *cq = &ring->cq; in __io_uring_get_cqe() local
15 const unsigned mask = *cq->kring_mask; in __io_uring_get_cqe()
20 head = *cq->khead; in __io_uring_get_cqe()
30 if (head != *cq->ktail) { in __io_uring_get_cqe()
31 *cqe_ptr = &cq->cqes[head & mask]; in __io_uring_get_cqe()
Dliburing.h48 struct io_uring_cq cq; member
84 struct io_uring_cq *cq = &ring->cq; in io_uring_cqe_seen() local
86 (*cq->khead)++; in io_uring_cqe_seen()
/tools/testing/selftests/bpf/
Dxdpxceiver.h87 struct xsk_ring_cons cq; member
Dxdpxceiver.c255 &umem->fq, &umem->cq, &cfg); in xsk_configure_umem()
567 rcvd = xsk_ring_cons__peek(&xsk->umem->cq, batch_size, &idx); in complete_pkts()
569 xsk_ring_cons__release(&xsk->umem->cq, rcvd); in complete_pkts()