/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 958 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument 965 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_poll() 978 napi_complete(&sds_ring->napi); in qlcnic_poll() 988 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument 994 tx_ring = container_of(napi, struct qlcnic_host_tx_ring, napi); in qlcnic_tx_poll() 999 napi_complete(&tx_ring->napi); in qlcnic_tx_poll() 1010 static int qlcnic_rx_poll(struct napi_struct *napi, int budget) in qlcnic_rx_poll() argument 1016 sds_ring = container_of(napi, struct qlcnic_host_sds_ring, napi); in qlcnic_rx_poll() 1022 napi_complete(&sds_ring->napi); in qlcnic_rx_poll() 1247 napi_gro_receive(&sds_ring->napi, skb); in qlcnic_process_rcv() [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-op-mode.h | 156 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 158 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi, 196 struct napi_struct *napi, in iwl_op_mode_rx() argument 199 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx() 203 struct napi_struct *napi, in iwl_op_mode_rx_rss() argument 207 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss()
|
/drivers/staging/octeon/ |
D | ethernet-rx.c | 51 struct napi_struct napi; member 422 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument 424 struct oct_rx_group *rx_group = container_of(napi, struct oct_rx_group, in cvm_oct_napi_poll() 425 napi); in cvm_oct_napi_poll() 432 napi_complete(napi); in cvm_oct_napi_poll() 482 netif_napi_add(dev_for_napi, &oct_rx_group[i].napi, in cvm_oct_rx_initialize() 484 napi_enable(&oct_rx_group[i].napi); in cvm_oct_rx_initialize() 491 "Ethernet", &oct_rx_group[i].napi); in cvm_oct_rx_initialize() 528 napi_schedule(&oct_rx_group[i].napi); in cvm_oct_rx_initialize() 550 netif_napi_del(&oct_rx_group[i].napi); in cvm_oct_rx_shutdown()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 168 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument 170 struct mlx5e_channel *c = container_of(napi, struct mlx5e_channel, in mlx5e_napi_poll() 171 napi); in mlx5e_napi_poll() 194 napi_complete_done(napi, work_done); in mlx5e_napi_poll() 198 napi_schedule(napi); in mlx5e_napi_poll() 220 napi_schedule(cq->napi); in mlx5e_completion_event()
|
/drivers/net/caif/ |
D | caif_virtio.c | 111 struct napi_struct napi; member 250 static int cfv_rx_poll(struct napi_struct *napi, int quota) in cfv_rx_poll() argument 252 struct cfv_info *cfv = container_of(napi, struct cfv_info, napi); in cfv_rx_poll() 319 napi_complete(napi); in cfv_rx_poll() 321 napi_schedule_prep(napi)) { in cfv_rx_poll() 323 __napi_schedule(napi); in cfv_rx_poll() 331 napi_complete(napi); in cfv_rx_poll() 339 napi_complete(napi); in cfv_rx_poll() 356 napi_schedule(&cfv->napi); in cfv_recv() 446 napi_enable(&cfv->napi); in cfv_netdev_open() [all …]
|
/drivers/net/ethernet/ |
D | lantiq_etop.c | 93 struct napi_struct napi; member 155 ltq_etop_poll_rx(struct napi_struct *napi, int budget) in ltq_etop_poll_rx() argument 157 struct ltq_etop_chan *ch = container_of(napi, in ltq_etop_poll_rx() 158 struct ltq_etop_chan, napi); in ltq_etop_poll_rx() 173 napi_complete(&ch->napi); in ltq_etop_poll_rx() 180 ltq_etop_poll_tx(struct napi_struct *napi, int budget) in ltq_etop_poll_tx() argument 183 container_of(napi, struct ltq_etop_chan, napi); in ltq_etop_poll_tx() 203 napi_complete(&ch->napi); in ltq_etop_poll_tx() 214 napi_schedule(&priv->ch[ch].napi); in ltq_etop_dma_irq() 450 napi_enable(&ch->napi); in ltq_etop_open() [all …]
|
D | jme.h | 394 #define DECLARE_NAPI_STRUCT struct napi_struct napi; 402 #define JME_NAPI_ENABLE(priv) napi_enable(&priv->napi); 404 if (!napi_disable_pending(&priv->napi)) \ 405 napi_disable(&priv->napi); 407 napi_schedule_prep(&priv->napi) 409 __napi_schedule(&priv->napi); 475 jme_napi_priv(struct napi_struct *napi) in jme_napi_priv() argument 478 jme = container_of(napi, struct jme_adapter, napi); in jme_napi_priv()
|
/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 76 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument 78 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_rx() 87 napi_complete(napi); in wil6210_netdev_poll_rx() 97 static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_tx() argument 99 struct wil6210_priv *wil = container_of(napi, struct wil6210_priv, in wil6210_netdev_poll_tx() 116 napi_complete(napi); in wil6210_netdev_poll_tx()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-drv.c | 354 if (napi_schedule_prep(&pdata->napi)) { in xgbe_isr() 359 __napi_schedule_irqoff(&pdata->napi); in xgbe_isr() 407 if (napi_schedule_prep(&channel->napi)) { in xgbe_dma_isr() 412 __napi_schedule_irqoff(&channel->napi); in xgbe_dma_isr() 422 struct napi_struct *napi; in xgbe_tx_timer() local 426 napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; in xgbe_tx_timer() 428 if (napi_schedule_prep(napi)) { in xgbe_tx_timer() 436 __napi_schedule(napi); in xgbe_tx_timer() 610 netif_napi_add(pdata->netdev, &channel->napi, in xgbe_napi_enable() 613 napi_enable(&channel->napi); in xgbe_napi_enable() [all …]
|
/drivers/net/ethernet/ezchip/ |
D | nps_enet.c | 184 static int nps_enet_poll(struct napi_struct *napi, int budget) in nps_enet_poll() argument 186 struct net_device *ndev = napi->dev; in nps_enet_poll() 195 napi_complete(napi); in nps_enet_poll() 214 napi_reschedule(napi); in nps_enet_poll() 240 if (likely(napi_schedule_prep(&priv->napi))) { in nps_enet_irq_handler() 242 __napi_schedule(&priv->napi); in nps_enet_irq_handler() 505 napi_enable(&priv->napi); in nps_enet_open() 526 napi_disable(&priv->napi); in nps_enet_stop() 633 netif_napi_add(ndev, &priv->napi, nps_enet_poll, in nps_enet_probe() 648 netif_napi_del(&priv->napi); in nps_enet_probe() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_cq.c | 161 netif_tx_napi_add(cq->dev, &cq->napi, mlx4_en_poll_tx_cq, in mlx4_en_activate_cq() 164 netif_napi_add(cq->dev, &cq->napi, mlx4_en_poll_rx_cq, 64); in mlx4_en_activate_cq() 166 napi_enable(&cq->napi); in mlx4_en_activate_cq() 195 napi_disable(&cq->napi); in mlx4_en_deactivate_cq() 197 napi_hash_del(&cq->napi); in mlx4_en_deactivate_cq() 200 netif_napi_del(&cq->napi); in mlx4_en_deactivate_cq()
|
/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 567 struct napi_struct *napi, in nicvf_rcv_pkt_handler() argument 624 if (napi && (netdev->features & NETIF_F_GRO)) in nicvf_rcv_pkt_handler() 625 napi_gro_receive(napi, skb); in nicvf_rcv_pkt_handler() 631 struct napi_struct *napi, int budget) in nicvf_cq_intr_handler() argument 665 if ((work_done >= budget) && napi && in nicvf_cq_intr_handler() 674 nicvf_rcv_pkt_handler(netdev, napi, cq_desc); in nicvf_cq_intr_handler() 700 if ((work_done < budget) && napi) in nicvf_cq_intr_handler() 727 static int nicvf_poll(struct napi_struct *napi, int budget) in nicvf_poll() argument 731 struct net_device *netdev = napi->dev; in nicvf_poll() 735 cq = container_of(napi, struct nicvf_cq_poll, napi); in nicvf_poll() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_main.c | 359 napi_schedule_irqoff(&enic->napi[0]); in enic_isr_legacy() 386 napi_schedule_irqoff(&enic->napi[0]); in enic_isr_msi() 393 struct napi_struct *napi = data; in enic_isr_msix() local 395 napi_schedule_irqoff(napi); in enic_isr_msix() 1189 skb_mark_napi_id(skb, &enic->napi[rq->index]); in enic_rq_indicate_buf() 1194 napi_gro_receive(&enic->napi[q_number], skb); in enic_rq_indicate_buf() 1280 static int enic_poll(struct napi_struct *napi, int budget) in enic_poll() argument 1282 struct net_device *netdev = napi->dev; in enic_poll() 1322 enic_poll_unlock_napi(&enic->rq[cq_rq], napi); in enic_poll() 1342 napi_complete(napi); in enic_poll() [all …]
|
/drivers/net/ethernet/ibm/emac/ |
D | mal.c | 56 napi_enable(&mal->napi); in mal_register_commac() 80 napi_disable(&mal->napi); in mal_unregister_commac() 265 if (likely(napi_schedule_prep(&mal->napi))) { in mal_schedule_poll() 270 __napi_schedule(&mal->napi); in mal_schedule_poll() 381 napi_synchronize(&mal->napi); in mal_poll_disable() 394 napi_schedule(&mal->napi); in mal_poll_enable() 397 static int mal_poll(struct napi_struct *napi, int budget) in mal_poll() argument 399 struct mal_instance *mal = container_of(napi, struct mal_instance, napi); in mal_poll() 435 __napi_complete(napi); in mal_poll() 448 if (!napi_reschedule(napi)) in mal_poll() [all …]
|
/drivers/net/ |
D | virtio_net.c | 90 struct napi_struct napi; member 274 skb = napi_alloc_skb(&rq->napi, GOOD_COPY_LEN); in page_to_skb() 508 napi_gro_receive(&rq->napi, skb); in receive_buf() 676 if (napi_schedule_prep(&rq->napi)) { in skb_recv_done() 678 __napi_schedule(&rq->napi); in skb_recv_done() 684 napi_enable(&rq->napi); in virtnet_napi_enable() 690 if (napi_schedule_prep(&rq->napi)) { in virtnet_napi_enable() 693 __napi_schedule(&rq->napi); in virtnet_napi_enable() 708 napi_disable(&rq->napi); in refill_work() 740 static int virtnet_poll(struct napi_struct *napi, int budget) in virtnet_poll() argument [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_main.c | 129 if (napi_schedule_prep(&rx_ring->napi)) { in xgene_enet_rx_irq() 131 __napi_schedule(&rx_ring->napi); in xgene_enet_rx_irq() 572 napi_gro_receive(&rx_ring->napi, skb); in xgene_enet_rx_frame() 652 static int xgene_enet_napi(struct napi_struct *napi, const int budget) in xgene_enet_napi() argument 657 ring = container_of(napi, struct xgene_enet_desc_ring, napi); in xgene_enet_napi() 661 napi_complete(napi); in xgene_enet_napi() 765 struct napi_struct *napi; in xgene_enet_napi_enable() local 769 napi = &pdata->rx_ring[i]->napi; in xgene_enet_napi_enable() 770 napi_enable(napi); in xgene_enet_napi_enable() 774 napi = &pdata->tx_ring[i]->cp_ring->napi; in xgene_enet_napi_enable() [all …]
|
/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 159 struct napi_struct napi; member 468 if (napi_schedule_prep(&priv->napi)) { in hip04_mac_start_xmit() 474 __napi_schedule(&priv->napi); in hip04_mac_start_xmit() 484 static int hip04_rx_poll(struct napi_struct *napi, int budget) in hip04_rx_poll() argument 486 struct hip04_priv *priv = container_of(napi, struct hip04_priv, napi); in hip04_rx_poll() 527 napi_gro_receive(&priv->napi, skb); in hip04_rx_poll() 558 napi_complete(napi); in hip04_rx_poll() 592 if (ists & RCV_INT && napi_schedule_prep(&priv->napi)) { in hip04_mac_interrupt() 597 __napi_schedule(&priv->napi); in hip04_mac_interrupt() 609 if (napi_schedule_prep(&priv->napi)) { in tx_done() [all …]
|
/drivers/net/ethernet/cirrus/ |
D | ep93xx_eth.c | 176 struct napi_struct napi; member 319 static int ep93xx_poll(struct napi_struct *napi, int budget) in ep93xx_poll() argument 321 struct ep93xx_priv *ep = container_of(napi, struct ep93xx_priv, napi); in ep93xx_poll() 331 __napi_complete(napi); in ep93xx_poll() 340 if (more && napi_reschedule(napi)) in ep93xx_poll() 453 if (likely(napi_schedule_prep(&ep->napi))) { in ep93xx_irq() 455 __napi_schedule(&ep->napi); in ep93xx_irq() 659 napi_enable(&ep->napi); in ep93xx_open() 662 napi_disable(&ep->napi); in ep93xx_open() 676 napi_disable(&ep->napi); in ep93xx_open() [all …]
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rxmq.c | 194 struct napi_struct *napi, in iwl_mvm_pass_packet_to_mac80211() argument 201 ieee80211_rx_napi(mvm->hw, sta, skb, napi); in iwl_mvm_pass_packet_to_mac80211() 402 struct napi_struct *napi, in iwl_mvm_release_frames() argument 427 iwl_mvm_pass_packet_to_mac80211(mvm, napi, skb, in iwl_mvm_release_frames() 571 struct napi_struct *napi, in iwl_mvm_reorder() argument 638 iwl_mvm_release_frames(mvm, sta, napi, buffer, nssn); in iwl_mvm_reorder() 653 iwl_mvm_release_frames(mvm, sta, napi, buffer, min_sn); in iwl_mvm_reorder() 710 iwl_mvm_release_frames(mvm, sta, napi, buffer, nssn); in iwl_mvm_reorder() 751 void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi, in iwl_mvm_rx_mpdu_mq() argument 966 if (!iwl_mvm_reorder(mvm, napi, queue, sta, skb, desc)) in iwl_mvm_rx_mpdu_mq() [all …]
|
/drivers/net/xen-netback/ |
D | interface.c | 84 napi_schedule(&queue->napi); in xenvif_tx_interrupt() 89 static int xenvif_poll(struct napi_struct *napi, int budget) in xenvif_poll() argument 92 container_of(napi, struct xenvif_queue, napi); in xenvif_poll() 100 napi_complete(napi); in xenvif_poll() 107 napi_complete(napi); in xenvif_poll() 266 napi_enable(&queue->napi); in xenvif_up() 285 napi_disable(&queue->napi); in xenvif_down() 631 netif_napi_add(queue->vif->dev, &queue->napi, xenvif_poll, in xenvif_connect_data() 700 netif_napi_del(&queue->napi); in xenvif_connect_data() 730 netif_napi_del(&queue->napi); in xenvif_disconnect_data()
|
/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 176 napi_enable(&priv->napi); in moxart_mac_open() 195 napi_disable(&priv->napi); in moxart_mac_stop() 208 static int moxart_rx_poll(struct napi_struct *napi, int budget) in moxart_rx_poll() argument 210 struct moxart_mac_priv_t *priv = container_of(napi, in moxart_rx_poll() 212 napi); in moxart_rx_poll() 256 napi_gro_receive(&priv->napi, skb); in moxart_rx_poll() 273 napi_complete(napi); in moxart_rx_poll() 323 if (napi_schedule_prep(&priv->napi)) { in moxart_mac_interrupt() 326 __napi_schedule(&priv->napi); in moxart_mac_interrupt() 544 netif_napi_add(ndev, &priv->napi, moxart_rx_poll, RX_DESC_NUM); in moxart_mac_probe()
|
/drivers/net/ethernet/wiznet/ |
D | w5300.c | 97 struct napi_struct napi; member 386 static int w5300_napi_poll(struct napi_struct *napi, int budget) in w5300_napi_poll() argument 388 struct w5300_priv *priv = container_of(napi, struct w5300_priv, napi); in w5300_napi_poll() 420 napi_complete(napi); in w5300_napi_poll() 445 if (napi_schedule_prep(&priv->napi)) { in w5300_interrupt() 448 __napi_schedule(&priv->napi); in w5300_interrupt() 502 napi_enable(&priv->napi); in w5300_open() 518 napi_disable(&priv->napi); in w5300_stop() 623 netif_napi_add(ndev, &priv->napi, w5300_napi_poll, 16); in w5300_probe()
|
/drivers/net/can/rcar/ |
D | rcar_can.c | 88 struct napi_struct napi; member 411 if (napi_schedule_prep(&priv->napi)) { in rcar_can_interrupt() 415 __napi_schedule(&priv->napi); in rcar_can_interrupt() 526 napi_enable(&priv->napi); in rcar_can_open() 538 napi_disable(&priv->napi); in rcar_can_open() 579 napi_disable(&priv->napi); in rcar_can_close() 673 static int rcar_can_rx_poll(struct napi_struct *napi, int quota) in rcar_can_rx_poll() argument 675 struct rcar_can_priv *priv = container_of(napi, in rcar_can_rx_poll() 676 struct rcar_can_priv, napi); in rcar_can_rx_poll() 698 napi_complete(napi); in rcar_can_rx_poll() [all …]
|
/drivers/net/can/mscan/ |
D | mscan.c | 389 static int mscan_rx_poll(struct napi_struct *napi, int quota) in mscan_rx_poll() argument 391 struct mscan_priv *priv = container_of(napi, struct mscan_priv, napi); in mscan_rx_poll() 392 struct net_device *dev = napi->dev; in mscan_rx_poll() 427 napi_complete(&priv->napi); in mscan_rx_poll() 488 napi_schedule(&priv->napi); in mscan_isr() 571 napi_enable(&priv->napi); in mscan_open() 595 napi_disable(&priv->napi); in mscan_open() 613 napi_disable(&priv->napi); in mscan_close() 699 netif_napi_add(dev, &priv->napi, mscan_rx_poll, 8); in alloc_mscandev()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 121 static int emac_napi_rtx(struct napi_struct *napi, int budget) in emac_napi_rtx() argument 124 container_of(napi, struct emac_rx_queue, napi); in emac_napi_rtx() 132 napi_complete(napi); in emac_napi_rtx() 178 if (napi_schedule_prep(&rx_q->napi)) { in emac_isr() 180 __napi_schedule(&rx_q->napi); in emac_isr() 688 netif_napi_add(netdev, &adpt->rx_q.napi, emac_napi_rtx, in emac_probe() 712 netif_napi_del(&adpt->rx_q.napi); in emac_probe() 731 netif_napi_del(&adpt->rx_q.napi); in emac_remove()
|