Lines Matching refs:tail
57 unsigned tail; member
149 unsigned tail; member
532 ring->head = ring->tail = 0; in aio_setup_ring()
968 unsigned tail) in refill_reqs_available() argument
974 if (head <= tail) in refill_reqs_available()
975 events_in_ring = tail - head; in refill_reqs_available()
977 events_in_ring = ctx->nr_events - (head - tail); in refill_reqs_available()
1016 refill_reqs_available(ctx, head, ctx->tail); in user_refill_reqs_available()
1094 unsigned tail, pos, head; in aio_complete() local
1133 tail = ctx->tail; in aio_complete()
1134 pos = tail + AIO_EVENTS_OFFSET; in aio_complete()
1136 if (++tail >= ctx->nr_events) in aio_complete()
1137 tail = 0; in aio_complete()
1151 ctx, tail, iocb, iocb->ki_user_iocb, iocb->ki_user_data, in aio_complete()
1159 ctx->tail = tail; in aio_complete()
1163 ring->tail = tail; in aio_complete()
1169 refill_reqs_available(ctx, head, tail); in aio_complete()
1172 pr_debug("added to ring %p at [%u]\n", iocb, tail); in aio_complete()
1207 unsigned head, tail, pos; in aio_read_events_ring() local
1223 tail = ring->tail; in aio_read_events_ring()
1232 pr_debug("h%u t%u m%u\n", head, tail, ctx->nr_events); in aio_read_events_ring()
1234 if (head == tail) in aio_read_events_ring()
1238 tail %= ctx->nr_events; in aio_read_events_ring()
1245 avail = (head <= tail ? tail : ctx->nr_events) - head; in aio_read_events_ring()
1246 if (head == tail) in aio_read_events_ring()
1277 pr_debug("%li h%u t%u\n", ret, head, tail); in aio_read_events_ring()