Lines Matching refs:cntxt_id
241 nm_txq->cntxt_id = INVALID_NM_TXQ_CNTXT_ID; in alloc_nm_txq()
249 &nm_txq->cntxt_id, 0, "SGE context id of the queue"); in alloc_nm_txq()
266 if (nm_txq->cntxt_id != INVALID_NM_TXQ_CNTXT_ID) in free_nm_txq()
268 MPASS(nm_txq->cntxt_id == INVALID_NM_TXQ_CNTXT_ID); in free_nm_txq()
279 int rc, cntxt_id; in alloc_nm_rxq_hwq() local
354 cntxt_id = nm_rxq->iq_cntxt_id - sc->sge.iq_start; in alloc_nm_rxq_hwq()
355 if (cntxt_id >= sc->sge.iqmap_sz) { in alloc_nm_rxq_hwq()
357 __func__, cntxt_id, sc->sge.iqmap_sz - 1); in alloc_nm_rxq_hwq()
359 sc->sge.iqmap[cntxt_id] = (void *)nm_rxq; in alloc_nm_rxq_hwq()
367 cntxt_id = nm_rxq->fl_cntxt_id - sc->sge.eq_start; in alloc_nm_rxq_hwq()
368 if (cntxt_id >= sc->sge.eqmap_sz) { in alloc_nm_rxq_hwq()
370 __func__, cntxt_id, sc->sge.eqmap_sz - 1); in alloc_nm_rxq_hwq()
372 sc->sge.eqmap[cntxt_id] = (void *)nm_rxq; in alloc_nm_rxq_hwq()
407 int rc, cntxt_id; in alloc_nm_txq_hwq() local
424 if (nm_txq->cntxt_id == INVALID_NM_TXQ_CNTXT_ID) in alloc_nm_txq_hwq()
427 c.eqid_pkd = htobe32(V_FW_EQ_ETH_CMD_EQID(nm_txq->cntxt_id)); in alloc_nm_txq_hwq()
448 nm_txq->cntxt_id = G_FW_EQ_ETH_CMD_EQID(be32toh(c.eqid_pkd)); in alloc_nm_txq_hwq()
449 cntxt_id = nm_txq->cntxt_id - sc->sge.eq_start; in alloc_nm_txq_hwq()
450 if (cntxt_id >= sc->sge.eqmap_sz) in alloc_nm_txq_hwq()
452 cntxt_id, sc->sge.eqmap_sz - 1); in alloc_nm_txq_hwq()
453 sc->sge.eqmap[cntxt_id] = (void *)nm_txq; in alloc_nm_txq_hwq()
468 udb += (nm_txq->cntxt_id >> s_qpp) << PAGE_SHIFT; in alloc_nm_txq_hwq()
469 nm_txq->udb_qid = nm_txq->cntxt_id & mask; in alloc_nm_txq_hwq()
484 V_FW_PARAMS_PARAM_YZ(nm_txq->cntxt_id); in alloc_nm_txq_hwq()
490 nm_txq->cntxt_id, rc); in alloc_nm_txq_hwq()
504 rc = -t4_eth_eq_free(sc, sc->mbox, sc->pf, 0, nm_txq->cntxt_id); in free_nm_txq_hwq()
507 nm_txq->cntxt_id, rc); in free_nm_txq_hwq()
508 nm_txq->cntxt_id = INVALID_NM_TXQ_CNTXT_ID; in free_nm_txq_hwq()
804 MPASS(nm_txq->cntxt_id != INVALID_NM_TXQ_CNTXT_ID); in cxgbe_netmap_off()
806 rc = -t4_eth_eq_stop(sc, sc->mbox, sc->pf, 0, nm_txq->cntxt_id); in cxgbe_netmap_off()
955 V_QID(nm_txq->cntxt_id) | V_PIDX(n)); in ring_nm_txq_db()