Lines Matching refs:pbl_info

507 			  struct qedr_pbl_info *pbl_info, struct qedr_pbl *pbl)  in qedr_free_pbl()  argument
512 for (i = 0; i < pbl_info->num_pbls; i++) { in qedr_free_pbl()
515 dma_free_coherent(&pdev->dev, pbl_info->pbl_size, in qedr_free_pbl()
530 struct qedr_pbl_info *pbl_info, in qedr_alloc_pbl_tbl() argument
540 pbl_table = kcalloc(pbl_info->num_pbls, sizeof(*pbl_table), flags); in qedr_alloc_pbl_tbl()
544 for (i = 0; i < pbl_info->num_pbls; i++) { in qedr_alloc_pbl_tbl()
545 va = dma_alloc_coherent(&pdev->dev, pbl_info->pbl_size, &pa, in qedr_alloc_pbl_tbl()
558 for (i = 0; i < pbl_info->num_pbls - 1; i++) in qedr_alloc_pbl_tbl()
565 dma_free_coherent(&pdev->dev, pbl_info->pbl_size, in qedr_alloc_pbl_tbl()
568 qedr_free_pbl(dev, pbl_info, pbl_table); in qedr_alloc_pbl_tbl()
574 struct qedr_pbl_info *pbl_info, in qedr_prepare_pbl_tbl() argument
601 pbl_info->two_layered = true; in qedr_prepare_pbl_tbl()
607 pbl_info->two_layered = false; in qedr_prepare_pbl_tbl()
610 pbl_info->num_pbls = num_pbls; in qedr_prepare_pbl_tbl()
611 pbl_info->pbl_size = pbl_size; in qedr_prepare_pbl_tbl()
612 pbl_info->num_pbes = num_pbes; in qedr_prepare_pbl_tbl()
616 pbl_info->num_pbes, pbl_info->num_pbls, pbl_info->pbl_size); in qedr_prepare_pbl_tbl()
623 struct qedr_pbl_info *pbl_info, u32 pg_shift) in qedr_populate_pbls() argument
630 if (!pbl_info->num_pbes) in qedr_populate_pbls()
636 if (pbl_info->two_layered) in qedr_populate_pbls()
659 if (total_num_pbes == pbl_info->num_pbes) in qedr_populate_pbls()
664 if (pbe_cnt == (pbl_info->pbl_size / sizeof(u64))) { in qedr_populate_pbls()
810 rc = qedr_prepare_pbl_tbl(dev, &q->pbl_info, fw_pages, 0); in qedr_init_user_queue()
815 q->pbl_tbl = qedr_alloc_pbl_tbl(dev, &q->pbl_info, GFP_KERNEL); in qedr_init_user_queue()
820 qedr_populate_pbls(dev, q->umem, q->pbl_tbl, &q->pbl_info, in qedr_init_user_queue()
973 page_cnt = cq->q.pbl_info.num_pbes; in qedr_create_cq()
1045 qedr_free_pbl(dev, &cq->q.pbl_info, cq->q.pbl_tbl); in qedr_create_cq()
1082 qedr_free_pbl(dev, &cq->q.pbl_info, cq->q.pbl_tbl); in qedr_destroy_cq()
1449 qedr_free_pbl(srq->dev, &srq->usrq.pbl_info, srq->usrq.pbl_tbl); in qedr_free_srq_user_params()
1482 qedr_free_pbl(srq->dev, &srq->usrq.pbl_info, srq->usrq.pbl_tbl); in qedr_init_srq_user_params()
1588 page_cnt = srq->usrq.pbl_info.num_pbes; in qedr_create_srq()
1790 &qp->usq.pbl_info, FW_PAGE_SHIFT); in qedr_iwarp_populate_user_qp()
1797 &qp->urq.pbl_info, FW_PAGE_SHIFT); in qedr_iwarp_populate_user_qp()
1815 qedr_free_pbl(dev, &qp->usq.pbl_info, qp->usq.pbl_tbl); in qedr_cleanup_user()
1816 qedr_free_pbl(dev, &qp->urq.pbl_info, qp->urq.pbl_tbl); in qedr_cleanup_user()
1900 in_params.sq_num_pages = qp->usq.pbl_info.num_pbes; in qedr_create_user_qp()
1905 in_params.rq_num_pages = qp->urq.pbl_info.num_pbes; in qedr_create_user_qp()
2898 qedr_free_pbl(dev, &info->pbl_info, pbl); in free_mr_info()
2911 rc = qedr_prepare_pbl_tbl(dev, &info->pbl_info, in init_mr_info()
2916 info->pbl_table = qedr_alloc_pbl_tbl(dev, &info->pbl_info, GFP_KERNEL); in init_mr_info()
2928 tmp = qedr_alloc_pbl_tbl(dev, &info->pbl_info, GFP_KERNEL); in init_mr_info()
2979 &mr->info.pbl_info, PAGE_SHIFT); in qedr_reg_user_mr()
3002 mr->hw_mr.pbl_two_level = mr->info.pbl_info.two_layered; in qedr_reg_user_mr()
3003 mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); in qedr_reg_user_mr()
3028 qedr_free_pbl(dev, &mr->info.pbl_info, mr->info.pbl_table); in qedr_reg_user_mr()
3101 mr->hw_mr.pbl_two_level = mr->info.pbl_info.two_layered; in __qedr_alloc_mr()
3102 mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); in __qedr_alloc_mr()
3123 qedr_free_pbl(dev, &mr->info.pbl_info, mr->info.pbl_table); in __qedr_alloc_mr()
3152 if (unlikely(mr->npages == mr->info.pbl_info.num_pbes)) { in qedr_set_page()
3160 pbes_in_page = mr->info.pbl_info.pbl_size / sizeof(u64); in qedr_set_page()