Lines Matching refs:qplib_srq
1080 qp->qplib_qp.srq = &srq->qplib_srq; in bnxt_re_create_qp()
1296 struct bnxt_qplib_srq *qplib_srq = &srq->qplib_srq; in bnxt_re_destroy_srq() local
1299 if (qplib_srq->cq) in bnxt_re_destroy_srq()
1300 nq = qplib_srq->cq->nq; in bnxt_re_destroy_srq()
1301 bnxt_qplib_destroy_srq(&rdev->qplib_res, qplib_srq); in bnxt_re_destroy_srq()
1314 struct bnxt_qplib_srq *qplib_srq = &srq->qplib_srq; in bnxt_re_init_user_srq() local
1323 bytes = (qplib_srq->max_wqe * BNXT_QPLIB_MAX_RQE_ENTRY_SIZE); in bnxt_re_init_user_srq()
1330 qplib_srq->sg_info.sglist = umem->sg_head.sgl; in bnxt_re_init_user_srq()
1331 qplib_srq->sg_info.npages = ib_umem_num_pages(umem); in bnxt_re_init_user_srq()
1332 qplib_srq->sg_info.nmap = umem->nmap; in bnxt_re_init_user_srq()
1333 qplib_srq->srq_handle = ureq.srq_handle; in bnxt_re_init_user_srq()
1334 qplib_srq->dpi = &cntx->dpi; in bnxt_re_init_user_srq()
1364 srq->qplib_srq.pd = &pd->qplib_pd; in bnxt_re_create_srq()
1365 srq->qplib_srq.dpi = &rdev->dpi_privileged; in bnxt_re_create_srq()
1373 srq->qplib_srq.max_wqe = entries; in bnxt_re_create_srq()
1374 srq->qplib_srq.max_sge = srq_init_attr->attr.max_sge; in bnxt_re_create_srq()
1375 srq->qplib_srq.threshold = srq_init_attr->attr.srq_limit; in bnxt_re_create_srq()
1377 srq->qplib_srq.eventq_hw_ring_id = rdev->nq[0].ring_id; in bnxt_re_create_srq()
1386 rc = bnxt_qplib_create_srq(&rdev->qplib_res, &srq->qplib_srq); in bnxt_re_create_srq()
1395 resp.srqid = srq->qplib_srq.id; in bnxt_re_create_srq()
1400 &srq->qplib_srq); in bnxt_re_create_srq()
1431 if (srq_attr->srq_limit > srq->qplib_srq.max_wqe) in bnxt_re_modify_srq()
1434 srq->qplib_srq.threshold = srq_attr->srq_limit; in bnxt_re_modify_srq()
1435 rc = bnxt_qplib_modify_srq(&rdev->qplib_res, &srq->qplib_srq); in bnxt_re_modify_srq()
1461 tsrq.qplib_srq.id = srq->qplib_srq.id; in bnxt_re_query_srq()
1462 rc = bnxt_qplib_query_srq(&rdev->qplib_res, &tsrq.qplib_srq); in bnxt_re_query_srq()
1467 srq_attr->max_wr = srq->qplib_srq.max_wqe; in bnxt_re_query_srq()
1468 srq_attr->max_sge = srq->qplib_srq.max_sge; in bnxt_re_query_srq()
1469 srq_attr->srq_limit = tsrq.qplib_srq.threshold; in bnxt_re_query_srq()
1491 rc = bnxt_qplib_post_srq_recv(&srq->qplib_srq, &wqe); in bnxt_re_post_srq_recv()