Lines Matching full:wr
81 reg->inv_wr.next = ®->reg_wr.wr; in rdma_rw_inv_key()
112 reg->reg_wr.wr.opcode = IB_WR_REG_MR; in rdma_rw_init_one_mr()
152 prev->wr.wr.next = ®->inv_wr; in rdma_rw_init_mr_wrs()
154 prev->wr.wr.next = ®->reg_wr.wr; in rdma_rw_init_mr_wrs()
157 reg->reg_wr.wr.next = ®->wr.wr; in rdma_rw_init_mr_wrs()
159 reg->wr.wr.sg_list = ®->sge; in rdma_rw_init_mr_wrs()
160 reg->wr.wr.num_sge = 1; in rdma_rw_init_mr_wrs()
161 reg->wr.remote_addr = remote_addr; in rdma_rw_init_mr_wrs()
162 reg->wr.rkey = rkey; in rdma_rw_init_mr_wrs()
164 reg->wr.wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_init_mr_wrs()
166 reg->wr.wr.opcode = IB_WR_RDMA_READ; in rdma_rw_init_mr_wrs()
168 reg->wr.wr.opcode = IB_WR_RDMA_READ_WITH_INV; in rdma_rw_init_mr_wrs()
169 reg->wr.wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_init_mr_wrs()
182 prev->wr.wr.next = NULL; in rdma_rw_init_mr_wrs()
219 rdma_wr->wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_init_map_wrs()
221 rdma_wr->wr.opcode = IB_WR_RDMA_READ; in rdma_rw_init_map_wrs()
224 rdma_wr->wr.num_sge = nr_sge; in rdma_rw_init_map_wrs()
225 rdma_wr->wr.sg_list = sge; in rdma_rw_init_map_wrs()
238 rdma_wr->wr.next = i + 1 < ctx->nr_ops ? in rdma_rw_init_map_wrs()
239 &ctx->map.wrs[i + 1].wr : NULL; in rdma_rw_init_map_wrs()
255 struct ib_rdma_wr *rdma_wr = &ctx->single.wr; in rdma_rw_init_single_wr()
265 rdma_wr->wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_init_single_wr()
267 rdma_wr->wr.opcode = IB_WR_RDMA_READ; in rdma_rw_init_single_wr()
268 rdma_wr->wr.sg_list = &ctx->single.sge; in rdma_rw_init_single_wr()
269 rdma_wr->wr.num_sge = 1; in rdma_rw_init_single_wr()
426 ctx->reg->reg_wr.wr.opcode = IB_WR_REG_MR_INTEGRITY; in rdma_rw_ctx_signature_init()
427 ctx->reg->reg_wr.wr.wr_cqe = NULL; in rdma_rw_ctx_signature_init()
428 ctx->reg->reg_wr.wr.num_sge = 0; in rdma_rw_ctx_signature_init()
429 ctx->reg->reg_wr.wr.send_flags = 0; in rdma_rw_ctx_signature_init()
442 rdma_wr = &ctx->reg->wr; in rdma_rw_ctx_signature_init()
443 rdma_wr->wr.sg_list = &ctx->reg->sge; in rdma_rw_ctx_signature_init()
444 rdma_wr->wr.num_sge = 1; in rdma_rw_ctx_signature_init()
448 rdma_wr->wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_ctx_signature_init()
450 rdma_wr->wr.opcode = IB_WR_RDMA_READ; in rdma_rw_ctx_signature_init()
451 ctx->reg->reg_wr.wr.next = &rdma_wr->wr; in rdma_rw_ctx_signature_init()
488 * @cqe: completion queue entry for the last WR
489 * @chain_wr: WR to append to the posted chain
491 * Return the WR chain for the set of RDMA READ/WRITE operations described by
493 * is non-NULL the WR it points to will be appended to the chain of WRs posted.
508 ctx->reg[i].wr.wr.opcode != in rdma_rw_ctx_wrs()
515 first_wr = &ctx->reg[0].reg_wr.wr; in rdma_rw_ctx_wrs()
516 last_wr = &ctx->reg[ctx->nr_ops - 1].wr.wr; in rdma_rw_ctx_wrs()
519 first_wr = &ctx->map.wrs[0].wr; in rdma_rw_ctx_wrs()
520 last_wr = &ctx->map.wrs[ctx->nr_ops - 1].wr; in rdma_rw_ctx_wrs()
523 first_wr = &ctx->single.wr.wr; in rdma_rw_ctx_wrs()
524 last_wr = &ctx->single.wr.wr; in rdma_rw_ctx_wrs()
546 * @cqe: completion queue entry for the last WR
547 * @chain_wr: WR to append to the posted chain
551 * WR it points to will be appended to the chain of WRs posted. If @chain_wr
661 * Each context needs at least one RDMA READ or WRITE WR. in rdma_rw_init_qp()