Lines Matching refs:cq_entries
289 hash_bits = ilog2(p->cq_entries) - 5; in io_ring_ctx_alloc()
609 if (!force && __io_cqring_events(ctx) == ctx->cq_entries) in __io_cqring_overflow_flush()
747 unsigned int off = ctx->cached_cq_tail & (ctx->cq_entries - 1); in __io_get_cqe()
759 queued = min(__io_cqring_events(ctx), ctx->cq_entries); in __io_get_cqe()
760 free = ctx->cq_entries - queued; in __io_get_cqe()
762 len = min(free, ctx->cq_entries - off); in __io_get_cqe()
2459 unsigned int cq_entries, size_t *sq_offset) in rings_size() argument
2464 off = struct_size(rings, cqes, cq_entries); in rings_size()
3235 ctx->cq_entries); in SYSCALL_DEFINE6()
3246 ctx->cq_entries); in SYSCALL_DEFINE6()
3296 ctx->cq_entries = p->cq_entries; in io_allocate_scq_urings()
3298 size = rings_size(ctx, p->sq_entries, p->cq_entries, &sq_array_offset); in io_allocate_scq_urings()
3309 rings->cq_ring_mask = p->cq_entries - 1; in io_allocate_scq_urings()
3311 rings->cq_ring_entries = p->cq_entries; in io_allocate_scq_urings()
3411 if (!p->cq_entries) in io_uring_create()
3413 if (p->cq_entries > IORING_MAX_CQ_ENTRIES) { in io_uring_create()
3416 p->cq_entries = IORING_MAX_CQ_ENTRIES; in io_uring_create()
3418 p->cq_entries = roundup_pow_of_two(p->cq_entries); in io_uring_create()
3419 if (p->cq_entries < p->sq_entries) in io_uring_create()
3422 p->cq_entries = 2 * p->sq_entries; in io_uring_create()
3548 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()