Lines Matching refs:nq
437 struct bnxt_qplib_nq *nq; in bnxt_re_stop_irq() local
454 nq = &rdev->nqr->nq[indx - 1]; in bnxt_re_stop_irq()
455 bnxt_qplib_nq_stop_irq(nq, false); in bnxt_re_stop_irq()
467 struct bnxt_qplib_nq *nq; in bnxt_re_start_irq() local
498 nq = &rdev->nqr->nq[indx - 1]; in bnxt_re_start_irq()
499 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
1638 static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_srqn_handler() argument
1657 static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_cqn_handler() argument
1674 bnxt_qplib_disable_nq(&rdev->nqr->nq[i - 1]); in bnxt_re_cleanup_res()
1692 rc = bnxt_qplib_enable_nq(rdev->en_dev->pdev, &rdev->nqr->nq[i - 1], in bnxt_re_init_res()
1706 bnxt_qplib_disable_nq(&rdev->nqr->nq[i]); in bnxt_re_init_res()
1712 struct bnxt_qplib_nq *nq; in bnxt_re_free_nq_res() local
1718 nq = &rdev->nqr->nq[i]; in bnxt_re_free_nq_res()
1719 bnxt_re_net_ring_free(rdev, nq->ring_id, type); in bnxt_re_free_nq_res()
1720 bnxt_qplib_free_nq(nq); in bnxt_re_free_nq_res()
1721 nq->res = NULL; in bnxt_re_free_nq_res()
1763 struct bnxt_qplib_nq *nq; in bnxt_re_alloc_res() local
1765 nq = &rdev->nqr->nq[i]; in bnxt_re_alloc_res()
1766 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
1767 rc = bnxt_qplib_alloc_nq(&rdev->qplib_res, nq); in bnxt_re_alloc_res()
1774 rattr.dma_arr = nq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_alloc_res()
1775 rattr.pages = nq->hwq.pbl[rdev->nqr->nq[i].hwq.level].pg_count; in bnxt_re_alloc_res()
1780 rc = bnxt_re_net_ring_alloc(rdev, &rattr, &nq->ring_id); in bnxt_re_alloc_res()
1785 bnxt_qplib_free_nq(nq); in bnxt_re_alloc_res()
1794 bnxt_re_net_ring_free(rdev, rdev->nqr->nq[i].ring_id, type); in bnxt_re_alloc_res()
1795 bnxt_qplib_free_nq(&rdev->nqr->nq[i]); in bnxt_re_alloc_res()