Lines Matching refs:tc
80 int tc; in bnxt_hwrm_queue_pri2cos_qcfg() local
82 tc = bnxt_queue_to_tc(bp, queue_id); in bnxt_hwrm_queue_pri2cos_qcfg()
83 if (tc >= 0) in bnxt_hwrm_queue_pri2cos_qcfg()
84 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
154 int tc; in bnxt_hwrm_queue_cos2bw_qcfg() local
160 tc = bnxt_queue_to_tc(bp, cos2bw.queue_id); in bnxt_hwrm_queue_cos2bw_qcfg()
161 if (tc < 0) in bnxt_hwrm_queue_cos2bw_qcfg()
166 ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_STRICT; in bnxt_hwrm_queue_cos2bw_qcfg()
168 ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_ETS; in bnxt_hwrm_queue_cos2bw_qcfg()
169 ets->tc_tx_bw[tc] = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg()
214 int tc = netdev_get_num_tc(bp->dev); in bnxt_queue_remap() local
216 if (!tc) in bnxt_queue_remap()
217 tc = 1; in bnxt_queue_remap()
218 rc = bnxt_hwrm_queue_cos2bw_cfg(bp, bp->ieee_ets, tc); in bnxt_queue_remap()
440 static int bnxt_ets_validate(struct bnxt *bp, struct ieee_ets *ets, u8 *tc) in bnxt_ets_validate() argument
472 *tc = bp->max_tc; in bnxt_ets_validate()
474 *tc = max_tc + 1; in bnxt_ets_validate()