Home
last modified time | relevance | path

Searched refs:cq_entries (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/io_uring/
Dfdinfo.c57 unsigned int sq_mask = ctx->sq_entries - 1, cq_mask = ctx->cq_entries - 1; in __io_uring_show_fdinfo()
64 unsigned int sq_entries, cq_entries; in __io_uring_show_fdinfo() local
119 cq_entries = min(cq_tail - cq_head, ctx->cq_entries); in __io_uring_show_fdinfo()
120 for (i = 0; i < cq_entries; i++) { in __io_uring_show_fdinfo()
Dio_uring.c289 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
609 if (!force && __io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
747 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in __io_get_cqe()
759 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in __io_get_cqe()
760 free = ctx->cq_entries - queued; in __io_get_cqe()
762 len = min(free, ctx->cq_entries - off); in __io_get_cqe()
2459 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2464 off = struct_size(rings, cqes, cq_entries); in rings_size()
3235 ctx->cq_entries); in SYSCALL_DEFINE6()
3246 ctx->cq_entries); in SYSCALL_DEFINE6()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hns/
Dhns_roce_cq.c314 static void set_cq_param(struct hns_roce_cq *hr_cq, u32 cq_entries, int vector, in set_cq_param() argument
319 cq_entries = max(cq_entries, hr_dev->caps.min_cqes); in set_cq_param()
320 cq_entries = roundup_pow_of_two(cq_entries); in set_cq_param()
321 hr_cq->ib_cq.cqe = cq_entries - 1; /* used as cqe index */ in set_cq_param()
322 hr_cq->cq_depth = cq_entries; in set_cq_param()
/linux-6.1.9/include/trace/events/
Dio_uring.h29 TP_PROTO(int fd, void *ctx, u32 sq_entries, u32 cq_entries, u32 flags),
31 TP_ARGS(fd, ctx, sq_entries, cq_entries, flags),
37 __field( u32, cq_entries )
45 __entry->cq_entries = cq_entries;
51 __entry->cq_entries, __entry->flags)
/linux-6.1.9/tools/io_uring/
Dsetup.c41 cq->ring_sz = p->cq_off.cqes + p->cq_entries * sizeof(struct io_uring_cqe); 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()
/linux-6.1.9/include/uapi/linux/
Dio_uring.h438 __u32 cq_entries; member
/linux-6.1.9/include/linux/
Dio_uring_types.h282 unsigned cq_entries; member
/linux-6.1.9/tools/testing/selftests/net/
Dio_uring_zerocopy_tx.c198 cq->ring_sz = p->cq_off.cqes + p->cq_entries * sizeof(struct io_uring_cqe); in io_uring_mmap()