Lines Matching refs:reqs_available
82 unsigned reqs_available; member
139 atomic_t reqs_available; member
766 atomic_set(&ctx->reqs_available, ctx->nr_events - 1); in ioctx_alloc()
911 kcpu->reqs_available += nr; in put_reqs_available()
913 while (kcpu->reqs_available >= ctx->req_batch * 2) { in put_reqs_available()
914 kcpu->reqs_available -= ctx->req_batch; in put_reqs_available()
915 atomic_add(ctx->req_batch, &ctx->reqs_available); in put_reqs_available()
929 if (!kcpu->reqs_available) { in __get_reqs_available()
930 int old, avail = atomic_read(&ctx->reqs_available); in __get_reqs_available()
937 avail = atomic_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
941 kcpu->reqs_available += ctx->req_batch; in __get_reqs_available()
945 kcpu->reqs_available--; in __get_reqs_available()