Lines Matching refs:qplib_mr
470 bnxt_qplib_dereg_mrw(&rdev->qplib_res, &mr->qplib_mr, in bnxt_re_destroy_fence_mr()
473 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_destroy_fence_mr()
515 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_create_fence_mr()
516 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_create_fence_mr()
517 mr->qplib_mr.flags = __from_ib_access_flags(mr_access_flags); in bnxt_re_create_fence_mr()
518 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_create_fence_mr()
525 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr()
526 mr->qplib_mr.va = (u64)(unsigned long)fence->va; in bnxt_re_create_fence_mr()
527 mr->qplib_mr.total_size = BNXT_RE_FENCE_BYTES; in bnxt_re_create_fence_mr()
529 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, &pbl_tbl, in bnxt_re_create_fence_mr()
535 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_create_fence_mr()
3288 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_get_dma_mr()
3289 mr->qplib_mr.flags = __from_ib_access_flags(mr_access_flags); in bnxt_re_get_dma_mr()
3290 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_get_dma_mr()
3293 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_get_dma_mr()
3297 mr->qplib_mr.hwq.level = PBL_LVL_MAX; in bnxt_re_get_dma_mr()
3298 mr->qplib_mr.total_size = -1; /* Infinte length */ in bnxt_re_get_dma_mr()
3299 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, &pbl, 0, false, in bnxt_re_get_dma_mr()
3304 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_get_dma_mr()
3313 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_get_dma_mr()
3325 rc = bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_dereg_mr()
3385 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_alloc_mr()
3386 mr->qplib_mr.flags = BNXT_QPLIB_FR_PMR; in bnxt_re_alloc_mr()
3387 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_PMR; in bnxt_re_alloc_mr()
3389 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_alloc_mr()
3393 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_alloc_mr()
3415 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_alloc_mr()
3523 mr->qplib_mr.pd = &pd->qplib_pd; in bnxt_re_reg_user_mr()
3524 mr->qplib_mr.flags = __from_ib_access_flags(mr_access_flags); in bnxt_re_reg_user_mr()
3525 mr->qplib_mr.type = CMDQ_ALLOCATE_MRW_MRW_FLAGS_MR; in bnxt_re_reg_user_mr()
3527 rc = bnxt_qplib_alloc_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_reg_user_mr()
3533 mr->ib_mr.rkey = mr->qplib_mr.rkey; in bnxt_re_reg_user_mr()
3543 mr->qplib_mr.va = virt_addr; in bnxt_re_reg_user_mr()
3550 mr->qplib_mr.total_size = length; in bnxt_re_reg_user_mr()
3578 rc = bnxt_qplib_reg_mr(&rdev->qplib_res, &mr->qplib_mr, pbl_tbl, in bnxt_re_reg_user_mr()
3587 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_reg_user_mr()
3588 mr->ib_mr.rkey = mr->qplib_mr.lkey; in bnxt_re_reg_user_mr()
3597 bnxt_qplib_free_mrw(&rdev->qplib_res, &mr->qplib_mr); in bnxt_re_reg_user_mr()