Lines Matching refs:nq

251 	struct bnxt_qplib_nq *nq;  in bnxt_re_stop_irq()  local
255 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq()
256 bnxt_qplib_nq_stop_irq(nq, false); in bnxt_re_stop_irq()
267 struct bnxt_qplib_nq *nq; in bnxt_re_start_irq() local
289 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq()
290 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
719 static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_srqn_handler() argument
741 static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_cqn_handler() argument
770 bnxt_qplib_disable_nq(&rdev->nq[i - 1]); in bnxt_re_cleanup_res()
786 rc = bnxt_qplib_enable_nq(rdev->en_dev->pdev, &rdev->nq[i - 1], in bnxt_re_init_res()
800 bnxt_qplib_disable_nq(&rdev->nq[i]); in bnxt_re_init_res()
811 bnxt_re_net_ring_free(rdev, rdev->nq[i].ring_id, type); in bnxt_re_free_nq_res()
812 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_free_nq_res()
813 rdev->nq[i].res = NULL; in bnxt_re_free_nq_res()
858 struct bnxt_qplib_nq *nq; in bnxt_re_alloc_res() local
860 nq = &rdev->nq[i]; in bnxt_re_alloc_res()
861 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
862 rc = bnxt_qplib_alloc_nq(&rdev->qplib_res, &rdev->nq[i]); in bnxt_re_alloc_res()
869 rattr.dma_arr = nq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_alloc_res()
870 rattr.pages = nq->hwq.pbl[rdev->nq[i].hwq.level].pg_count; in bnxt_re_alloc_res()
875 rc = bnxt_re_net_ring_alloc(rdev, &rattr, &nq->ring_id); in bnxt_re_alloc_res()
880 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_alloc_res()
889 bnxt_re_net_ring_free(rdev, rdev->nq[i].ring_id, type); in bnxt_re_alloc_res()
890 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_alloc_res()