Lines Matching refs:cq_entries
353 unsigned cq_entries; member
1147 hash_bits = ilog2(p->cq_entries); in io_ring_ctx_alloc()
7937 static unsigned long rings_size(unsigned sq_entries, unsigned cq_entries, in rings_size() argument
7943 off = struct_size(rings, cqes, cq_entries); in rings_size()
7966 static unsigned long ring_pages(unsigned sq_entries, unsigned cq_entries) in ring_pages() argument
7971 rings_size(sq_entries, cq_entries, NULL)); in ring_pages()
8402 io_unaccount_mem(ctx, ring_pages(ctx->sq_entries, ctx->cq_entries), in io_ring_ctx_wait_and_kill()
8991 min_complete = min(min_complete, ctx->cq_entries); in SYSCALL_DEFINE6()
9140 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
9142 size = rings_size(p->sq_entries, p->cq_entries, &sq_array_offset); in io_allocate_scq_urings()
9153 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
9155 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
9258 if (!p->cq_entries) in io_uring_create()
9260 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_create()
9263 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_create()
9265 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_create()
9266 if (p->cq_entries < p->sq_entries) in io_uring_create()
9269 p->cq_entries = 2 * p->sq_entries; in io_uring_create()
9277 ring_pages(p->sq_entries, p->cq_entries)); in io_uring_create()
9288 p->cq_entries)); in io_uring_create()
9335 io_account_mem(ctx, ring_pages(p->sq_entries, p->cq_entries), in io_uring_create()
9386 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()