Lines Matching refs:sq_entries
1750 (unsigned)(sqe - ctx->sq_sqes) >= ctx->sq_entries - 1) in io_init_req()
1980 unsigned mask = ctx->sq_entries - 1; in io_get_sqe()
1986 if (unlikely(head >= ctx->sq_entries)) { in io_get_sqe()
1991 head = array_index_nospec(head, ctx->sq_entries); in io_get_sqe()
2018 entries = ctx->sq_entries; in io_submit_sqes()
2075 static int rings_size(unsigned int flags, unsigned int sq_entries, in rings_size() argument
2087 if (sq_entries < 2) in rings_size()
2097 rl->sq_size = array_size(sqe_size, sq_entries); in rings_size()
2118 sq_array_size = array_size(sizeof(u32), sq_entries); in rings_size()
2724 ctx->sq_entries = p->sq_entries; in io_allocate_scq_urings()
2755 WRITE_ONCE(rings->sq_ring_mask, ctx->sq_entries - 1); in io_allocate_scq_urings()
2757 WRITE_ONCE(rings->sq_ring_entries, ctx->sq_entries); in io_allocate_scq_urings()
2849 unsigned entries = p->sq_entries; in io_uring_fill_params()
2867 p->sq_entries = roundup_pow_of_two(entries); in io_uring_fill_params()
2882 if (p->cq_entries < p->sq_entries) in io_uring_fill_params()
2885 p->cq_entries = 2 * p->sq_entries; in io_uring_fill_params()
2904 ret = rings_size(p->flags, p->sq_entries, p->cq_entries, in io_prepare_config()
3079 trace_io_uring_create(ret, ctx, p->sq_entries, p->cq_entries, p->flags); in io_uring_create()
3106 config.p.sq_entries = entries; in io_uring_setup()