Searched refs:budget (Results 51 - 75 of 161) sorted by relevance

1234567

/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c517 /* Poll the hardware for up to budget packets to process */
519 unsigned int budget)
544 while ((processed < to_process) && (processed < budget)) {
722 static int bcm_sysport_tx_poll(struct napi_struct *napi, int budget) argument
747 static int bcm_sysport_poll(struct napi_struct *napi, int budget) argument
753 work_done = bcm_sysport_desc_rx(priv, budget);
759 if (work_done < budget) {
518 bcm_sysport_desc_rx(struct bcm_sysport_priv *priv, unsigned int budget) argument
H A Dbcm63xx_enet.c314 static int bcm_enet_receive_queue(struct net_device *dev, int budget) argument
326 if (budget > priv->rx_desc_count)
327 budget = priv->rx_desc_count;
413 } while (--budget > 0);
485 static int bcm_enet_poll(struct napi_struct *napi, int budget) argument
504 rx_work_done = bcm_enet_receive_queue(dev, budget);
507 if (rx_work_done >= budget || tx_work_done > 0) {
/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c516 static int rxq_process(struct rx_queue *rxq, int budget) argument
523 while (rx < budget && rxq->rx_desc_count) {
602 if (rx < budget)
608 static int rxq_refill(struct rx_queue *rxq, int budget) argument
614 while (refilled < budget && rxq->rx_desc_count < rxq->rx_ring_size) {
657 if (refilled < budget)
1037 static int txq_reclaim(struct tx_queue *txq, int budget, int force) argument
1046 while (reclaimed < budget && txq->tx_desc_count > 0) {
1088 if (reclaimed < budget)
2186 static int mv643xx_eth_poll(struct napi_struct *napi, int budget) argument
[all...]
H A Dmvneta.c2052 static int mvneta_poll(struct napi_struct *napi, int budget) argument
2079 while ((cause_rx_tx & MVNETA_RX_INTR_MASK_ALL) && (budget > 0)) {
2088 count = mvneta_rx(pp, budget, rxq);
2090 budget -= count;
2091 if (budget > 0) {
2102 rx_done = mvneta_rx(pp, budget, &pp->rxqs[rxq_def]);
2103 budget -= rx_done;
2106 if (budget > 0) {
/drivers/net/ethernet/neterion/vxge/
H A Dvxge-main.c371 if (ring->budget <= 0)
519 ring->budget--;
521 if (!ring->budget)
1806 * @budget: Number of packets budgeted to be processed in this iteration.
1813 * kernel as the function argument 'budget'.
1815 static int vxge_poll_msix(struct napi_struct *napi, int budget) argument
1819 int budget_org = budget;
1821 ring->budget = budget;
1842 static int vxge_poll_inta(struct napi_struct *napi, int budget) argument
[all...]
H A Dvxge-main.h284 int budget; member in struct:vxge_ring
/drivers/net/ethernet/dlink/
H A Dsundance.c407 int budget; member in struct:netdev_private
1213 if (np->budget < 0)
1214 np->budget = RX_BUDGET;
1336 int boguscnt = np->budget;
1411 np->budget -= received;
1420 np->budget -= received;
1421 if (np->budget <= 0)
1422 np->budget = RX_BUDGET;
/drivers/net/ethernet/sfc/
H A Defx.c244 static int efx_process_channel(struct efx_channel *channel, int budget) argument
251 spent = efx_nic_process_eventq(channel, budget);
268 static int efx_poll(struct napi_struct *napi, int budget) argument
276 return budget;
282 spent = efx_process_channel(channel, budget);
284 if (spent < budget) {
2028 int budget = 4; local
2038 efx_process_channel(channel, budget);
2045 * the full budget.
/drivers/s390/net/
H A Dqeth_l2_main.c414 int budget, int *done)
422 WARN_ON_ONCE(!budget);
423 while (budget) {
459 budget--;
466 static int qeth_l2_poll(struct napi_struct *napi, int budget) argument
472 int new_budget = budget;
524 if (work_done >= budget)
527 new_budget = budget - work_done;
413 qeth_l2_process_inbound_buffer(struct qeth_card *card, int budget, int *done) argument
/drivers/net/ethernet/altera/
H A Daltera_tse_main.c489 static int tse_poll(struct napi_struct *napi, int budget) argument
499 rxcomplete = tse_rx(priv, budget);
501 if (rxcomplete >= budget || txcomplete > 0)
508 "NAPI Complete, did %d packets with budget %d\n",
509 txcomplete+rxcomplete, budget);
/drivers/net/ethernet/dec/tulip/
H A Dtulip.h493 int tulip_poll(struct napi_struct *napi, int budget);
/drivers/net/ethernet/hisilicon/
H A Dhix5hd2_gmac.c562 static int hix5hd2_poll(struct napi_struct *napi, int budget) argument
567 int work_done = 0, task = budget;
575 if ((work_done >= budget) || (num == 0))
582 if (work_done < budget) {
/drivers/net/ethernet/faraday/
H A Dftgmac100.c997 static int ftgmac100_poll(struct napi_struct *napi, int budget) argument
1020 } while (retry && rx < budget);
1022 if (retry && rx == budget)
H A Dftmac100.c880 static int ftmac100_poll(struct napi_struct *napi, int budget) argument
902 } while (retry && rx < budget);
904 if (retry && rx == budget)
/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c234 unsigned int budget = tx_ring->count / 2; local
312 /* update budget accounting */
313 budget--;
314 } while (likely(budget));
342 return !!budget;
485 int budget)
501 if (!budget)
503 budget--;
608 * @budget: amount of work driver is allowed to do this pass, in packets
613 static int ixgbevf_poll(struct napi_struct *napi, int budget) argument
483 ixgbevf_clean_rx_irq(struct ixgbevf_q_vector *q_vector, struct ixgbevf_ring *rx_ring, int budget) argument
[all...]
/drivers/net/ethernet/
H A Dlantiq_etop.c156 ltq_etop_poll_rx(struct napi_struct *napi, int budget) argument
163 while ((rx < budget) && !complete) {
181 ltq_etop_poll_tx(struct napi_struct *napi, int budget) argument
/drivers/net/ethernet/neterion/
H A Ds2io.h1083 static int rx_intr_handler(struct ring_info *ring_data, int budget);
1095 static int s2io_poll_msix(struct napi_struct *napi, int budget);
1096 static int s2io_poll_inta(struct napi_struct *napi, int budget);
/drivers/net/ethernet/wiznet/
H A Dw5100.c460 static int w5100_napi_poll(struct napi_struct *napi, int budget) argument
470 for (rx_count = 0; rx_count < budget; rx_count++) {
500 if (rx_count < budget) {
/drivers/usb/host/
H A Dehci-dbg.c546 u8 budget[EHCI_BANDWIDTH_SIZE]; local
589 "FS/LS budget (us per microframe)\n");
592 compute_tt_budget(budget, tt);
594 bw = &budget[i];
/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1463 * Process SGE responses, up to the supplied budget. Returns the number of
1464 * responses processed. A negative budget is effectively unlimited.
1466 static int process_responses(struct adapter *adapter, int budget) argument
1475 while (done < budget && e->GenerationBit == q->genbit) {
1601 int t1_poll(struct napi_struct *napi, int budget) argument
1604 int work_done = process_responses(adapter, budget);
1606 if (likely(work_done < budget)) {
/drivers/net/ethernet/octeon/
H A Docteon_mgmt.c473 static int octeon_mgmt_receive_packets(struct octeon_mgmt *p, int budget) argument
480 while (work_done < budget && mix_ircnt.s.ircnt) {
495 static int octeon_mgmt_napi_poll(struct napi_struct *napi, int budget) argument
501 work_done = octeon_mgmt_receive_packets(p, budget);
503 if (work_done < budget) {
/drivers/net/ethernet/freescale/
H A Dgianfar.c136 static int gfar_poll_rx(struct napi_struct *napi, int budget);
137 static int gfar_poll_tx(struct napi_struct *napi, int budget);
138 static int gfar_poll_rx_sq(struct napi_struct *napi, int budget);
139 static int gfar_poll_tx_sq(struct napi_struct *napi, int budget);
2787 * until the budget/quota has been reached. Returns the number
2873 static int gfar_poll_rx_sq(struct napi_struct *napi, int budget) argument
2886 work_done = gfar_clean_rx_ring(rx_queue, budget);
2888 if (work_done < budget) {
2904 static int gfar_poll_tx_sq(struct napi_struct *napi, int budget) argument
2932 static int gfar_poll_rx(struct napi_struct *napi, int budget) argument
2994 gfar_poll_tx(struct napi_struct *napi, int budget) argument
[all...]
/drivers/net/ethernet/3com/
H A Dtyphoon.c1630 volatile __le32 * cleared, int budget)
1646 while(rxaddr != local_ready && budget > 0) {
1698 budget--;
1720 typhoon_poll(struct napi_struct *napi, int budget) argument
1737 &indexes->rxHiCleared, budget);
1742 &indexes->rxLoCleared, budget - work_done);
1750 if (work_done < budget) {
1629 typhoon_rx(struct typhoon *tp, struct basic_ring *rxRing, volatile __le32 * ready, volatile __le32 * cleared, int budget) argument
/drivers/net/ethernet/cisco/enic/
H A Denic_main.c1103 static int enic_poll(struct napi_struct *napi, int budget) argument
1110 unsigned int rq_work_to_do = budget;
1127 if (budget > 0)
1291 static int enic_poll_msix_wq(struct napi_struct *napi, int budget) argument
1320 static int enic_poll_msix_rq(struct napi_struct *napi, int budget) argument
1327 unsigned int work_to_do = budget;
1336 if (budget > 0)
/drivers/net/ethernet/realtek/
H A D8139too.c648 static int rtl8139_poll(struct napi_struct *napi, int budget);
1936 int budget)
1948 while (netif_running(dev) && received < budget &&
2070 received = budget;
2114 static int rtl8139_poll(struct napi_struct *napi, int budget) argument
2124 work_done += rtl8139_rx(dev, tp, budget);
2126 if (work_done < budget) {
1935 rtl8139_rx(struct net_device *dev, struct rtl8139_private *tp, int budget) argument

Completed in 788 milliseconds

1234567