Lines Matching refs:ib_mr

392 	struct ib_mr *ib_mr = &fence->mr->ib_mr;  in bnxt_re_create_fence_wqe()  local
401 wqe->bind.parent_l_key = ib_mr->lkey; in bnxt_re_create_fence_wqe()
453 if (mr->ib_mr.rkey) in bnxt_re_destroy_fence_mr()
456 if (mr->ib_mr.lkey) in bnxt_re_destroy_fence_mr()
508 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr()
517 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_create_fence_mr()
2454 struct bnxt_re_mr *mr = container_of(wr->mr, struct bnxt_re_mr, ib_mr); in bnxt_re_build_reg_wqe()
3575 struct ib_mr *bnxt_re_get_dma_mr(struct ib_pd *ib_pd, int mr_access_flags) in bnxt_re_get_dma_mr()
3603 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_get_dma_mr()
3606 mr->ib_mr.rkey = mr->ib_mr.lkey; in bnxt_re_get_dma_mr()
3609 return &mr->ib_mr; in bnxt_re_get_dma_mr()
3618 int bnxt_re_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) in bnxt_re_dereg_mr() argument
3620 struct bnxt_re_mr *mr = container_of(ib_mr, struct bnxt_re_mr, ib_mr); in bnxt_re_dereg_mr()
3644 static int bnxt_re_set_page(struct ib_mr *ib_mr, u64 addr) in bnxt_re_set_page() argument
3646 struct bnxt_re_mr *mr = container_of(ib_mr, struct bnxt_re_mr, ib_mr); in bnxt_re_set_page()
3655 int bnxt_re_map_mr_sg(struct ib_mr *ib_mr, struct scatterlist *sg, int sg_nents, in bnxt_re_map_mr_sg() argument
3658 struct bnxt_re_mr *mr = container_of(ib_mr, struct bnxt_re_mr, ib_mr); in bnxt_re_map_mr_sg()
3661 return ib_sg_to_pages(ib_mr, sg, sg_nents, sg_offset, bnxt_re_set_page); in bnxt_re_map_mr_sg()
3664 struct ib_mr *bnxt_re_alloc_mr(struct ib_pd *ib_pd, enum ib_mr_type type, in bnxt_re_alloc_mr()
3692 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_alloc_mr()
3693 mr->ib_mr.rkey = mr->ib_mr.lkey; in bnxt_re_alloc_mr()
3709 return &mr->ib_mr; in bnxt_re_alloc_mr()
3770 struct ib_mr *bnxt_re_reg_user_mr(struct ib_pd *ib_pd, u64 start, u64 length, in bnxt_re_reg_user_mr()
3802 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_reg_user_mr()
3830 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_reg_user_mr()
3831 mr->ib_mr.rkey = mr->qplib_mr.lkey; in bnxt_re_reg_user_mr()
3834 return &mr->ib_mr; in bnxt_re_reg_user_mr()