Lines Matching refs:mr

236 static inline void iser_inv_rkey(struct ib_send_wr *inv_wr, struct ib_mr *mr,  in iser_inv_rkey()  argument
241 inv_wr->ex.invalidate_rkey = mr->rkey; in iser_inv_rkey()
255 struct ib_mr *mr = rsc->sig_mr; in iser_reg_sig_mr() local
256 struct ib_sig_attrs *sig_attrs = mr->sig_attrs; in iser_reg_sig_mr()
268 iser_inv_rkey(&tx_desc->inv_wr, mr, cqe, &wr->wr); in iser_reg_sig_mr()
270 ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey)); in iser_reg_sig_mr()
272 ret = ib_map_mr_sg_pi(mr, mem->sg, mem->dma_nents, NULL, in iser_reg_sig_mr()
286 wr->mr = mr; in iser_reg_sig_mr()
287 wr->key = mr->rkey; in iser_reg_sig_mr()
293 sig_reg->sge.lkey = mr->lkey; in iser_reg_sig_mr()
294 sig_reg->rkey = mr->rkey; in iser_reg_sig_mr()
295 sig_reg->sge.addr = mr->iova; in iser_reg_sig_mr()
296 sig_reg->sge.length = mr->length; in iser_reg_sig_mr()
312 struct ib_mr *mr = rsc->mr; in iser_fast_reg_mr() local
316 if (rsc->mr->need_inval) in iser_fast_reg_mr()
317 iser_inv_rkey(&tx_desc->inv_wr, mr, cqe, &wr->wr); in iser_fast_reg_mr()
319 ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey)); in iser_fast_reg_mr()
321 n = ib_map_mr_sg(mr, mem->sg, mem->dma_nents, NULL, SZ_4K); in iser_fast_reg_mr()
333 wr->mr = mr; in iser_fast_reg_mr()
334 wr->key = mr->rkey; in iser_fast_reg_mr()
339 rsc->mr->need_inval = true; in iser_fast_reg_mr()
341 reg->sge.lkey = mr->lkey; in iser_fast_reg_mr()
342 reg->rkey = mr->rkey; in iser_fast_reg_mr()
343 reg->sge.addr = mr->iova; in iser_fast_reg_mr()
344 reg->sge.length = mr->length; in iser_fast_reg_mr()