Searched refs:budget (Results 101 - 125 of 161) sorted by relevance

1234567

/drivers/net/ethernet/calxeda/
H A Dxgmac.c1234 * @budget : maximum number of packets that the current CPU can receive from
1240 static int xgmac_poll(struct napi_struct *napi, int budget) argument
1247 work_done = xgmac_rx(priv, budget);
1249 if (work_done < budget) {
/drivers/net/ethernet/ibm/
H A Dibmveth.c1076 static int ibmveth_poll(struct napi_struct *napi, int budget) argument
1085 while (frames_processed < budget) {
1138 if (frames_processed < budget) {
/drivers/net/ethernet/neterion/
H A Ds2io.c2758 * @budget : The number of packets that were budgeted to be processed
2768 static int s2io_poll_msix(struct napi_struct *napi, int budget) argument
2777 int budget_org = budget;
2782 pkts_processed = rx_intr_handler(ring, budget);
2797 static int s2io_poll_inta(struct napi_struct *napi, int budget) argument
2803 int budget_org = budget;
2812 ring_pkts_processed = rx_intr_handler(ring, budget);
2815 budget -= ring_pkts_processed;
2816 if (budget <= 0)
2887 * @budget
2897 rx_intr_handler(struct ring_info *ring_data, int budget) argument
[all...]
/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c1611 static int pasemi_mac_poll(struct napi_struct *napi, int budget) argument
1617 pkts = pasemi_mac_clean_rx(rx_ring(mac), budget);
1618 if (pkts < budget) {
/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c1538 * @budget : maximum number of packets that the current CPU can receive from
1543 static int sxgbe_poll(struct napi_struct *napi, int budget) argument
1554 work_done = sxgbe_rx(priv, budget);
1555 if (work_done < budget) {
/drivers/net/ethernet/smsc/
H A Dsmsc9420.c871 static int smsc9420_rx_poll(struct napi_struct *napi, int budget) argument
879 for (work_done = 0; work_done < budget; work_done++) {
901 if (work_done < budget) {
/drivers/net/ethernet/ti/
H A Ddavinci_emac.c1354 * @budget: Number of receive packets to process (as told by NAPI layer)
1356 * NAPI Poll function implemented to process packets as per budget. We check
1358 * packet processing functions. We follow the budget for RX processing and
1364 static int emac_poll(struct napi_struct *napi, int budget) argument
1392 num_rx_pkts = cpdma_chan_process(priv->rxchan, budget);
1425 } else if (num_rx_pkts < budget) {
H A Dcpmac.c414 static int cpmac_poll(struct napi_struct *napi, int budget) argument
433 while (((desc->dataflags & CPMAC_OWN) == 0) && (received < budget)) {
/drivers/net/ethernet/tile/
H A Dtilegx.c652 static int tile_net_poll(struct napi_struct *napi, int budget) argument
662 if (budget <= 0)
674 if (++work >= budget)
/drivers/infiniband/ulp/ipoib/
H A Dipoib.h450 int ipoib_poll(struct napi_struct *napi, int budget);
/drivers/net/ethernet/intel/igbvf/
H A Dnetdev.c63 static int igbvf_poll(struct napi_struct *napi, int budget);
1193 * @budget: amount of packets driver is allowed to process this poll
1195 static int igbvf_poll(struct napi_struct *napi, int budget) argument
1202 igbvf_clean_rx_irq(adapter, &work_done, budget);
1205 if (work_done < budget) {
/drivers/net/ethernet/sfc/
H A Dfarch.c1264 int efx_farch_ev_process(struct efx_channel *channel, int budget) argument
1273 if (budget <= 0)
1300 if (++spent == budget)
1307 spent = budget;
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c1065 unsigned int budget = q_vector->tx.work_limit; local
1143 /* update budget accounting */
1144 budget--;
1145 } while (likely(budget));
1205 return !!budget;
1973 * @budget: Total limit on number of packets to process
1984 const int budget)
1994 while (likely(total_rx_packets < budget)) {
2067 /* update budget accounting */
2652 * @budget
1982 ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector, struct ixgbe_ring *rx_ring, const int budget) argument
2656 ixgbe_poll(struct napi_struct *napi, int budget) argument
[all...]
/drivers/net/wan/
H A Dixp4xx_hss.c654 static int hss_hdlc_poll(struct napi_struct *napi, int budget) argument
666 while (received < budget) {
/drivers/net/ethernet/agere/
H A Det131x.c2295 static int et131x_handle_recv_pkts(struct et131x_adapter *adapter, int budget) argument
2299 int limit = budget;
2303 if (budget > MAX_PACKETS_HANDLED)
3591 static int et131x_poll(struct napi_struct *napi, int budget) argument
3595 int work_done = et131x_handle_recv_pkts(adapter, budget);
3599 if (work_done < budget) {
/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1920 static int atl1_intr_rx(struct atl1_adapter *adapter, int budget) argument
1936 while (count < budget) {
2448 static int atl1_rings_clean(struct napi_struct *napi, int budget) argument
2451 int work_done = atl1_intr_rx(adapter, budget);
2454 work_done = budget;
2457 if (work_done >= budget)
/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c666 int budget)
686 while ((processed < budget) && cqe) {
889 static int ehea_poll(struct napi_struct *napi, int budget) argument
900 rx += ehea_proc_rwqes(dev, pr, budget - rx);
902 while (rx != budget) {
919 rx += ehea_proc_rwqes(dev, pr, budget - rx);
664 ehea_proc_rwqes(struct net_device *dev, struct ehea_port_res *pr, int budget) argument
/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c1593 myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget) argument
1606 while (rx_done->entry[idx].length != 0 && work_done < budget) {
1667 static int myri10ge_poll(struct napi_struct *napi, int budget) argument
1679 return budget;
1682 work_done = myri10ge_clean_rx_done(ss, budget);
1685 if (work_done < budget) {
/drivers/net/ethernet/intel/igb/
H A Digb_main.c6309 * @budget: count of how many packets we should handle
6311 static int igb_poll(struct napi_struct *napi, int budget) argument
6326 clean_complete &= igb_clean_rx_irq(q_vector, budget);
6328 /* If all work not completed, return budget and keep polling */
6330 return budget;
6352 unsigned int budget = q_vector->tx.work_limit; local
6430 /* update budget accounting */
6431 budget--;
6432 } while (likely(budget));
6507 return !!budget;
6910 igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget) argument
[all...]
/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c2243 static int ql_clean_inbound_rx_ring(struct rx_ring *rx_ring, int budget) argument
2279 if (count == budget)
2287 static int ql_napi_poll_msix(struct napi_struct *napi, int budget) argument
2323 work_done = ql_clean_inbound_rx_ring(rx_ring, budget);
2326 if (work_done < budget) {
4804 int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget) argument
4806 return ql_clean_inbound_rx_ring(rx_ring, budget);
/drivers/net/ethernet/broadcom/
H A Dbnx2.c2828 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) argument
2892 if (tx_pkt == budget)
3130 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) argument
3137 if (budget <= 0)
3271 if ((rx_pkt == budget))
3470 int work_done, int budget)
3479 work_done += bnx2_rx_int(bp, bnapi, budget - work_done);
3484 static int bnx2_poll_msix(struct napi_struct *napi, int budget) argument
3492 work_done = bnx2_poll_work(bp, bnapi, work_done, budget);
3493 if (unlikely(work_done >= budget))
3469 bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi, int work_done, int budget) argument
3511 bnx2_poll(struct napi_struct *napi, int budget) argument
[all...]
/drivers/net/ethernet/brocade/bna/
H A Dbnad.c587 bnad_cq_process(struct bnad *bnad, struct bna_ccb *ccb, int budget) argument
604 while (packets < budget) {
1871 bnad_napi_poll_rx(struct napi_struct *napi, int budget) argument
1883 rcvd = bnad_cq_process(bnad, rx_ctrl->ccb, budget);
1884 if (rcvd >= budget)
/drivers/net/ethernet/ibm/emac/
H A Dcore.c1688 static int emac_poll_rx(void *param, int budget) argument
1693 DBG2(dev, "poll_rx(%d)" NL, budget);
1696 while (budget > 0) {
1752 --budget;
1795 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);
3803 static int e1000_clean(struct napi_struct *napi, int budget) argument
3811 adapter->clean_rx(adapter, &adapter->rx_ring[0], &work_done, budget);
3814 work_done = budget;
3816 /* If budget not fully consumed, exit the polling mode */
3817 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 910 milliseconds

1234567