Lines Matching refs:sge
119 reg->sge.addr = reg->mr->iova; in rdma_rw_init_one_mr()
120 reg->sge.length = reg->mr->length; in rdma_rw_init_one_mr()
159 reg->wr.wr.sg_list = ®->sge; in rdma_rw_init_mr_wrs()
173 remote_addr += reg->sge.length; in rdma_rw_init_mr_wrs()
201 struct ib_sge *sge; in rdma_rw_init_map_wrs() local
206 ctx->map.sges = sge = kcalloc(sg_cnt, sizeof(*sge), GFP_KERNEL); in rdma_rw_init_map_wrs()
225 rdma_wr->wr.sg_list = sge; in rdma_rw_init_map_wrs()
228 sge->addr = sg_dma_address(sg) + offset; in rdma_rw_init_map_wrs()
229 sge->length = sg_dma_len(sg) - offset; in rdma_rw_init_map_wrs()
230 sge->lkey = qp->pd->local_dma_lkey; in rdma_rw_init_map_wrs()
232 total_len += sge->length; in rdma_rw_init_map_wrs()
233 sge++; in rdma_rw_init_map_wrs()
259 ctx->single.sge.lkey = qp->pd->local_dma_lkey; in rdma_rw_init_single_wr()
260 ctx->single.sge.addr = sg_dma_address(sg) + offset; in rdma_rw_init_single_wr()
261 ctx->single.sge.length = sg_dma_len(sg) - offset; in rdma_rw_init_single_wr()
268 rdma_wr->wr.sg_list = &ctx->single.sge; in rdma_rw_init_single_wr()
437 ctx->reg->sge.addr = ctx->reg->mr->iova; in rdma_rw_ctx_signature_init()
438 ctx->reg->sge.length = ctx->reg->mr->length; in rdma_rw_ctx_signature_init()
440 ctx->reg->sge.length -= ctx->reg->mr->sig_attrs->meta_length; in rdma_rw_ctx_signature_init()
443 rdma_wr->wr.sg_list = &ctx->reg->sge; in rdma_rw_ctx_signature_init()
480 reg->sge.lkey = reg->mr->lkey; in rdma_rw_update_lkey()