Searched refs:budget (Results 76 - 100 of 124) sorted by relevance

12345

/drivers/net/ethernet/smsc/
H A Dsmsc9420.c879 static int smsc9420_rx_poll(struct napi_struct *napi, int budget) argument
887 for (work_done = 0; work_done < budget; work_done++) {
909 if (work_done < budget) {
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c1341 * @budget : maximum number of packets that the current CPU can receive from
1347 static int stmmac_poll(struct napi_struct *napi, int budget) argument
1354 work_done = stmmac_rx(priv, budget);
1356 if (work_done < budget) {
/drivers/net/ethernet/ti/
H A Ddavinci_emac.c1351 * @budget: Number of receive packets to process (as told by NAPI layer)
1353 * NAPI Poll function implemented to process packets as per budget. We check
1355 * packet processing functions. We follow the budget for RX processing and
1361 static int emac_poll(struct napi_struct *napi, int budget) argument
1389 num_rx_pkts = cpdma_chan_process(priv->rxchan, budget);
1422 } else if (num_rx_pkts < budget) {
H A Dcpmac.c425 static int cpmac_poll(struct napi_struct *napi, int budget) argument
444 while (((desc->dataflags & CPMAC_OWN) == 0) && (received < budget)) {
/drivers/net/
H A Dxen-netfront.c902 static int xennet_poll(struct napi_struct *napi, int budget) argument
930 while ((i != rp) && (work_done < budget)) {
1029 if (work_done < budget) {
/drivers/infiniband/ulp/ipoib/
H A Dipoib.h417 int ipoib_poll(struct napi_struct *napi, int budget);
/drivers/net/ethernet/cisco/enic/
H A Denic_main.c1339 static int enic_poll(struct napi_struct *napi, int budget) argument
1346 unsigned int rq_work_to_do = budget;
1395 static int enic_poll_msix(struct napi_struct *napi, int budget) argument
1402 unsigned int work_to_do = budget;
/drivers/net/ethernet/intel/igbvf/
H A Dnetdev.c63 static int igbvf_poll(struct napi_struct *napi, int budget);
1161 * @budget: amount of packets driver is allowed to process this poll
1163 static int igbvf_poll(struct napi_struct *napi, int budget) argument
1170 igbvf_clean_rx_irq(adapter, &work_done, budget);
1173 if (work_done < budget) {
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h608 extern int ixgbe_poll(struct napi_struct *napi, int budget);
/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_main.c76 static int netxen_nic_poll(struct napi_struct *napi, int budget);
2292 static int netxen_nic_poll(struct napi_struct *napi, int budget) argument
2304 work_done = netxen_process_rcv_ring(sds_ring, budget);
2306 if ((work_done < budget) && tx_complete) {
/drivers/net/ethernet/via/
H A Dvia-velocity.c2145 static int velocity_poll(struct napi_struct *napi, int budget) argument
2157 rx_done = velocity_rx_srv(vptr, budget / 2);
2159 rx_done += velocity_rx_srv(vptr, budget - rx_done);
2162 /* If budget not fully consumed, exit the polling mode */
2163 if (rx_done < budget) {
/drivers/net/ethernet/intel/igb/
H A Digb_main.c5694 * @budget: count of how many packets we should handle
5696 static int igb_poll(struct napi_struct *napi, int budget) argument
5711 clean_complete &= igb_clean_rx_irq(q_vector, budget);
5713 /* If all work not completed, return budget and keep polling */
5715 return budget;
5794 unsigned int budget = q_vector->tx.work_limit; local
5804 for (; budget; budget--) {
5947 return !!budget;
6067 static bool igb_clean_rx_irq(struct igb_q_vector *q_vector, int budget) argument
[all...]
/drivers/net/ethernet/neterion/
H A Ds2io.c2766 * @budget : The number of packets that were budgeted to be processed
2776 static int s2io_poll_msix(struct napi_struct *napi, int budget) argument
2785 int budget_org = budget;
2790 pkts_processed = rx_intr_handler(ring, budget);
2805 static int s2io_poll_inta(struct napi_struct *napi, int budget) argument
2811 int budget_org = budget;
2820 ring_pkts_processed = rx_intr_handler(ring, budget);
2823 budget -= ring_pkts_processed;
2824 if (budget <= 0)
2894 * @budget
2904 rx_intr_handler(struct ring_info *ring_data, int budget) argument
[all...]
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.h458 int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget);
501 * @budget:
504 int bnx2x_poll(struct napi_struct *napi, int budget);
H A Dbnx2x_cmn.c591 int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) argument
803 if (rx_pkt == budget)
2275 int bnx2x_poll(struct napi_struct *napi, int budget) argument
2297 work_done += bnx2x_rx_int(fp, budget - work_done);
2299 /* must not complete if we consumed full budget */
2300 if (work_done >= budget)
/drivers/net/ethernet/tile/
H A Dtilepro.c68 * to "netif_receive_skb()". If our budget is exhausted, we will
907 static int tile_net_poll(struct napi_struct *napi, int budget) argument
925 if (++work >= budget)
1613 * call "tile_net_poll()", or which exhausted their budget inside
/drivers/net/wan/
H A Dixp4xx_hss.c653 static int hss_hdlc_poll(struct napi_struct *napi, int budget) argument
665 while (received < budget) {
/drivers/net/ethernet/freescale/
H A Dgianfar.c132 static int gfar_poll(struct napi_struct *napi, int budget);
2731 * until the budget/quota has been reached. Returns the number
2816 static int gfar_poll(struct napi_struct *napi, int budget) argument
2825 int tx_cleaned = 0, i, left_over_budget = budget;
2830 budget_per_queue = budget/num_queues;
2861 return budget;
2863 if (rx_cleaned < budget) {
/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c657 int budget)
677 while ((processed < budget) && cqe) {
881 static int ehea_poll(struct napi_struct *napi, int budget) argument
892 rx += ehea_proc_rwqes(dev, pr, budget - rx);
894 while (rx != budget) {
911 rx += ehea_proc_rwqes(dev, pr, budget - rx);
655 ehea_proc_rwqes(struct net_device *dev, struct ehea_port_res *pr, int budget) argument
/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c2188 static int ql_clean_inbound_rx_ring(struct rx_ring *rx_ring, int budget) argument
2224 if (count == budget)
2232 static int ql_napi_poll_msix(struct napi_struct *napi, int budget) argument
2268 work_done = ql_clean_inbound_rx_ring(rx_ring, budget);
2271 if (work_done < budget) {
4710 int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget) argument
4712 return ql_clean_inbound_rx_ring(rx_ring, budget);
/drivers/net/ethernet/brocade/bna/
H A Dbnad.c444 bnad_poll_cq(struct bnad *bnad, struct bna_ccb *ccb, int budget) argument
467 while (cmpl->valid && packets < budget) {
1678 bnad_napi_poll_rx(struct napi_struct *napi, int budget) argument
1690 rcvd = bnad_poll_cq(bnad, rx_ctrl->ccb, budget);
1691 if (rcvd >= budget)
/drivers/net/ethernet/ibm/emac/
H A Dcore.c1666 static int emac_poll_rx(void *param, int budget) argument
1671 DBG2(dev, "poll_rx(%d)" NL, budget);
1674 while (budget > 0) {
1730 --budget;
1773 if (unlikely(budget && test_bit(MAL_COMMAC_RX_STOPPED, &dev->commac.flags))) {
/drivers/net/ethernet/intel/e1000/
H A De1000_main.c140 static int e1000_clean(struct napi_struct *napi, int budget);
3797 static int e1000_clean(struct napi_struct *napi, int budget) argument
3804 adapter->clean_rx(adapter, &adapter->rx_ring[0], &work_done, budget);
3807 work_done = budget;
3809 /* If budget not fully consumed, exit the polling mode */
3810 if (work_done < budget) {
/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c1476 myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget) argument
1496 while (rx_done->entry[idx].length != 0 && work_done < budget) {
1560 static int myri10ge_poll(struct napi_struct *napi, int budget) argument
1572 work_done = myri10ge_clean_rx_done(ss, budget);
1574 if (work_done < budget) {
/drivers/infiniband/hw/nes/
H A Dnes_nic.c100 static int nes_netdev_poll(struct napi_struct *napi, int budget) argument
106 nesvnic->budget = budget;

Completed in 557 milliseconds

12345