Lines Matching refs:nq
262 struct bnxt_qplib_nq *nq; in bnxt_re_stop_irq() local
266 nq = &rdev->nq[indx - 1]; in bnxt_re_stop_irq()
267 bnxt_qplib_nq_stop_irq(nq, false); in bnxt_re_stop_irq()
278 struct bnxt_qplib_nq *nq; in bnxt_re_start_irq() local
300 nq = &rdev->nq[indx - 1]; in bnxt_re_start_irq()
301 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq()
886 static int bnxt_re_srqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_srqn_handler() argument
916 static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, in bnxt_re_cqn_handler() argument
950 bnxt_qplib_disable_nq(&rdev->nq[i - 1]); in bnxt_re_cleanup_res()
966 rc = bnxt_qplib_enable_nq(rdev->en_dev->pdev, &rdev->nq[i - 1], in bnxt_re_init_res()
980 bnxt_qplib_disable_nq(&rdev->nq[i]); in bnxt_re_init_res()
991 bnxt_re_net_ring_free(rdev, rdev->nq[i].ring_id, type); in bnxt_re_free_nq_res()
992 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_free_nq_res()
993 rdev->nq[i].res = NULL; in bnxt_re_free_nq_res()
1038 struct bnxt_qplib_nq *nq; in bnxt_re_alloc_res() local
1040 nq = &rdev->nq[i]; in bnxt_re_alloc_res()
1041 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
1042 rc = bnxt_qplib_alloc_nq(&rdev->qplib_res, &rdev->nq[i]); in bnxt_re_alloc_res()
1049 rattr.dma_arr = nq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_alloc_res()
1050 rattr.pages = nq->hwq.pbl[rdev->nq[i].hwq.level].pg_count; in bnxt_re_alloc_res()
1055 rc = bnxt_re_net_ring_alloc(rdev, &rattr, &nq->ring_id); in bnxt_re_alloc_res()
1060 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_alloc_res()
1069 bnxt_re_net_ring_free(rdev, rdev->nq[i].ring_id, type); in bnxt_re_alloc_res()
1070 bnxt_qplib_free_nq(&rdev->nq[i]); in bnxt_re_alloc_res()