Searched refs:sq_off (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/tools/io_uring/ |
D | setup.c | 17 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()
|
D | io_uring-bench.c | 432 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/ |
D | io_uring_zerocopy_tx.c | 175 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/ |
D | io_uring.h | 445 struct io_sqring_offsets sq_off; member
|
/linux-6.1.9/io_uring/ |
D | io_uring.c | 3496 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()
|