Lines Matching defs:nr
115 info->nr = 0;
138 info->nr = 0;
172 info->nr = nr_events; /* trusted copy */
175 ring->nr = nr_events; /* user copy */
195 #define aio_ring_event(info, nr, km) ({ \
196 unsigned pos = (nr) + AIO_EVENTS_OFFSET; \
318 ctx, ctx->user_id, current->mm, ctx->ring_info.nr);
961 if (++tail >= info->nr)
1024 (unsigned long)ring->nr);
1031 head = ring->head % info->nr;
1035 head = (head + 1) % info->nr;
1087 long min_nr, long nr,
1106 while (likely(i < nr)) {
1151 while (likely(i < nr)) {
1653 long do_io_submit(aio_context_t ctx_id, long nr,
1661 if (unlikely(nr < 0))
1664 if (unlikely(nr > LONG_MAX/sizeof(*iocbpp)))
1665 nr = LONG_MAX/sizeof(*iocbpp);
1667 if (unlikely(!access_ok(VERIFY_READ, iocbpp, (nr*sizeof(*iocbpp)))))
1680 for (i=0; i<nr; i++) {
1705 * Queue the nr iocbs pointed to by iocbpp for processing. Returns
1707 * specified by ctx_id is invalid, if nr is < 0, if the iocb at
1713 * are available to queue any iocbs. Will return 0 if nr is 0. Will
1716 SYSCALL_DEFINE3(io_submit, aio_context_t, ctx_id, long, nr,
1719 return do_io_submit(ctx_id, nr, iocbpp, 0);
1802 * Attempts to read at least min_nr events and up to nr events from
1805 * -EINVAL if ctx_id is invalid, if min_nr is out of range, if nr is
1816 long, nr,
1824 if (likely(min_nr <= nr && min_nr >= 0 && nr >= 0))
1825 ret = read_events(ioctx, min_nr, nr, events, timeout);
1829 asmlinkage_protect(5, ret, ctx_id, min_nr, nr, events, timeout);