Searched refs:budget (Results 151 - 175 of 379) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/hisilicon/
H A Dhisi_femac.c299 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 Dhinic_tx.c693 * @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 Dnetdev.c333 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 Ddma.c150 static int mt7603_poll_tx(struct napi_struct *napi, int budget) argument
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_rxtx.c272 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 Dmal.h165 int (*poll_rx) (void *dev, int budget);
/linux-master/drivers/net/ethernet/
H A Dlantiq_etop.c151 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 Dethoc.c608 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 Doctep_vf_main.c321 * @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 Diavf_txrx.h328 int iavf_napi_poll(struct napi_struct *napi, int budget);
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dusb.c977 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 Dqede_fp.c1339 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 Dvector_kern.c70 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 Dnetcp_core.c778 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 Dbcm63xx_enet.c300 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 Denic_main.c1504 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 Defx_channels.c1202 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 Dlpc_eth.c895 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 Dnixge.c595 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 Dpxa168_eth.c764 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 Doctep_main.c588 * @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 Dpci.c516 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 Dahb.c490 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 Dixgbevf_main.c271 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 Dena_netdev.c830 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...]

Completed in 482 milliseconds

1234567891011>>