Lines Matching refs:cntxt_id
1481 V_INGRESSQID(iq->cntxt_id) | in service_iq()
1507 V_INGRESSQID((u32)iq->cntxt_id) | V_SEINTARM(iq->intr_params)); in service_iq()
1605 V_INGRESSQID((u32)iq->cntxt_id) | in service_iq_fl()
1690 V_INGRESSQID(iq->cntxt_id) | in service_iq_fl()
1720 V_INGRESSQID((u32)iq->cntxt_id) | V_SEINTARM(iq->intr_params)); in service_iq_fl()
3545 int rc, cntxt_id, cong_map; in alloc_iq_fl_hwq() local
3568 v |= V_FW_IQ_CMD_IQANDSTINDEX(sc->sge.fwq.cntxt_id); in alloc_iq_fl_hwq()
3623 iq->cntxt_id = be16toh(c.iqid); in alloc_iq_fl_hwq()
3626 cntxt_id = iq->cntxt_id - sc->sge.iq_start; in alloc_iq_fl_hwq()
3627 if (cntxt_id >= sc->sge.iqmap_sz) { in alloc_iq_fl_hwq()
3629 cntxt_id, sc->sge.iqmap_sz - 1); in alloc_iq_fl_hwq()
3631 sc->sge.iqmap[cntxt_id] = iq; in alloc_iq_fl_hwq()
3642 fl->cntxt_id = be16toh(c.fl0id); in alloc_iq_fl_hwq()
3647 cntxt_id = fl->cntxt_id - sc->sge.eq_start; in alloc_iq_fl_hwq()
3648 if (cntxt_id >= sc->sge.eqmap_sz) { in alloc_iq_fl_hwq()
3650 __func__, cntxt_id, sc->sge.eqmap_sz - 1); in alloc_iq_fl_hwq()
3652 sc->sge.eqmap[cntxt_id] = (void *)fl; in alloc_iq_fl_hwq()
3654 qid = fl->cntxt_id; in alloc_iq_fl_hwq()
3679 t4_sge_set_conm_context(sc, iq->cntxt_id, iq->cong_drop, in alloc_iq_fl_hwq()
3686 V_INGRESSQID(iq->cntxt_id)); in alloc_iq_fl_hwq()
3700 iq->cntxt_id, fl ? fl->cntxt_id : 0xffff, 0xffff); in free_iq_fl_hwq()
3727 &iq->cntxt_id, 0, "SGE context id of the queue"); in add_iq_sysctls()
3752 &fl->cntxt_id, 0, "SGE context id of the freelist"); in add_fl_sysctls()
3906 t4_sge_set_conm_context(struct adapter *sc, int cntxt_id, int cong_drop, in t4_sge_set_conm_context() argument
3934 cong_drop, cntxt_id); in t4_sge_set_conm_context()
3940 V_FW_PARAMS_PARAM_YZ(cntxt_id); in t4_sge_set_conm_context()
3953 "for ingress queue %d: %d\n", cntxt_id, rc); in t4_sge_set_conm_context()
4022 sc->sge.iq_base = rxq->iq.abs_id - rxq->iq.cntxt_id; in alloc_rxq()
4024 KASSERT(rxq->iq.cntxt_id + sc->sge.iq_base == rxq->iq.abs_id, in alloc_rxq()
4258 int rc, cntxt_id; in ctrl_eq_alloc() local
4290 eq->cntxt_id = G_FW_EQ_CTRL_CMD_EQID(be32toh(c.cmpliqid_eqid)); in ctrl_eq_alloc()
4292 cntxt_id = eq->cntxt_id - sc->sge.eq_start; in ctrl_eq_alloc()
4293 if (cntxt_id >= sc->sge.eqmap_sz) in ctrl_eq_alloc()
4295 cntxt_id, sc->sge.eqmap_sz - 1); in ctrl_eq_alloc()
4296 sc->sge.eqmap[cntxt_id] = eq; in ctrl_eq_alloc()
4304 int rc, cntxt_id; in eth_eq_alloc() local
4335 eq->cntxt_id = G_FW_EQ_ETH_CMD_EQID(be32toh(c.eqid_pkd)); in eth_eq_alloc()
4337 cntxt_id = eq->cntxt_id - sc->sge.eq_start; in eth_eq_alloc()
4338 if (cntxt_id >= sc->sge.eqmap_sz) in eth_eq_alloc()
4340 cntxt_id, sc->sge.eqmap_sz - 1); in eth_eq_alloc()
4341 sc->sge.eqmap[cntxt_id] = eq; in eth_eq_alloc()
4350 int rc, cntxt_id; in ofld_eq_alloc() local
4380 eq->cntxt_id = G_FW_EQ_OFLD_CMD_EQID(be32toh(c.eqid_pkd)); in ofld_eq_alloc()
4382 cntxt_id = eq->cntxt_id - sc->sge.eq_start; in ofld_eq_alloc()
4383 if (cntxt_id >= sc->sge.eqmap_sz) in ofld_eq_alloc()
4385 cntxt_id, sc->sge.eqmap_sz - 1); in ofld_eq_alloc()
4386 sc->sge.eqmap[cntxt_id] = eq; in ofld_eq_alloc()
4442 &eq->cntxt_id, 0, "SGE context id of the queue"); in add_eq_sysctls()
4458 eq->iqid = eq->iq->cntxt_id; in alloc_eq_hwq()
4497 udb += (eq->cntxt_id >> s_qpp) << PAGE_SHIFT; /* pg offset */ in alloc_eq_hwq()
4498 eq->udb_qid = eq->cntxt_id & mask; /* id in page */ in alloc_eq_hwq()
4521 rc = -t4_ctrl_eq_free(sc, sc->mbox, sc->pf, 0, eq->cntxt_id); in free_eq_hwq()
4524 rc = -t4_eth_eq_free(sc, sc->mbox, sc->pf, 0, eq->cntxt_id); in free_eq_hwq()
4528 rc = -t4_ofld_eq_free(sc, sc->mbox, sc->pf, 0, eq->cntxt_id); in free_eq_hwq()
4665 sc->sge.eq_base = eq->abs_id - eq->cntxt_id; in alloc_txq()
4667 KASSERT(eq->cntxt_id + sc->sge.eq_base == eq->abs_id, in alloc_txq()
6185 V_QID(eq->cntxt_id) | V_PIDX(n)); in ring_eq_db()