Lines Matching refs:qplib_mr

119 						   struct bnxt_qplib_mrw *qplib_mr)  in bnxt_re_check_and_set_relaxed_ordering()  argument
123 qplib_mr->flags |= CMDQ_REGISTER_MR_FLAGS_ENABLE_RO; in bnxt_re_check_and_set_relaxed_ordering()
479 bnxt_qplib_dereg_mrw(&rdev->qplib_res, &mr->qplib_mr, in bnxt_re_destroy_fence_mr()
482 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_destroy_fence_mr()
526 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_create_fence_mr()
527 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_create_fence_mr()
528 mr->qplib_mr.access_flags = __from_ib_access_flags(mr_access_flags); in bnxt_re_create_fence_mr()
530 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_create_fence_mr()
537 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr()
539 mr->qplib_mr.flags = CMDQ_REGISTER_MR_FLAGS_ALLOC_MR; in bnxt_re_create_fence_mr()
541 mr->qplib_mr.va = (u64)(unsigned long)fence->va; in bnxt_re_create_fence_mr()
542 mr->qplib_mr.total_size = BNXT_RE_FENCE_BYTES; in bnxt_re_create_fence_mr()
543 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, NULL, in bnxt_re_create_fence_mr()
549 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_create_fence_mr()
3898 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_get_dma_mr()
3899 mr->qplib_mr.access_flags = __from_ib_access_flags(mr_access_flags); in bnxt_re_get_dma_mr()
3900 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_get_dma_mr()
3903 bnxt_re_check_and_set_relaxed_ordering(rdev, &mr->qplib_mr); in bnxt_re_get_dma_mr()
3906 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_get_dma_mr()
3910 mr->qplib_mr.hwq.level = PBL_LVL_MAX; in bnxt_re_get_dma_mr()
3911 mr->qplib_mr.total_size = -1; /* Infinte length */ in bnxt_re_get_dma_mr()
3912 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, NULL, 0, in bnxt_re_get_dma_mr()
3917 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_get_dma_mr()
3928 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_get_dma_mr()
3940 rc = bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_dereg_mr()
4001 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_alloc_mr()
4002 mr->qplib_mr.access_flags = BNXT_QPLIB_FR_PMR; in bnxt_re_alloc_mr()
4003 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_alloc_mr()
4005 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_alloc_mr()
4009 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_alloc_mr()
4033 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_alloc_mr()
4118 mr->qplib_mr.pd = &pd->qplib_pd; in __bnxt_re_user_reg_mr()
4119 mr->qplib_mr.access_flags = __from_ib_access_flags(mr_access_flags); in __bnxt_re_user_reg_mr()
4120 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_MR; in __bnxt_re_user_reg_mr()
4123 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in __bnxt_re_user_reg_mr()
4130 mr->ib_mr.rkey = mr->qplib_mr.rkey; in __bnxt_re_user_reg_mr()
4132 mr->qplib_mr.flags = CMDQ_REGISTER_MR_FLAGS_ALLOC_MR; in __bnxt_re_user_reg_mr()
4135 mr->qplib_mr.va = virt_addr; in __bnxt_re_user_reg_mr()
4136 mr->qplib_mr.total_size = length; in __bnxt_re_user_reg_mr()
4139 bnxt_re_check_and_set_relaxed_ordering(rdev, &mr->qplib_mr); in __bnxt_re_user_reg_mr()
4142 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, umem, in __bnxt_re_user_reg_mr()
4150 mr->ib_mr.lkey = mr->qplib_mr.lkey; in __bnxt_re_user_reg_mr()
4151 mr->ib_mr.rkey = mr->qplib_mr.lkey; in __bnxt_re_user_reg_mr()
4159 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in __bnxt_re_user_reg_mr()