Lines Matching refs:band

14 #define MLXSW_SP_PRIO_BAND_TO_TCLASS(band) (IEEE_8021QAZ_MAX_TCS - band - 1)  argument
707 u32 handle, unsigned int band,
849 u8 band, u32 child_handle);
1163 u32 handle, unsigned int band, in mlxsw_sp_qdisc_future_fifo_replace() argument
1169 qdisc_state->future_fifos[band]) in mlxsw_sp_qdisc_future_fifo_replace()
1192 unsigned int band; in __mlxsw_sp_setup_tc_fifo() local
1206 band = TC_H_MIN(p->parent) - 1; in __mlxsw_sp_setup_tc_fifo()
1207 if (band < IEEE_8021QAZ_MAX_TCS) { in __mlxsw_sp_setup_tc_fifo()
1209 qdisc_state->future_fifos[band] = true; in __mlxsw_sp_setup_tc_fifo()
1211 qdisc_state->future_fifos[band] = false; in __mlxsw_sp_setup_tc_fifo()
1331 int i, band; in __mlxsw_sp_qdisc_ets_replace() local
1340 for (band = 0; band < mlxsw_sp_qdisc->num_classes; band++) { in __mlxsw_sp_qdisc_ets_replace()
1341 int tclass_num = MLXSW_SP_PRIO_BAND_TO_TCLASS(band); in __mlxsw_sp_qdisc_ets_replace()
1343 ets_band = &ets_data->bands[band]; in __mlxsw_sp_qdisc_ets_replace()
1348 for (band = 0; band < nbands; band++) { in __mlxsw_sp_qdisc_ets_replace()
1351 child_qdisc = &mlxsw_sp_qdisc->qdiscs[band]; in __mlxsw_sp_qdisc_ets_replace()
1352 ets_band = &ets_data->bands[band]; in __mlxsw_sp_qdisc_ets_replace()
1360 tclass_num, 0, !!quanta[band], in __mlxsw_sp_qdisc_ets_replace()
1361 weights[band]); in __mlxsw_sp_qdisc_ets_replace()
1366 if (priomap[i] == band) { in __mlxsw_sp_qdisc_ets_replace()
1384 band, child_qdisc); in __mlxsw_sp_qdisc_ets_replace()
1388 for (; band < IEEE_8021QAZ_MAX_TCS; band++) { in __mlxsw_sp_qdisc_ets_replace()
1389 ets_band = &ets_data->bands[band]; in __mlxsw_sp_qdisc_ets_replace()
1392 child_qdisc = &mlxsw_sp_qdisc->qdiscs[band]; in __mlxsw_sp_qdisc_ets_replace()
1495 int band = child_index - 1; in mlxsw_sp_qdisc_prio_find_class() local
1497 if (band < 0 || band >= mlxsw_sp_qdisc->num_classes) in mlxsw_sp_qdisc_prio_find_class()
1499 return &mlxsw_sp_qdisc->qdiscs[band]; in mlxsw_sp_qdisc_prio_find_class()
1506 unsigned int band = child - mlxsw_sp_qdisc->qdiscs; in mlxsw_sp_qdisc_ets_get_band() local
1508 if (WARN_ON(band >= IEEE_8021QAZ_MAX_TCS)) in mlxsw_sp_qdisc_ets_get_band()
1509 band = 0; in mlxsw_sp_qdisc_ets_get_band()
1510 return &mlxsw_sp_qdisc->ets_data->bands[band]; in mlxsw_sp_qdisc_ets_get_band()
1621 u8 band, u32 child_handle) in mlxsw_sp_qdisc_graft() argument
1626 if (band < mlxsw_sp_qdisc->num_classes && in mlxsw_sp_qdisc_graft()
1627 mlxsw_sp_qdisc->qdiscs[band].handle == child_handle) in mlxsw_sp_qdisc_graft()
1645 parent = TC_H_MAKE(mlxsw_sp_qdisc->handle, band + 1); in mlxsw_sp_qdisc_graft()
1680 p->graft_params.band, in __mlxsw_sp_setup_tc_prio()
1725 p->graft_params.band, in __mlxsw_sp_setup_tc_ets()