Lines Matching refs:sq_entries
2208 unsigned head, mask = ctx->sq_entries - 1; in io_get_sqe()
2220 if (likely(head < ctx->sq_entries)) { in io_get_sqe()
2244 ret = left = min3(nr, ctx->sq_entries, entries); in io_submit_sqes()
2458 static unsigned long rings_size(struct io_ring_ctx *ctx, unsigned int sq_entries, in rings_size() argument
2481 sq_array_size = array_size(sizeof(u32), sq_entries); in rings_size()
3295 ctx->sq_entries = p->sq_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()
3308 rings->sq_ring_mask = p->sq_entries - 1; in io_allocate_scq_urings()
3310 rings->sq_ring_entries = p->sq_entries; in io_allocate_scq_urings()
3314 size = array_size(2 * sizeof(struct io_uring_sqe), p->sq_entries); in io_allocate_scq_urings()
3316 size = array_size(sizeof(struct io_uring_sqe), p->sq_entries); in io_allocate_scq_urings()
3404 p->sq_entries = roundup_pow_of_two(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()