Lines Matching refs:budget
830 static int ena_clean_tx_irq(struct ena_ring *tx_ring, u32 budget)
844 while (tx_pkts < budget) {
1203 * @budget: how many packets driver is allowed to clean
1208 u32 budget)
1229 res_budget = budget;
1317 work_done = budget - res_budget;
1460 static int ena_io_poll(struct napi_struct *napi, int budget)
1482 /* On netpoll the budget is zero and the handler should only clean the
1485 if (likely(budget))
1486 rx_work_done = ena_clean_rx_irq(rx_ring, napi, budget);
1496 } else if ((budget > rx_work_done) && (tx_budget > tx_work_done)) {
1518 ret = budget;
1784 int (*napi_handler)(struct napi_struct *napi, int budget);
3509 int qid, budget, rc;
3526 budget = min_t(u32, io_queue_count, ENA_MONITORED_TX_QUEUES);
3530 while (budget) {
3545 budget--;