Lines Matching refs:reqs_available
87 unsigned reqs_available; member
144 atomic_t reqs_available; member
799 atomic_set(&ctx->reqs_available, ctx->nr_events - 1); in ioctx_alloc()
944 kcpu->reqs_available += nr; in put_reqs_available()
946 while (kcpu->reqs_available >= ctx->req_batch * 2) { in put_reqs_available()
947 kcpu->reqs_available -= ctx->req_batch; in put_reqs_available()
948 atomic_add(ctx->req_batch, &ctx->reqs_available); in put_reqs_available()
962 if (!kcpu->reqs_available) { in __get_reqs_available()
963 int avail = atomic_read(&ctx->reqs_available); in __get_reqs_available()
968 } while (!atomic_try_cmpxchg(&ctx->reqs_available, in __get_reqs_available()
971 kcpu->reqs_available += ctx->req_batch; in __get_reqs_available()
975 kcpu->reqs_available--; in __get_reqs_available()