Lines Matching refs:nr_ops
133 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, pages_per_mr); in rdma_rw_init_mr_wrs()
134 ctx->reg = kcalloc(ctx->nr_ops, sizeof(*ctx->reg), GFP_KERNEL); in rdma_rw_init_mr_wrs()
140 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_init_mr_wrs()
204 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
210 ctx->map.wrs = kcalloc(ctx->nr_ops, sizeof(*ctx->map.wrs), GFP_KERNEL); in rdma_rw_init_map_wrs()
214 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_init_map_wrs()
238 rdma_wr->wr.next = i + 1 < ctx->nr_ops ? in rdma_rw_init_map_wrs()
243 return ctx->nr_ops; in rdma_rw_init_map_wrs()
257 ctx->nr_ops = 1; in rdma_rw_init_single_wr()
401 ctx->nr_ops = 1; in rdma_rw_ctx_signature_init()
506 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_ctx_wrs()
516 last_wr = &ctx->reg[ctx->nr_ops - 1].wr.wr; in rdma_rw_ctx_wrs()
520 last_wr = &ctx->map.wrs[ctx->nr_ops - 1].wr; in rdma_rw_ctx_wrs()
582 for (i = 0; i < ctx->nr_ops; i++) in rdma_rw_ctx_destroy()