Lines Matching refs:sginfo
92 struct bnxt_qplib_sg_info *sginfo) in bnxt_qplib_fill_user_dma_pages() argument
97 rdma_umem_for_each_dma_block(sginfo->umem, &biter, sginfo->pgsize) { in bnxt_qplib_fill_user_dma_pages()
107 struct bnxt_qplib_sg_info *sginfo) in __alloc_pbl() argument
114 if (sginfo->nopte) in __alloc_pbl()
116 if (sginfo->umem) in __alloc_pbl()
117 pages = ib_umem_num_dma_blocks(sginfo->umem, sginfo->pgsize); in __alloc_pbl()
119 pages = sginfo->npages; in __alloc_pbl()
132 pbl->pg_size = sginfo->pgsize; in __alloc_pbl()
134 if (!sginfo->umem) { in __alloc_pbl()
146 bnxt_qplib_fill_user_dma_pages(pbl, sginfo); in __alloc_pbl()
187 struct bnxt_qplib_sg_info sginfo = {}; in bnxt_qplib_alloc_init_hwq() local
196 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()
209 if (!hwq_attr->sginfo->umem) { in bnxt_qplib_alloc_init_hwq()
216 hwq_attr->sginfo->npages = npages; in bnxt_qplib_alloc_init_hwq()
218 npages = ib_umem_num_dma_blocks(hwq_attr->sginfo->umem, in bnxt_qplib_alloc_init_hwq()
219 hwq_attr->sginfo->pgsize); in bnxt_qplib_alloc_init_hwq()
225 rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_0], hwq_attr->sginfo); in bnxt_qplib_alloc_init_hwq()
243 sginfo.pgsize = npde * pg_size; in bnxt_qplib_alloc_init_hwq()
244 sginfo.npages = 1; in bnxt_qplib_alloc_init_hwq()
245 rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_0], &sginfo); in bnxt_qplib_alloc_init_hwq()
248 sginfo.npages = npbl; in bnxt_qplib_alloc_init_hwq()
249 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq()
250 rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_1], &sginfo); in bnxt_qplib_alloc_init_hwq()
275 hwq_attr->sginfo); in bnxt_qplib_alloc_init_hwq()
279 if (hwq_attr->sginfo->nopte) in bnxt_qplib_alloc_init_hwq()
307 sginfo.npages = npbl; in bnxt_qplib_alloc_init_hwq()
308 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq()
310 rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_0], &sginfo); in bnxt_qplib_alloc_init_hwq()
315 hwq_attr->sginfo); in bnxt_qplib_alloc_init_hwq()
319 if (hwq_attr->sginfo->nopte) in bnxt_qplib_alloc_init_hwq()
350 if (hwq_attr->sginfo->nopte && hwq->level) in bnxt_qplib_alloc_init_hwq()
385 struct bnxt_qplib_sg_info sginfo = {}; in bnxt_qplib_alloc_tqm_rings() local
392 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_tqm_rings()
393 sginfo.pgshft = PAGE_SHIFT; in bnxt_qplib_alloc_tqm_rings()
394 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_tqm_rings()
502 struct bnxt_qplib_sg_info sginfo = {}; in bnxt_qplib_alloc_ctx() local
509 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_ctx()
510 sginfo.pgshft = PAGE_SHIFT; in bnxt_qplib_alloc_ctx()
511 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_ctx()