Lines Matching refs:ets
24 struct ieee_ets *ets)
28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets));
34 struct ieee_ets *ets)
41 switch (ets->tc_tsa[i]) {
46 tx_bw_sum += ets->tc_tx_bw[i];
53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) {
68 struct ieee_ets *ets)
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio];
92 struct ieee_ets *ets)
94 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets;
100 bool dwrr = ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS;
101 u8 weight = ets->tc_tx_bw[i];
115 ets->prio_tc[i]);
118 ets->prio_tc[i]);
124 err = mlxsw_sp_port_headroom_ets_set(mlxsw_sp_port, ets);
149 struct ieee_ets *ets)
154 err = mlxsw_sp_port_ets_validate(mlxsw_sp_port, ets);
158 err = __mlxsw_sp_dcbnl_ieee_setets(mlxsw_sp_port, ets);
162 memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets));
163 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
657 mlxsw_sp_port->dcb.ets = kzalloc(sizeof(*mlxsw_sp_port->dcb.ets),
659 if (!mlxsw_sp_port->dcb.ets)
662 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
669 kfree(mlxsw_sp_port->dcb.ets);