Home
last modified time | relevance | path

Searched refs:sq_off (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/tools/io_uring/
Dsetup.c17 sq->ring_sz = p->sq_off.array + p->sq_entries * sizeof(unsigned); in io_uring_mmap()
22 sq->khead = ptr + p->sq_off.head; in io_uring_mmap()
23 sq->ktail = ptr + p->sq_off.tail; in io_uring_mmap()
24 sq->kring_mask = ptr + p->sq_off.ring_mask; in io_uring_mmap()
25 sq->kring_entries = ptr + p->sq_off.ring_entries; in io_uring_mmap()
26 sq->kflags = ptr + p->sq_off.flags; in io_uring_mmap()
27 sq->kdropped = ptr + p->sq_off.dropped; in io_uring_mmap()
28 sq->array = ptr + p->sq_off.array; in io_uring_mmap()
Dio_uring-bench.c432 ptr = mmap(0, p.sq_off.array + p.sq_entries * sizeof(__u32), in setup_ring()
436 sring->head = ptr + p.sq_off.head; in setup_ring()
437 sring->tail = ptr + p.sq_off.tail; in setup_ring()
438 sring->ring_mask = ptr + p.sq_off.ring_mask; in setup_ring()
439 sring->ring_entries = ptr + p.sq_off.ring_entries; in setup_ring()
440 sring->flags = ptr + p.sq_off.flags; in setup_ring()
441 sring->array = ptr + p.sq_off.array; in setup_ring()
/linux-6.1.9/tools/testing/selftests/net/
Dio_uring_zerocopy_tx.c175 sq->ring_sz = p->sq_off.array + p->sq_entries * sizeof(unsigned); in io_uring_mmap()
180 sq->khead = ptr + p->sq_off.head; in io_uring_mmap()
181 sq->ktail = ptr + p->sq_off.tail; in io_uring_mmap()
182 sq->kring_mask = ptr + p->sq_off.ring_mask; in io_uring_mmap()
183 sq->kring_entries = ptr + p->sq_off.ring_entries; in io_uring_mmap()
184 sq->kflags = ptr + p->sq_off.flags; in io_uring_mmap()
185 sq->kdropped = ptr + p->sq_off.dropped; in io_uring_mmap()
186 sq->array = ptr + p->sq_off.array; in io_uring_mmap()
/linux-6.1.9/include/uapi/linux/
Dio_uring.h445 struct io_sqring_offsets sq_off; member
/linux-6.1.9/io_uring/
Dio_uring.c3496 memset(&p->sq_off, 0, sizeof(p->sq_off)); in io_uring_create()
3497 p->sq_off.head = offsetof(struct io_rings, sq.head); in io_uring_create()
3498 p->sq_off.tail = offsetof(struct io_rings, sq.tail); in io_uring_create()
3499 p->sq_off.ring_mask = offsetof(struct io_rings, sq_ring_mask); in io_uring_create()
3500 p->sq_off.ring_entries = offsetof(struct io_rings, sq_ring_entries); in io_uring_create()
3501 p->sq_off.flags = offsetof(struct io_rings, sq_flags); in io_uring_create()
3502 p->sq_off.dropped = offsetof(struct io_rings, sq_dropped); in io_uring_create()
3503 p->sq_off.array = (char *)ctx->sq_array - (char *)ctx->rings; in io_uring_create()