Lines Matching refs:txv

462 	txch = cpsw->txv[0].ch;  in cpsw_xdp_tx_frame()
791 struct cpsw_vector *txv = cpsw->txv; in cpsw_split_res() local
798 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
834 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
836 txv[i].budget = (ch_rate * CPSW_POLL_WEIGHT) / max_rate; in cpsw_split_res()
837 if (!txv[i].budget) in cpsw_split_res()
838 txv[i].budget++; in cpsw_split_res()
847 cpdma_chan_set_weight(cpsw->txv[i].ch, ch_weight); in cpsw_split_res()
849 txv[i].budget = ch_budget; in cpsw_split_res()
852 cpdma_chan_set_weight(cpsw->txv[i].ch, 0); in cpsw_split_res()
855 budget -= txv[i].budget; in cpsw_split_res()
859 txv[bigest_rate_ch].budget += budget; in cpsw_split_res()
910 struct cpsw_vector *txv; in cpsw_tx_mq_poll() local
918 txv = &cpsw->txv[ch]; in cpsw_tx_mq_poll()
919 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll()
922 cur_budget = txv->budget; in cpsw_tx_mq_poll()
924 num_tx += cpdma_chan_process(txv->ch, cur_budget); in cpsw_tx_mq_poll()
942 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll()
1145 ch_rate = cpdma_chan_get_rate(cpsw->txv[i].ch); in cpsw_need_resplit()
1819 txch = cpsw->txv[q_idx].ch; in cpsw_ndo_start_xmit()
2048 cpdma_chan_stop(cpsw->txv[ch].ch); in cpsw_ndo_tx_timeout()
2049 cpdma_chan_start(cpsw->txv[ch].ch); in cpsw_ndo_tx_timeout()
2250 ret = cpdma_chan_set_rate(cpsw->txv[queue].ch, ch_rate); in cpsw_ndo_set_tx_maxrate()
2859 cpsw->txv[0].ch = cpdma_chan_create(cpsw->dma, ch, cpsw_tx_handler, 0); in cpsw_probe()
2860 if (IS_ERR(cpsw->txv[0].ch)) { in cpsw_probe()
2862 ret = PTR_ERR(cpsw->txv[0].ch); in cpsw_probe()