Lines Matching refs:cq_entries
293 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
620 if (!dying && __io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
781 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in io_cqe_cache_refill()
793 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in io_cqe_cache_refill()
794 free = ctx->cq_entries - queued; in io_cqe_cache_refill()
796 len = min(free, ctx->cq_entries - off); in io_cqe_cache_refill()
2676 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2681 off = struct_size(rings, cqes, cq_entries); in rings_size()
3376 ctx->cq_entries); in SYSCALL_DEFINE6()
3386 ctx->cq_entries); in SYSCALL_DEFINE6()
3438 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
3440 size = rings_size(ctx, p->sq_entries, p->cq_entries, &sq_array_offset); in io_allocate_scq_urings()
3456 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
3458 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
3541 if (!p->cq_entries) in io_uring_create()
3543 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_create()
3546 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_create()
3548 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_create()
3549 if (p->cq_entries < p->sq_entries) in io_uring_create()
3552 p->cq_entries = 2 * p->sq_entries; in io_uring_create()
3706 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()