Lines Matching refs:num_rx
183 int num_rx, cur_budget, ch; in cpsw_rx_mq_poll() local
189 for (ch = 0, num_rx = 0; ch_map; ch_map >>= 1, ch++) { in cpsw_rx_mq_poll()
194 if (unlikely(rxv->budget > budget - num_rx)) in cpsw_rx_mq_poll()
195 cur_budget = budget - num_rx; in cpsw_rx_mq_poll()
199 num_rx += cpdma_chan_process(rxv->ch, cur_budget); in cpsw_rx_mq_poll()
200 if (num_rx >= budget) in cpsw_rx_mq_poll()
204 if (num_rx < budget) { in cpsw_rx_mq_poll()
205 napi_complete_done(napi_rx, num_rx); in cpsw_rx_mq_poll()
209 return num_rx; in cpsw_rx_mq_poll()
215 int num_rx; in cpsw_rx_poll() local
217 num_rx = cpdma_chan_process(cpsw->rxv[0].ch, budget); in cpsw_rx_poll()
218 if (num_rx < budget) { in cpsw_rx_poll()
219 napi_complete_done(napi_rx, num_rx); in cpsw_rx_poll()
227 return num_rx; in cpsw_rx_poll()