Lines Matching refs:num_tx
132 int num_tx, cur_budget, ch; in cpsw_tx_mq_poll() local
138 for (ch = 0, num_tx = 0; ch_map & 0xff; ch_map <<= 1, ch++) { in cpsw_tx_mq_poll()
143 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll()
144 cur_budget = budget - num_tx; in cpsw_tx_mq_poll()
148 num_tx += cpdma_chan_process(txv->ch, cur_budget); in cpsw_tx_mq_poll()
149 if (num_tx >= budget) in cpsw_tx_mq_poll()
153 if (num_tx < budget) { in cpsw_tx_mq_poll()
158 return num_tx; in cpsw_tx_mq_poll()
164 int num_tx; in cpsw_tx_poll() local
166 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll()
167 if (num_tx < budget) { in cpsw_tx_poll()
176 return num_tx; in cpsw_tx_poll()