Lines Matching refs:cq_entries
302 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
625 if (!dying && __io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
775 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in io_cqe_cache_refill()
787 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in io_cqe_cache_refill()
788 free = ctx->cq_entries - queued; in io_cqe_cache_refill()
790 len = min(free, ctx->cq_entries - off); in io_cqe_cache_refill()
2645 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2650 off = struct_size(rings, cqes, cq_entries); in rings_size()
3405 ctx->cq_entries); in SYSCALL_DEFINE6()
3415 ctx->cq_entries); in SYSCALL_DEFINE6()
3468 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
3470 size = rings_size(ctx->flags, p->sq_entries, p->cq_entries, in io_allocate_scq_urings()
3489 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
3491 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
3569 if (!p->cq_entries) in io_uring_fill_params()
3571 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_fill_params()
3574 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_fill_params()
3576 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_fill_params()
3577 if (p->cq_entries < p->sq_entries) in io_uring_fill_params()
3580 p->cq_entries = 2 * p->sq_entries; in io_uring_fill_params()
3755 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()