Lines Matching refs:ets
124 struct ieee_ets *ets)
129 ets->ets_cap = pdata->hw_feat.tc_cnt;
131 if (pdata->ets) {
132 ets->cbs = pdata->ets->cbs;
133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw,
134 sizeof(ets->tc_tx_bw));
135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa,
136 sizeof(ets->tc_tsa));
137 memcpy(ets->prio_tc, pdata->ets->prio_tc,
138 sizeof(ets->prio_tc));
145 struct ieee_ets *ets)
156 ets->tc_tx_bw[i], ets->tc_rx_bw[i],
157 ets->tc_tsa[i]);
159 ets->prio_tc[i]);
161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]);
162 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]))
165 switch (ets->tc_tsa[i]) {
170 tc_ets_weight += ets->tc_tx_bw[i];
175 ets->tc_tsa[i]);
195 if (!pdata->ets) {
196 pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets),
198 if (!pdata->ets)
203 memcpy(pdata->ets, ets, sizeof(*pdata->ets));