Lines Matching refs:ets
123 struct ieee_ets *ets)
126 ets->ets_cap = pdata->hw_feat.tc_cnt;
128 if (pdata->ets) {
129 ets->cbs = pdata->ets->cbs;
130 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw,
131 sizeof(ets->tc_tx_bw));
132 memcpy(ets->tc_tsa, pdata->ets->tc_tsa,
133 sizeof(ets->tc_tsa));
134 memcpy(ets->prio_tc, pdata->ets->prio_tc,
135 sizeof(ets->prio_tc));
142 struct ieee_ets *ets)
152 ets->tc_tx_bw[i], ets->tc_rx_bw[i],
153 ets->tc_tsa[i]);
155 ets->prio_tc[i]);
157 max_tc = max_t(u8, max_tc, ets->prio_tc[i]);
158 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]))
161 switch (ets->tc_tsa[i]) {
166 tc_ets_weight += ets->tc_tx_bw[i];
171 ets->tc_tsa[i]);
191 if (!pdata->ets) {
192 pdata->ets = (struct ieee_ets *)malloc(sizeof(struct ieee_ets),
195 if (!pdata->ets)
200 memcpy(pdata->ets, ets, sizeof(*pdata->ets));