Lines Matching refs:tail
61 unsigned tail; member
158 unsigned tail; member
577 ring->head = ring->tail = 0; in aio_setup_ring()
991 unsigned tail) in refill_reqs_available() argument
997 if (head <= tail) in refill_reqs_available()
998 events_in_ring = tail - head; in refill_reqs_available()
1000 events_in_ring = ctx->nr_events - (head - tail); in refill_reqs_available()
1039 refill_reqs_available(ctx, head, ctx->tail); in user_refill_reqs_available()
1127 unsigned tail, pos, head; in aio_complete() local
1137 tail = ctx->tail; in aio_complete()
1138 pos = tail + AIO_EVENTS_OFFSET; in aio_complete()
1140 if (++tail >= ctx->nr_events) in aio_complete()
1141 tail = 0; in aio_complete()
1151 pr_debug("%p[%u]: %p: %p %Lx %Lx %Lx\n", ctx, tail, iocb, in aio_complete()
1160 ctx->tail = tail; in aio_complete()
1164 ring->tail = tail; in aio_complete()
1170 refill_reqs_available(ctx, head, tail); in aio_complete()
1173 pr_debug("added to ring %p at [%u]\n", iocb, tail); in aio_complete()
1211 unsigned head, tail, pos; in aio_read_events_ring() local
1227 tail = ring->tail; in aio_read_events_ring()
1236 pr_debug("h%u t%u m%u\n", head, tail, ctx->nr_events); in aio_read_events_ring()
1238 if (head == tail) in aio_read_events_ring()
1242 tail %= ctx->nr_events; in aio_read_events_ring()
1249 avail = (head <= tail ? tail : ctx->nr_events) - head; in aio_read_events_ring()
1250 if (head == tail) in aio_read_events_ring()
1280 pr_debug("%li h%u t%u\n", ret, head, tail); in aio_read_events_ring()