/linux-master/drivers/net/ethernet/hisilicon/ |
H A D | hisi_femac.c | 299 static int hisi_femac_poll(struct napi_struct *napi, int budget) argument 304 int work_done = 0, task = budget; 312 if (work_done >= budget) 320 if (work_done < budget) {
|
/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_tx.c | 693 * @budget: number of tx 697 static int free_tx_poll(struct napi_struct *napi, int budget) argument 742 } while (pkts < budget); 764 if (pkts < budget) { 774 return budget;
|
/linux-master/drivers/net/netdevsim/ |
H A D | netdev.c | 333 static int nsim_rcv(struct nsim_rq *rq, int budget) argument 338 for (i = 0; i < budget; i++) { 349 static int nsim_poll(struct napi_struct *napi, int budget) argument 354 done = nsim_rcv(rq, budget);
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | dma.c | 150 static int mt7603_poll_tx(struct napi_struct *napi, int budget) argument
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_rxtx.c | 272 static int prestera_sdma_rx_poll(struct napi_struct *napi, int budget) argument 289 while (pkts_done < budget && rxq_done_map != qmask) { 290 for (q = 0; q < qnum && pkts_done < budget; q++) { 324 if (pkts_done < budget && napi_complete_done(napi, pkts_done))
|
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | mal.h | 165 int (*poll_rx) (void *dev, int budget);
|
/linux-master/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 151 ltq_etop_poll_rx(struct napi_struct *napi, int budget) argument 157 while (work_done < budget) { 165 if (work_done < budget) { 173 ltq_etop_poll_tx(struct napi_struct *napi, int budget) argument
|
H A D | ethoc.c | 608 static int ethoc_poll(struct napi_struct *napi, int budget) argument 614 rx_work_done = ethoc_rx(priv->netdev, budget); 615 tx_work_done = ethoc_tx(priv->netdev, budget); 617 if (rx_work_done < budget && tx_work_done < budget) {
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_main.c | 321 * @budget: max number of packets to be processed in single invocation. 323 static int octep_vf_napi_poll(struct napi_struct *napi, int budget) argument 330 rx_done = octep_vf_oq_process_rx(ioq_vector->oq, budget); 333 * processed at least 'budget' number of rx packets. 335 if (tx_pending || rx_done >= budget) 336 return budget;
|
/linux-master/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.h | 328 int iavf_napi_poll(struct napi_struct *napi, int budget);
|
/linux-master/drivers/net/wireless/ath/ath10k/ |
H A D | usb.c | 977 static int ath10k_usb_napi_poll(struct napi_struct *ctx, int budget) argument 982 done = ath10k_htt_rx_hl_indication(ar, budget); 983 ath10k_dbg(ar, ATH10K_DBG_USB, "napi poll: done: %d, budget:%d\n", done, budget); 985 if (done < budget)
|
/linux-master/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_fp.c | 1339 static int qede_rx_int(struct qede_fastpath *fp, int budget) argument 1357 while ((sw_comp_cons != hw_comp_cons) && (work_done < budget)) { 1416 int qede_poll(struct napi_struct *napi, int budget) argument 1440 qede_rx_int(fp, budget) : 0; 1445 /* Handle case where we are called by netpoll with a budget of 0 */ 1446 if (rx_work_done < budget || !budget) { 1453 rx_work_done = budget;
|
/linux-master/arch/um/drivers/ |
H A D | vector_kern.c | 70 static int vector_mmsg_rx(struct vector_private *vp, int budget); 956 static int vector_mmsg_rx(struct vector_private *vp, int budget) argument 973 if (budget > qi->max_depth) 974 budget = qi->max_depth; 1170 static int vector_poll(struct napi_struct *napi, int budget) argument 1180 err = vector_mmsg_rx(vp, budget); 1191 if (work_done < budget)
|
/linux-master/drivers/net/ethernet/ti/ |
H A D | netcp_core.c | 778 unsigned int budget) 782 for (i = 0; (i < budget) && !netcp_process_one_rx_packet(netcp); i++) 947 static int netcp_rx_poll(struct napi_struct *napi, int budget) argument 953 packets = netcp_process_rx_packets(netcp, budget); 956 if (packets < budget) { 1002 unsigned int budget) 1012 while (budget--) { 1057 static int netcp_tx_poll(struct napi_struct *napi, int budget) argument 1063 packets = netcp_process_tx_compl_packets(netcp, budget); 1064 if (packets < budget) { 777 netcp_process_rx_packets(struct netcp_intf *netcp, unsigned int budget) argument 1001 netcp_process_tx_compl_packets(struct netcp_intf *netcp, unsigned int budget) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | bcm63xx_enet.c | 300 static int bcm_enet_receive_queue(struct net_device *dev, int budget) argument 314 if (budget > priv->rx_desc_count) 315 budget = priv->rx_desc_count; 406 } while (processed < budget); 426 static int bcm_enet_tx_reclaim(struct net_device *dev, int force, int budget) argument 471 napi_consume_skb(skb, budget); 486 static int bcm_enet_poll(struct napi_struct *napi, int budget) argument 502 bcm_enet_tx_reclaim(dev, 0, budget); 505 rx_work_done = bcm_enet_receive_queue(dev, budget); 508 if (rx_work_done >= budget) { [all...] |
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | enic_main.c | 1504 static int enic_poll(struct napi_struct *napi, int budget) argument 1511 unsigned int rq_work_to_do = budget; 1519 if (budget > 0) 1550 if ((rq_work_done < budget) && napi_complete_done(napi, rq_work_done)) { 1602 static int enic_poll_msix_wq(struct napi_struct *napi, int budget) argument 1629 return budget; 1632 static int enic_poll_msix_rq(struct napi_struct *napi, int budget) argument 1639 unsigned int work_to_do = budget; 1646 if (budget > 0) 1675 if ((work_done < budget) [all...] |
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | efx_channels.c | 1202 static int efx_process_channel(struct efx_channel *channel, int budget) argument 1221 spent = efx_nic_process_eventq(channel, budget); 1272 static int efx_poll(struct napi_struct *napi, int budget) argument 1286 spent = efx_process_channel(channel, budget); 1290 if (spent < budget) {
|
/linux-master/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 895 static int __lpc_handle_recv(struct net_device *ndev, int budget) argument 905 while (rx_done < budget && rxconsidx != 965 static int lpc_eth_poll(struct napi_struct *napi, int budget) argument 976 rx_done = __lpc_handle_recv(ndev, budget); 978 if (rx_done < budget) {
|
/linux-master/drivers/net/ethernet/ni/ |
H A D | nixge.c | 595 static int nixge_recv(struct net_device *ndev, int budget) argument 608 budget > packets)) { 670 static int nixge_poll(struct napi_struct *napi, int budget) argument 678 work_done = nixge_recv(priv->ndev, budget); 679 if (work_done < budget) {
|
/linux-master/drivers/net/ethernet/marvell/ |
H A D | pxa168_eth.c | 764 static int rxq_process(struct net_device *dev, int budget) argument 771 while (budget-- > 0) { 1224 static int pxa168_rx_poll(struct napi_struct *napi, int budget) argument 1241 work_done = rxq_process(dev, budget); 1242 if (work_done < budget) {
|
/linux-master/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_main.c | 588 * @budget: max number of packets to be processed in single invocation. 590 static int octep_napi_poll(struct napi_struct *napi, int budget) argument 596 tx_pending = octep_iq_process_completions(ioq_vector->iq, budget); 597 rx_done = octep_oq_process_rx(ioq_vector->oq, budget); 600 * processed at least 'budget' number of rx packets. 602 if (tx_pending || rx_done >= budget) 603 return budget;
|
/linux-master/drivers/net/wireless/ath/ath12k/ |
H A D | pci.c | 516 static int ath12k_pci_ext_grp_napi_poll(struct napi_struct *napi, int budget) argument 525 work_done = ath12k_dp_service_srng(ab, irq_grp, budget); 526 if (work_done < budget) { 532 if (work_done > budget) 533 work_done = budget;
|
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | ahb.c | 490 static int ath11k_ahb_ext_grp_napi_poll(struct napi_struct *napi, int budget) argument 498 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); 499 if (work_done < budget) { 504 if (work_done > budget) 505 work_done = budget;
|
/linux-master/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ixgbevf_main.c | 271 unsigned int budget = tx_ring->count / 2; local 353 /* update budget accounting */ 354 budget--; 355 } while (likely(budget)); 402 return !!budget; 421 return !!budget; 1118 int budget) 1133 while (likely(total_rx_packets < budget)) { 1234 /* update budget accounting */ 1265 * @budget 1116 ixgbevf_clean_rx_irq(struct ixgbevf_q_vector *q_vector, struct ixgbevf_ring *rx_ring, int budget) argument 1270 ixgbevf_poll(struct napi_struct *napi, int budget) argument [all...] |
/linux-master/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 830 static int ena_clean_tx_irq(struct ena_ring *tx_ring, u32 budget) argument 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) argument 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); 1207 ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi, u32 budget) argument 3509 int qid, budget, rc; local [all...] |