Lines Matching refs:ets
121 struct ieee_ets *ets)
124 ets->ets_cap = pdata->hw_feat.tc_cnt;
126 if (pdata->ets) {
127 ets->cbs = pdata->ets->cbs;
128 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw,
129 sizeof(ets->tc_tx_bw));
130 memcpy(ets->tc_tsa, pdata->ets->tc_tsa,
131 sizeof(ets->tc_tsa));
132 memcpy(ets->prio_tc, pdata->ets->prio_tc,
133 sizeof(ets->prio_tc));
140 struct ieee_ets *ets)
150 ets->tc_tx_bw[i], ets->tc_rx_bw[i],
151 ets->tc_tsa[i]);
153 ets->prio_tc[i]);
155 max_tc = max_t(u8, max_tc, ets->prio_tc[i]);
156 if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]))
159 switch (ets->tc_tsa[i]) {
164 tc_ets_weight += ets->tc_tx_bw[i];
169 ets->tc_tsa[i]);
189 if (!pdata->ets) {
190 pdata->ets = (struct ieee_ets *)malloc(sizeof(struct ieee_ets),
193 if (!pdata->ets)
198 memcpy(pdata->ets, ets, sizeof(*pdata->ets));