Lines Matching refs:cq_entries

315 	hash_bits = ilog2(p->cq_entries) - 5;  in io_ring_ctx_alloc()
609 if (!dying && __io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
760 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in io_cqe_cache_refill()
772 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in io_cqe_cache_refill()
773 free = ctx->cq_entries - queued; in io_cqe_cache_refill()
775 len = min(free, ctx->cq_entries - off); in io_cqe_cache_refill()
1505 min_events = min(min_events, ctx->cq_entries); in io_iopoll_check()
2540 min_events = min_t(int, min_events, ctx->cq_entries); in io_cqring_wait()
2666 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2671 off = struct_size(rings, cqes, cq_entries); in rings_size()
3487 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
3489 size = rings_size(ctx->flags, p->sq_entries, p->cq_entries, in io_allocate_scq_urings()
3508 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
3510 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
3622 if (!p->cq_entries) in io_uring_fill_params()
3624 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_fill_params()
3627 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_fill_params()
3629 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_fill_params()
3630 if (p->cq_entries < p->sq_entries) in io_uring_fill_params()
3633 p->cq_entries = 2 * p->sq_entries; in io_uring_fill_params()
3785 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()