Lines Matching refs:txv
135 struct cpsw_vector *txv; in cpsw_tx_mq_poll() local
143 txv = &cpsw->txv[ch]; in cpsw_tx_mq_poll()
144 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll()
147 cur_budget = txv->budget; in cpsw_tx_mq_poll()
149 num_tx += cpdma_chan_process(txv->ch, cur_budget); in cpsw_tx_mq_poll()
167 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll()
300 cpdma_chan_stop(cpsw->txv[ch].ch); in cpsw_ndo_tx_timeout()
301 cpdma_chan_start(cpsw->txv[ch].ch); in cpsw_ndo_tx_timeout()
333 ch_rate = cpdma_chan_get_rate(cpsw->txv[i].ch); in cpsw_need_resplit()
350 struct cpsw_vector *txv = cpsw->txv; in cpsw_split_res() local
357 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
393 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
395 txv[i].budget = (ch_rate * NAPI_POLL_WEIGHT) / max_rate; in cpsw_split_res()
396 if (!txv[i].budget) in cpsw_split_res()
397 txv[i].budget++; in cpsw_split_res()
406 cpdma_chan_set_weight(cpsw->txv[i].ch, ch_weight); in cpsw_split_res()
408 txv[i].budget = ch_budget; in cpsw_split_res()
411 cpdma_chan_set_weight(cpsw->txv[i].ch, 0); in cpsw_split_res()
414 budget -= txv[i].budget; in cpsw_split_res()
418 txv[bigest_rate_ch].budget += budget; in cpsw_split_res()
763 ret = cpdma_chan_set_rate(cpsw->txv[queue].ch, ch_rate); in cpsw_ndo_set_tx_maxrate()
1303 txch = cpsw->txv[0].ch; in cpsw_xdp_tx_frame()