Lines Matching refs:cq_entries
300 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
699 if (__io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
857 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in io_cqe_cache_refill()
869 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in io_cqe_cache_refill()
870 free = ctx->cq_entries - queued; in io_cqe_cache_refill()
872 len = min(free, ctx->cq_entries - off); in io_cqe_cache_refill()
2810 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2815 off = struct_size(rings, cqes, cq_entries); in rings_size()
3721 ctx->cq_entries); in SYSCALL_DEFINE6()
3732 ctx->cq_entries); in SYSCALL_DEFINE6()
3786 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
3788 size = rings_size(ctx, p->sq_entries, p->cq_entries, &sq_array_offset); in io_allocate_scq_urings()
3804 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
3806 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
3888 if (!p->cq_entries) in io_uring_create()
3890 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_create()
3893 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_create()
3895 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_create()
3896 if (p->cq_entries < p->sq_entries) in io_uring_create()
3899 p->cq_entries = 2 * p->sq_entries; in io_uring_create()
4049 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()