Lines Matching refs:sq_entries

277 		unsigned		sq_entries;  member
6437 if (likely(head < ctx->sq_entries)) in io_get_sqe()
6557 nr = min3(nr, ctx->sq_entries, io_sqring_entries(ctx)); in io_submit_sqes()
7706 concurrency = min(ctx->sq_entries, 4 * num_online_cpus()); in io_init_wq_offload()
7937 static unsigned long rings_size(unsigned sq_entries, unsigned cq_entries, in rings_size() argument
7956 sq_array_size = array_size(sizeof(u32), sq_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()
7973 array_size(sizeof(struct io_uring_sqe), sq_entries)); in ring_pages()
8402 io_unaccount_mem(ctx, ring_pages(ctx->sq_entries, ctx->cq_entries), in io_ring_ctx_wait_and_kill()
9139 ctx->sq_entries = p->sq_entries; in io_allocate_scq_urings()
9142 size = rings_size(p->sq_entries, p->cq_entries, &sq_array_offset); in io_allocate_scq_urings()
9152 rings->sq_ring_mask = p->sq_entries - 1; in io_allocate_scq_urings()
9154 rings->sq_ring_entries = p->sq_entries; in io_allocate_scq_urings()
9159 size = array_size(sizeof(struct io_uring_sqe), p->sq_entries); in io_allocate_scq_urings()
9251 p->sq_entries = roundup_pow_of_two(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()
9287 __io_unaccount_mem(user, ring_pages(p->sq_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()