Lines Matching refs:ptr
14 void *ptr; in io_uring_mmap() local
18 ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap()
20 if (ptr == MAP_FAILED) 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()
42 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap()
44 if (ptr == MAP_FAILED) { in io_uring_mmap()
49 cq->khead = ptr + p->cq_off.head; in io_uring_mmap()
50 cq->ktail = ptr + p->cq_off.tail; in io_uring_mmap()
51 cq->kring_mask = ptr + p->cq_off.ring_mask; in io_uring_mmap()
52 cq->kring_entries = ptr + p->cq_off.ring_entries; in io_uring_mmap()
53 cq->koverflow = ptr + p->cq_off.overflow; in io_uring_mmap()
54 cq->cqes = ptr + p->cq_off.cqes; in io_uring_mmap()