Lines Matching refs:nr_ops
132 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, pages_per_mr); in rdma_rw_init_mr_wrs()
133 ctx->reg = kcalloc(ctx->nr_ops, sizeof(*ctx->reg), GFP_KERNEL); in rdma_rw_init_mr_wrs()
139 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_init_mr_wrs()
203 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
209 ctx->map.wrs = kcalloc(ctx->nr_ops, sizeof(*ctx->map.wrs), GFP_KERNEL); in rdma_rw_init_map_wrs()
213 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_init_map_wrs()
237 rdma_wr->wr.next = i + 1 < ctx->nr_ops ? in rdma_rw_init_map_wrs()
242 return ctx->nr_ops; in rdma_rw_init_map_wrs()
256 ctx->nr_ops = 1; in rdma_rw_init_single_wr()
427 ctx->nr_ops = 1; in rdma_rw_ctx_signature_init()
532 for (i = 0; i < ctx->nr_ops; i++) { in rdma_rw_ctx_wrs()
542 last_wr = &ctx->reg[ctx->nr_ops - 1].wr.wr; in rdma_rw_ctx_wrs()
546 last_wr = &ctx->map.wrs[ctx->nr_ops - 1].wr; in rdma_rw_ctx_wrs()
608 for (i = 0; i < ctx->nr_ops; i++) in rdma_rw_ctx_destroy()