• Home
  • Raw
  • Download

Lines Matching refs:ets

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