work_done 2802 drivers/ata/sata_mv.c bool work_done = false; work_done 2826 drivers/ata/sata_mv.c work_done = true; work_done 2829 drivers/ata/sata_mv.c if (work_done) { work_done 476 drivers/infiniband/hw/hfi1/vnic_main.c int *work_done, int work_to_do) work_done 483 drivers/infiniband/hw/hfi1/vnic_main.c if (*work_done >= work_to_do) work_done 502 drivers/infiniband/hw/hfi1/vnic_main.c (*work_done)++; work_done 512 drivers/infiniband/hw/hfi1/vnic_main.c int work_done = 0; work_done 515 drivers/infiniband/hw/hfi1/vnic_main.c hfi1_vnic_handle_rx(rxq, &work_done, budget); work_done 517 drivers/infiniband/hw/hfi1/vnic_main.c v_dbg("napi %d work_done %d\n", rxq->idx, work_done); work_done 518 drivers/infiniband/hw/hfi1/vnic_main.c if (work_done < budget) work_done 521 drivers/infiniband/hw/hfi1/vnic_main.c return work_done; work_done 584 drivers/media/pci/netup_unidvb/netup_unidvb_core.c goto work_done; work_done 590 drivers/media/pci/netup_unidvb/netup_unidvb_core.c goto work_done; work_done 598 drivers/media/pci/netup_unidvb/netup_unidvb_core.c goto work_done; work_done 601 drivers/media/pci/netup_unidvb/netup_unidvb_core.c goto work_done; work_done 612 drivers/media/pci/netup_unidvb/netup_unidvb_core.c work_done: work_done 794 drivers/net/can/at91_can.c int work_done = 0; work_done 797 drivers/net/can/at91_can.c work_done += at91_poll_rx(dev, quota - work_done); work_done 805 drivers/net/can/at91_can.c work_done += at91_poll_err(dev, quota - work_done, reg_sr); work_done 807 drivers/net/can/at91_can.c if (work_done < quota) { work_done 812 drivers/net/can/at91_can.c napi_complete_done(napi, work_done); work_done 816 drivers/net/can/at91_can.c return work_done; work_done 1069 drivers/net/can/c_can/c_can.c int work_done = 0; work_done 1085 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); work_done 1090 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); work_done 1095 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); work_done 1102 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); work_done 1107 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); work_done 1112 drivers/net/can/c_can/c_can.c work_done += c_can_handle_state_change(dev, C_CAN_NO_ERROR); work_done 1116 drivers/net/can/c_can/c_can.c work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); work_done 1119 drivers/net/can/c_can/c_can.c work_done += c_can_do_rx_poll(dev, (quota - work_done)); work_done 1123 drivers/net/can/c_can/c_can.c if (work_done < quota) { work_done 1124 drivers/net/can/c_can/c_can.c napi_complete_done(napi, work_done); work_done 1130 drivers/net/can/c_can/c_can.c return work_done; work_done 503 drivers/net/can/grcan.c int i, work_done; work_done 511 drivers/net/can/grcan.c for (work_done = 0; work_done < budget || budget < 0; work_done++) { work_done 530 drivers/net/can/grcan.c return work_done; work_done 1141 drivers/net/can/grcan.c int work_done; work_done 1145 drivers/net/can/grcan.c work_done = catch_up_echo_skb(dev, budget, true); work_done 1146 drivers/net/can/grcan.c if (work_done) { work_done 1160 drivers/net/can/grcan.c return work_done; work_done 1174 drivers/net/can/grcan.c int work_done = 0; work_done 1178 drivers/net/can/grcan.c for (work_done = 0; work_done < budget; work_done++) { work_done 1233 drivers/net/can/grcan.c return work_done; work_done 536 drivers/net/can/ifi_canfd/ifi_canfd.c int work_done = 0; work_done 541 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, work_done 548 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, work_done 555 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, work_done 562 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, work_done 566 drivers/net/can/ifi_canfd/ifi_canfd.c return work_done; work_done 574 drivers/net/can/ifi_canfd/ifi_canfd.c int work_done = 0; work_done 577 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_errors(ndev); work_done 581 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_lost_msg(ndev); work_done 585 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_lec_err(ndev); work_done 589 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); work_done 591 drivers/net/can/ifi_canfd/ifi_canfd.c if (work_done < quota) { work_done 592 drivers/net/can/ifi_canfd/ifi_canfd.c napi_complete_done(napi, work_done); work_done 596 drivers/net/can/ifi_canfd/ifi_canfd.c return work_done; work_done 734 drivers/net/can/m_can/m_can.c int work_done = 0; work_done 738 drivers/net/can/m_can/m_can.c work_done += m_can_handle_state_change(dev, work_done 744 drivers/net/can/m_can/m_can.c work_done += m_can_handle_state_change(dev, work_done 750 drivers/net/can/m_can/m_can.c work_done += m_can_handle_state_change(dev, work_done 754 drivers/net/can/m_can/m_can.c return work_done; work_done 784 drivers/net/can/m_can/m_can.c int work_done = 0; work_done 787 drivers/net/can/m_can/m_can.c work_done += m_can_handle_lost_msg(dev); work_done 792 drivers/net/can/m_can/m_can.c work_done += m_can_handle_lec_err(dev, psr & LEC_UNUSED); work_done 797 drivers/net/can/m_can/m_can.c return work_done; work_done 803 drivers/net/can/m_can/m_can.c int work_done = 0; work_done 834 drivers/net/can/m_can/m_can.c work_done += m_can_handle_state_errors(dev, psr); work_done 837 drivers/net/can/m_can/m_can.c work_done += m_can_handle_bus_errors(dev, irqstatus, psr); work_done 840 drivers/net/can/m_can/m_can.c work_done += m_can_do_rx_poll(dev, (quota - work_done)); work_done 842 drivers/net/can/m_can/m_can.c return work_done; work_done 860 drivers/net/can/m_can/m_can.c int work_done; work_done 862 drivers/net/can/m_can/m_can.c work_done = m_can_rx_handler(dev, quota); work_done 863 drivers/net/can/m_can/m_can.c if (work_done < quota) { work_done 864 drivers/net/can/m_can/m_can.c napi_complete_done(napi, work_done); work_done 868 drivers/net/can/m_can/m_can.c return work_done; work_done 384 drivers/net/can/mscan/mscan.c int work_done = 0; work_done 389 drivers/net/can/mscan/mscan.c while (work_done < quota) { work_done 410 drivers/net/can/mscan/mscan.c work_done++; work_done 414 drivers/net/can/mscan/mscan.c if (work_done < quota) { work_done 415 drivers/net/can/mscan/mscan.c if (likely(napi_complete_done(&priv->napi, work_done))) { work_done 421 drivers/net/can/mscan/mscan.c return work_done; work_done 43 drivers/net/can/rx-offload.c int work_done = 0; work_done 45 drivers/net/can/rx-offload.c while ((work_done < quota) && work_done 49 drivers/net/can/rx-offload.c work_done++; work_done 55 drivers/net/can/rx-offload.c if (work_done < quota) { work_done 56 drivers/net/can/rx-offload.c napi_complete_done(napi, work_done); work_done 65 drivers/net/can/rx-offload.c return work_done; work_done 323 drivers/net/can/softing/softing_main.c int j, offset, work_done; work_done 325 drivers/net/can/softing/softing_main.c work_done = 0; work_done 329 drivers/net/can/softing/softing_main.c ++work_done; work_done 346 drivers/net/can/softing/softing_main.c ++work_done; work_done 349 drivers/net/can/softing/softing_main.c return work_done ? IRQ_HANDLED : IRQ_NONE; work_done 1187 drivers/net/can/xilinx_can.c int work_done = 0; work_done 1191 drivers/net/can/xilinx_can.c (work_done < quota)) { work_done 1193 drivers/net/can/xilinx_can.c work_done += xcanfd_rx(ndev, frame_offset); work_done 1195 drivers/net/can/xilinx_can.c work_done += xcan_rx(ndev, frame_offset); work_done 1209 drivers/net/can/xilinx_can.c if (work_done) { work_done 1214 drivers/net/can/xilinx_can.c if (work_done < quota) { work_done 1215 drivers/net/can/xilinx_can.c napi_complete_done(napi, work_done); work_done 1220 drivers/net/can/xilinx_can.c return work_done; work_done 2257 drivers/net/ethernet/3com/3c59x.c int work_done = max_interrupt_work; work_done 2334 drivers/net/ethernet/3com/3c59x.c if (--work_done < 0) { work_done 2373 drivers/net/ethernet/3com/3c59x.c int work_done = max_interrupt_work; work_done 2470 drivers/net/ethernet/3com/3c59x.c if (--work_done < 0) { work_done 1728 drivers/net/ethernet/3com/typhoon.c int work_done; work_done 1737 drivers/net/ethernet/3com/typhoon.c work_done = 0; work_done 1740 drivers/net/ethernet/3com/typhoon.c work_done += typhoon_rx(tp, &tp->rxHiRing, &indexes->rxHiReady, work_done 1745 drivers/net/ethernet/3com/typhoon.c work_done += typhoon_rx(tp, &tp->rxLoRing, &indexes->rxLoReady, work_done 1746 drivers/net/ethernet/3com/typhoon.c &indexes->rxLoCleared, budget - work_done); work_done 1754 drivers/net/ethernet/3com/typhoon.c if (work_done < budget) { work_done 1755 drivers/net/ethernet/3com/typhoon.c napi_complete_done(napi, work_done); work_done 1761 drivers/net/ethernet/3com/typhoon.c return work_done; work_done 972 drivers/net/ethernet/aeroflex/greth.c int work_done = 0; work_done 980 drivers/net/ethernet/aeroflex/greth.c work_done += greth_rx_gbit(greth->netdev, budget - work_done); work_done 984 drivers/net/ethernet/aeroflex/greth.c work_done += greth_rx(greth->netdev, budget - work_done); work_done 987 drivers/net/ethernet/aeroflex/greth.c if (work_done < budget) { work_done 1008 drivers/net/ethernet/aeroflex/greth.c napi_complete_done(napi, work_done); work_done 1013 drivers/net/ethernet/aeroflex/greth.c return work_done; work_done 3565 drivers/net/ethernet/agere/et131x.c int work_done = et131x_handle_recv_pkts(adapter, budget); work_done 3569 drivers/net/ethernet/agere/et131x.c if (work_done < budget) { work_done 3570 drivers/net/ethernet/agere/et131x.c napi_complete_done(&adapter->napi, work_done); work_done 3574 drivers/net/ethernet/agere/et131x.c return work_done; work_done 1051 drivers/net/ethernet/amazon/ena/ena_netdev.c u32 res_budget, work_done; work_done 1119 drivers/net/ethernet/amazon/ena/ena_netdev.c work_done = budget - res_budget; work_done 1120 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->per_napi_packets += work_done; work_done 1123 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->rx_stats.cnt += work_done; work_done 1140 drivers/net/ethernet/amazon/ena/ena_netdev.c return work_done; work_done 1403 drivers/net/ethernet/amd/pcnet32.c int work_done; work_done 1406 drivers/net/ethernet/amd/pcnet32.c work_done = pcnet32_rx(dev, budget); work_done 1417 drivers/net/ethernet/amd/pcnet32.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 1428 drivers/net/ethernet/amd/pcnet32.c return work_done; work_done 285 drivers/net/ethernet/aquantia/atlantic/aq_ring.c int *work_done, work_done 294 drivers/net/ethernet/aquantia/atlantic/aq_ring.c --budget, ++(*work_done)) { work_done 173 drivers/net/ethernet/aquantia/atlantic/aq_ring.h int *work_done, work_done 39 drivers/net/ethernet/aquantia/atlantic/aq_vec.c int work_done = 0; work_done 70 drivers/net/ethernet/aquantia/atlantic/aq_vec.c &work_done, work_done 71 drivers/net/ethernet/aquantia/atlantic/aq_vec.c budget - work_done); work_done 91 drivers/net/ethernet/aquantia/atlantic/aq_vec.c work_done = budget; work_done 93 drivers/net/ethernet/aquantia/atlantic/aq_vec.c if (work_done < budget) { work_done 94 drivers/net/ethernet/aquantia/atlantic/aq_vec.c napi_complete_done(napi, work_done); work_done 100 drivers/net/ethernet/aquantia/atlantic/aq_vec.c return work_done; work_done 178 drivers/net/ethernet/arc/emac_main.c unsigned int work_done; work_done 180 drivers/net/ethernet/arc/emac_main.c for (work_done = 0; work_done < budget; work_done++) { work_done 266 drivers/net/ethernet/arc/emac_main.c return work_done; work_done 299 drivers/net/ethernet/arc/emac_main.c int budget, unsigned int work_done) work_done 304 drivers/net/ethernet/arc/emac_main.c if (work_done) work_done 327 drivers/net/ethernet/arc/emac_main.c unsigned int work_done; work_done 332 drivers/net/ethernet/arc/emac_main.c work_done = arc_emac_rx(ndev, budget); work_done 333 drivers/net/ethernet/arc/emac_main.c if (work_done < budget) { work_done 334 drivers/net/ethernet/arc/emac_main.c napi_complete_done(napi, work_done); work_done 338 drivers/net/ethernet/arc/emac_main.c arc_emac_rx_stall_check(ndev, budget, work_done); work_done 340 drivers/net/ethernet/arc/emac_main.c return work_done; work_done 47 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int *work_done, int work_to_do); work_done 1790 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int *work_done, int work_to_do) work_done 1804 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if (*work_done >= work_to_do) work_done 1860 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*work_done)++; work_done 1874 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int work_done = 0; work_done 1880 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_clean_rx_irq(adapter, &work_done, budget); work_done 1882 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if (work_done < budget) { work_done 1884 drivers/net/ethernet/atheros/atl1c/atl1c_main.c napi_complete_done(napi, work_done); work_done 1888 drivers/net/ethernet/atheros/atl1c/atl1c_main.c return work_done; work_done 1393 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int *work_done, int work_to_do) work_done 1407 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (*work_done >= work_to_do) work_done 1409 drivers/net/ethernet/atheros/atl1e/atl1e_main.c (*work_done)++; work_done 1508 drivers/net/ethernet/atheros/atl1e/atl1e_main.c int work_done = 0; work_done 1514 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_clean_rx_irq(adapter, 0, &work_done, budget); work_done 1517 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (work_done < budget) { work_done 1519 drivers/net/ethernet/atheros/atl1e/atl1e_main.c napi_complete_done(napi, work_done); work_done 1532 drivers/net/ethernet/atheros/atl1e/atl1e_main.c return work_done; work_done 2429 drivers/net/ethernet/atheros/atlx/atl1.c int work_done = atl1_intr_rx(adapter, budget); work_done 2432 drivers/net/ethernet/atheros/atlx/atl1.c work_done = budget; work_done 2435 drivers/net/ethernet/atheros/atlx/atl1.c if (work_done >= budget) work_done 2436 drivers/net/ethernet/atheros/atlx/atl1.c return work_done; work_done 2438 drivers/net/ethernet/atheros/atlx/atl1.c napi_complete_done(napi, work_done); work_done 2442 drivers/net/ethernet/atheros/atlx/atl1.c return work_done; work_done 869 drivers/net/ethernet/broadcom/b44.c int work_done; work_done 890 drivers/net/ethernet/broadcom/b44.c work_done = 0; work_done 892 drivers/net/ethernet/broadcom/b44.c work_done += b44_rx(bp, budget); work_done 901 drivers/net/ethernet/broadcom/b44.c work_done = 0; work_done 904 drivers/net/ethernet/broadcom/b44.c if (work_done < budget) { work_done 905 drivers/net/ethernet/broadcom/b44.c napi_complete_done(napi, work_done); work_done 909 drivers/net/ethernet/broadcom/b44.c return work_done; work_done 964 drivers/net/ethernet/broadcom/bcmsysport.c unsigned int work_done = 0; work_done 966 drivers/net/ethernet/broadcom/bcmsysport.c work_done = bcm_sysport_tx_reclaim(ring->priv, ring); work_done 968 drivers/net/ethernet/broadcom/bcmsysport.c if (work_done == 0) { work_done 996 drivers/net/ethernet/broadcom/bcmsysport.c unsigned int work_done = 0; work_done 998 drivers/net/ethernet/broadcom/bcmsysport.c work_done = bcm_sysport_desc_rx(priv, budget); work_done 1000 drivers/net/ethernet/broadcom/bcmsysport.c priv->rx_c_index += work_done; work_done 1012 drivers/net/ethernet/broadcom/bcmsysport.c if (work_done < budget) { work_done 1013 drivers/net/ethernet/broadcom/bcmsysport.c napi_complete_done(napi, work_done); work_done 1024 drivers/net/ethernet/broadcom/bcmsysport.c return work_done; work_done 3486 drivers/net/ethernet/broadcom/bnx2.c int work_done, int budget) work_done 3495 drivers/net/ethernet/broadcom/bnx2.c work_done += bnx2_rx_int(bp, bnapi, budget - work_done); work_done 3497 drivers/net/ethernet/broadcom/bnx2.c return work_done; work_done 3504 drivers/net/ethernet/broadcom/bnx2.c int work_done = 0; work_done 3508 drivers/net/ethernet/broadcom/bnx2.c work_done = bnx2_poll_work(bp, bnapi, work_done, budget); work_done 3509 drivers/net/ethernet/broadcom/bnx2.c if (unlikely(work_done >= budget)) work_done 3517 drivers/net/ethernet/broadcom/bnx2.c napi_complete_done(napi, work_done); work_done 3524 drivers/net/ethernet/broadcom/bnx2.c return work_done; work_done 3531 drivers/net/ethernet/broadcom/bnx2.c int work_done = 0; work_done 3537 drivers/net/ethernet/broadcom/bnx2.c work_done = bnx2_poll_work(bp, bnapi, work_done, budget); work_done 3549 drivers/net/ethernet/broadcom/bnx2.c if (unlikely(work_done >= budget)) work_done 3554 drivers/net/ethernet/broadcom/bnx2.c napi_complete_done(napi, work_done); work_done 3573 drivers/net/ethernet/broadcom/bnx2.c return work_done; work_done 2346 drivers/net/ethernet/broadcom/bnxt/bnxt.c int work_done = 0; work_done 2349 drivers/net/ethernet/broadcom/bnxt/bnxt.c work_done += bnxt_poll_work(bp, cpr, budget - work_done); work_done 2351 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (work_done >= budget) { work_done 2358 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (napi_complete_done(napi, work_done)) work_done 2372 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 2378 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, work_done = 0; work_done 2384 drivers/net/ethernet/broadcom/bnxt/bnxt.c work_done += __bnxt_poll_work(bp, cpr2, work_done 2385 drivers/net/ethernet/broadcom/bnxt/bnxt.c budget - work_done); work_done 2389 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 2419 drivers/net/ethernet/broadcom/bnxt/bnxt.c int work_done = 0; work_done 2424 drivers/net/ethernet/broadcom/bnxt/bnxt.c work_done = __bnxt_poll_cqs(bp, bnapi, budget); work_done 2427 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 2430 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (napi_complete_done(napi, work_done)) work_done 2432 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 2442 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (napi_complete_done(napi, work_done)) work_done 2445 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 2458 drivers/net/ethernet/broadcom/bnxt/bnxt.c work_done += __bnxt_poll_work(bp, cpr2, work_done 2459 drivers/net/ethernet/broadcom/bnxt/bnxt.c budget - work_done); work_done 2470 drivers/net/ethernet/broadcom/bnxt/bnxt.c return work_done; work_done 1448 drivers/net/ethernet/broadcom/genet/bcmgenet.c unsigned int work_done = 0; work_done 1452 drivers/net/ethernet/broadcom/genet/bcmgenet.c work_done = __bcmgenet_tx_reclaim(ring->priv->dev, ring); work_done 1459 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (work_done == 0) { work_done 1903 drivers/net/ethernet/broadcom/genet/bcmgenet.c unsigned int work_done; work_done 1905 drivers/net/ethernet/broadcom/genet/bcmgenet.c work_done = bcmgenet_desc_rx(ring, budget); work_done 1907 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (work_done < budget) { work_done 1908 drivers/net/ethernet/broadcom/genet/bcmgenet.c napi_complete_done(napi, work_done); work_done 1918 drivers/net/ethernet/broadcom/genet/bcmgenet.c return work_done; work_done 1061 drivers/net/ethernet/broadcom/sb1250-mac.c int work_done = 0; work_done 1189 drivers/net/ethernet/broadcom/sb1250-mac.c work_done++; work_done 1196 drivers/net/ethernet/broadcom/sb1250-mac.c return work_done; work_done 2507 drivers/net/ethernet/broadcom/sb1250-mac.c int work_done; work_done 2509 drivers/net/ethernet/broadcom/sb1250-mac.c work_done = sbdma_rx_process(sc, &(sc->sbm_rxdma), budget, 1); work_done 2512 drivers/net/ethernet/broadcom/sb1250-mac.c if (work_done < budget) { work_done 2513 drivers/net/ethernet/broadcom/sb1250-mac.c napi_complete_done(napi, work_done); work_done 2525 drivers/net/ethernet/broadcom/sb1250-mac.c return work_done; work_done 7173 drivers/net/ethernet/broadcom/tg3.c static int tg3_poll_work(struct tg3_napi *tnapi, int work_done, int budget) work_done 7181 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7185 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7192 drivers/net/ethernet/broadcom/tg3.c work_done += tg3_rx(tnapi, budget - work_done); work_done 7219 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7239 drivers/net/ethernet/broadcom/tg3.c int work_done = 0; work_done 7243 drivers/net/ethernet/broadcom/tg3.c work_done = tg3_poll_work(tnapi, work_done, budget); work_done 7248 drivers/net/ethernet/broadcom/tg3.c if (unlikely(work_done >= budget)) work_done 7269 drivers/net/ethernet/broadcom/tg3.c napi_complete_done(napi, work_done); work_done 7286 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7292 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7333 drivers/net/ethernet/broadcom/tg3.c int work_done = 0; work_done 7342 drivers/net/ethernet/broadcom/tg3.c work_done = tg3_poll_work(tnapi, work_done, budget); work_done 7347 drivers/net/ethernet/broadcom/tg3.c if (unlikely(work_done >= budget)) work_done 7362 drivers/net/ethernet/broadcom/tg3.c napi_complete_done(napi, work_done); work_done 7369 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 7375 drivers/net/ethernet/broadcom/tg3.c return work_done; work_done 1273 drivers/net/ethernet/cadence/macb_main.c int work_done; work_done 1282 drivers/net/ethernet/cadence/macb_main.c work_done = bp->macbgem_ops.mog_rx(queue, napi, budget); work_done 1283 drivers/net/ethernet/cadence/macb_main.c if (work_done < budget) { work_done 1284 drivers/net/ethernet/cadence/macb_main.c napi_complete_done(napi, work_done); work_done 1299 drivers/net/ethernet/cadence/macb_main.c return work_done; work_done 1234 drivers/net/ethernet/calxeda/xgmac.c int work_done = 0; work_done 1237 drivers/net/ethernet/calxeda/xgmac.c work_done = xgmac_rx(priv, budget); work_done 1239 drivers/net/ethernet/calxeda/xgmac.c if (work_done < budget) { work_done 1240 drivers/net/ethernet/calxeda/xgmac.c napi_complete_done(napi, work_done); work_done 1243 drivers/net/ethernet/calxeda/xgmac.c return work_done; work_done 750 drivers/net/ethernet/cavium/liquidio/lio_core.c int work_done; work_done 757 drivers/net/ethernet/cavium/liquidio/lio_core.c work_done = octeon_droq_process_poll_pkts(oct, droq, budget); work_done 782 drivers/net/ethernet/cavium/liquidio/lio_core.c if ((work_done < budget && tx_done) || work_done 786 drivers/net/ethernet/cavium/liquidio/lio_core.c napi_complete_done(napi, work_done); work_done 792 drivers/net/ethernet/cavium/liquidio/lio_core.c return (!tx_done) ? (budget) : (work_done); work_done 474 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c unsigned int work_done = 0; work_done 479 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c while (work_done < budget && mix_ircnt.s.ircnt) { work_done 483 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c work_done++; work_done 491 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c return work_done; work_done 498 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c unsigned int work_done = 0; work_done 500 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c work_done = octeon_mgmt_receive_packets(p, budget); work_done 502 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c if (work_done < budget) { work_done 504 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c napi_complete_done(napi, work_done); work_done 509 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c return work_done; work_done 851 drivers/net/ethernet/cavium/thunder/nicvf_main.c int processed_cqe, work_done = 0, tx_done = 0; work_done 884 drivers/net/ethernet/cavium/thunder/nicvf_main.c if ((work_done >= budget) && napi && work_done 892 drivers/net/ethernet/cavium/thunder/nicvf_main.c work_done++; work_done 916 drivers/net/ethernet/cavium/thunder/nicvf_main.c if ((work_done < budget) && napi) work_done 956 drivers/net/ethernet/cavium/thunder/nicvf_main.c return work_done; work_done 962 drivers/net/ethernet/cavium/thunder/nicvf_main.c int work_done = 0; work_done 968 drivers/net/ethernet/cavium/thunder/nicvf_main.c work_done = nicvf_cq_intr_handler(netdev, cq->cq_idx, napi, budget); work_done 970 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (work_done < budget) { work_done 972 drivers/net/ethernet/cavium/thunder/nicvf_main.c napi_complete_done(napi, work_done); work_done 981 drivers/net/ethernet/cavium/thunder/nicvf_main.c return work_done; work_done 1604 drivers/net/ethernet/chelsio/cxgb/sge.c int work_done = process_responses(adapter, budget); work_done 1606 drivers/net/ethernet/chelsio/cxgb/sge.c if (likely(work_done < budget)) { work_done 1607 drivers/net/ethernet/chelsio/cxgb/sge.c napi_complete_done(napi, work_done); work_done 1611 drivers/net/ethernet/chelsio/cxgb/sge.c return work_done; work_done 1900 drivers/net/ethernet/chelsio/cxgb3/sge.c int work_done = 0; work_done 1902 drivers/net/ethernet/chelsio/cxgb3/sge.c while (work_done < budget) { work_done 1911 drivers/net/ethernet/chelsio/cxgb3/sge.c napi_complete_done(napi, work_done); work_done 1913 drivers/net/ethernet/chelsio/cxgb3/sge.c return work_done; work_done 1919 drivers/net/ethernet/chelsio/cxgb3/sge.c if (work_done >= budget) work_done 1921 drivers/net/ethernet/chelsio/cxgb3/sge.c work_done++; work_done 1942 drivers/net/ethernet/chelsio/cxgb3/sge.c return work_done; work_done 2479 drivers/net/ethernet/chelsio/cxgb3/sge.c int work_done = process_responses(adap, qs, budget); work_done 2481 drivers/net/ethernet/chelsio/cxgb3/sge.c if (likely(work_done < budget)) { work_done 2482 drivers/net/ethernet/chelsio/cxgb3/sge.c napi_complete_done(napi, work_done); work_done 2502 drivers/net/ethernet/chelsio/cxgb3/sge.c return work_done; work_done 2733 drivers/net/ethernet/chelsio/cxgb3/sge.c int work_done, w0, w1; work_done 2754 drivers/net/ethernet/chelsio/cxgb3/sge.c work_done = w0 | w1; work_done 2756 drivers/net/ethernet/chelsio/cxgb3/sge.c work_done = t3_slow_intr_handler(adap); work_done 2759 drivers/net/ethernet/chelsio/cxgb3/sge.c return IRQ_RETVAL(work_done != 0); work_done 3237 drivers/net/ethernet/chelsio/cxgb4/sge.c int work_done; work_done 3240 drivers/net/ethernet/chelsio/cxgb4/sge.c work_done = process_responses(q, budget); work_done 3241 drivers/net/ethernet/chelsio/cxgb4/sge.c if (likely(work_done < budget)) { work_done 3244 drivers/net/ethernet/chelsio/cxgb4/sge.c napi_complete_done(napi, work_done); work_done 3248 drivers/net/ethernet/chelsio/cxgb4/sge.c if (work_done > max(timer_pkt_quota[timer_index], work_done 3266 drivers/net/ethernet/chelsio/cxgb4/sge.c val = CIDXINC_V(work_done) | SEINTARM_V(params); work_done 3279 drivers/net/ethernet/chelsio/cxgb4/sge.c return work_done; work_done 1892 drivers/net/ethernet/chelsio/cxgb4vf/sge.c int work_done = process_responses(rspq, budget); work_done 1895 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (likely(work_done < budget)) { work_done 1896 drivers/net/ethernet/chelsio/cxgb4vf/sge.c napi_complete_done(napi, work_done); work_done 1902 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (unlikely(work_done == 0)) work_done 1905 drivers/net/ethernet/chelsio/cxgb4vf/sge.c val = CIDXINC_V(work_done) | SEINTARM_V(intr_params); work_done 1918 drivers/net/ethernet/chelsio/cxgb4vf/sge.c return work_done; work_done 1941 drivers/net/ethernet/chelsio/cxgb4vf/sge.c unsigned int work_done; work_done 1945 drivers/net/ethernet/chelsio/cxgb4vf/sge.c for (work_done = 0; ; work_done++) { work_done 2008 drivers/net/ethernet/chelsio/cxgb4vf/sge.c val = CIDXINC_V(work_done) | SEINTARM_V(intrq->intr_params); work_done 2023 drivers/net/ethernet/chelsio/cxgb4vf/sge.c return work_done; work_done 1545 drivers/net/ethernet/cisco/enic/enic_main.c unsigned int work_done, rq_work_done = 0, wq_work_done; work_done 1560 drivers/net/ethernet/cisco/enic/enic_main.c work_done = rq_work_done + wq_work_done; work_done 1562 drivers/net/ethernet/cisco/enic/enic_main.c if (work_done > 0) work_done 1564 drivers/net/ethernet/cisco/enic/enic_main.c work_done, work_done 1672 drivers/net/ethernet/cisco/enic/enic_main.c unsigned int work_done = 0; work_done 1679 drivers/net/ethernet/cisco/enic/enic_main.c work_done = vnic_cq_service(&enic->cq[cq], work_done 1687 drivers/net/ethernet/cisco/enic/enic_main.c if (work_done > 0) work_done 1689 drivers/net/ethernet/cisco/enic/enic_main.c work_done, work_done 1700 drivers/net/ethernet/cisco/enic/enic_main.c work_done = work_to_do; work_done 1707 drivers/net/ethernet/cisco/enic/enic_main.c if ((work_done < budget) && napi_complete_done(napi, work_done)) { work_done 1718 drivers/net/ethernet/cisco/enic/enic_main.c return work_done; work_done 79 drivers/net/ethernet/cisco/enic/vnic_cq.h unsigned int work_done = 0; work_done 105 drivers/net/ethernet/cisco/enic/vnic_cq.h work_done++; work_done 106 drivers/net/ethernet/cisco/enic/vnic_cq.h if (work_done >= work_to_do) work_done 110 drivers/net/ethernet/cisco/enic/vnic_cq.h return work_done; work_done 117 drivers/net/ethernet/dec/tulip/interrupt.c int work_done = 0; work_done 155 drivers/net/ethernet/dec/tulip/interrupt.c if (++work_done >= budget) work_done 322 drivers/net/ethernet/dec/tulip/interrupt.c napi_complete_done(napi, work_done); work_done 336 drivers/net/ethernet/dec/tulip/interrupt.c return work_done; work_done 346 drivers/net/ethernet/dec/tulip/interrupt.c return work_done; work_done 358 drivers/net/ethernet/dec/tulip/interrupt.c napi_complete_done(napi, work_done); work_done 360 drivers/net/ethernet/dec/tulip/interrupt.c return work_done; work_done 3212 drivers/net/ethernet/emulex/benet/be_main.c u32 work_done; work_done 3215 drivers/net/ethernet/emulex/benet/be_main.c for (work_done = 0; work_done < budget; work_done++) { work_done 3249 drivers/net/ethernet/emulex/benet/be_main.c if (work_done) { work_done 3250 drivers/net/ethernet/emulex/benet/be_main.c be_cq_notify(adapter, rx_cq->id, true, work_done); work_done 3262 drivers/net/ethernet/emulex/benet/be_main.c return work_done; work_done 3269 drivers/net/ethernet/emulex/benet/be_main.c int num_wrbs = 0, work_done = 0; work_done 3274 drivers/net/ethernet/emulex/benet/be_main.c work_done++; work_done 3277 drivers/net/ethernet/emulex/benet/be_main.c if (work_done) { work_done 3278 drivers/net/ethernet/emulex/benet/be_main.c be_cq_notify(adapter, txo->cq.id, true, work_done); work_done 3289 drivers/net/ethernet/emulex/benet/be_main.c tx_stats(txo)->tx_compl += work_done; work_done 66 drivers/net/ethernet/ezchip/nps_enet.c u32 work_done = 0; work_done 78 drivers/net/ethernet/ezchip/nps_enet.c return work_done; work_done 81 drivers/net/ethernet/ezchip/nps_enet.c work_done++; work_done 135 drivers/net/ethernet/ezchip/nps_enet.c return work_done; work_done 178 drivers/net/ethernet/ezchip/nps_enet.c u32 work_done; work_done 181 drivers/net/ethernet/ezchip/nps_enet.c work_done = nps_enet_rx_handler(ndev); work_done 182 drivers/net/ethernet/ezchip/nps_enet.c if ((work_done < budget) && napi_complete_done(napi, work_done)) { work_done 206 drivers/net/ethernet/ezchip/nps_enet.c return work_done; work_done 1292 drivers/net/ethernet/faraday/ftgmac100.c int work_done = 0; work_done 1301 drivers/net/ethernet/faraday/ftgmac100.c more = ftgmac100_rx_packet(priv, &work_done); work_done 1302 drivers/net/ethernet/faraday/ftgmac100.c } while (more && work_done < budget); work_done 1320 drivers/net/ethernet/faraday/ftgmac100.c work_done = budget; work_done 1322 drivers/net/ethernet/faraday/ftgmac100.c if (work_done < budget) { work_done 1349 drivers/net/ethernet/faraday/ftgmac100.c return work_done; work_done 1119 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int store_cleaned, work_done; work_done 1154 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c work_done = budget; work_done 1170 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c work_done = max(rx_cleaned, 1); work_done 1186 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c return work_done; work_done 274 drivers/net/ethernet/freescale/enetc/enetc.c int work_done; work_done 281 drivers/net/ethernet/freescale/enetc/enetc.c work_done = enetc_clean_rx_ring(&v->rx_ring, napi, budget); work_done 282 drivers/net/ethernet/freescale/enetc/enetc.c if (work_done == budget) work_done 288 drivers/net/ethernet/freescale/enetc/enetc.c napi_complete_done(napi, work_done); work_done 297 drivers/net/ethernet/freescale/enetc/enetc.c return work_done; work_done 2630 drivers/net/ethernet/freescale/gianfar.c int work_done = 0; work_done 2637 drivers/net/ethernet/freescale/gianfar.c work_done = gfar_clean_rx_ring(rx_queue, budget); work_done 2639 drivers/net/ethernet/freescale/gianfar.c if (work_done < budget) { work_done 2641 drivers/net/ethernet/freescale/gianfar.c napi_complete_done(napi, work_done); work_done 2652 drivers/net/ethernet/freescale/gianfar.c return work_done; work_done 2690 drivers/net/ethernet/freescale/gianfar.c int work_done = 0, work_done_per_q = 0; work_done 2714 drivers/net/ethernet/freescale/gianfar.c work_done += work_done_per_q; work_done 2730 drivers/net/ethernet/freescale/gianfar.c napi_complete_done(napi, work_done); work_done 2742 drivers/net/ethernet/freescale/gianfar.c return work_done; work_done 388 drivers/net/ethernet/google/gve/gve_rx.c u32 work_done = 0; work_done 393 drivers/net/ethernet/google/gve/gve_rx.c work_done < budget) { work_done 408 drivers/net/ethernet/google/gve/gve_rx.c work_done++; work_done 411 drivers/net/ethernet/google/gve/gve_rx.c if (!work_done) work_done 415 drivers/net/ethernet/google/gve/gve_rx.c rx->rpackets += work_done; work_done 419 drivers/net/ethernet/google/gve/gve_rx.c rx->fill_cnt += work_done; work_done 304 drivers/net/ethernet/hisilicon/hisi_femac.c int work_done = 0, task = budget; work_done 310 drivers/net/ethernet/hisilicon/hisi_femac.c work_done += num; work_done 312 drivers/net/ethernet/hisilicon/hisi_femac.c if (work_done >= budget) work_done 320 drivers/net/ethernet/hisilicon/hisi_femac.c if (work_done < budget) { work_done 321 drivers/net/ethernet/hisilicon/hisi_femac.c napi_complete_done(napi, work_done); work_done 326 drivers/net/ethernet/hisilicon/hisi_femac.c return work_done; work_done 645 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c int work_done = 0, task = budget; work_done 651 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c work_done += num; work_done 653 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if ((work_done >= budget) || (num == 0)) work_done 660 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if (work_done < budget) { work_done 661 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c napi_complete_done(napi, work_done); work_done 665 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c return work_done; work_done 1955 drivers/net/ethernet/intel/e100.c unsigned int *work_done, unsigned int work_to_do) work_done 1963 drivers/net/ethernet/intel/e100.c if (unlikely(work_done && *work_done >= work_to_do)) work_done 2044 drivers/net/ethernet/intel/e100.c if (work_done) work_done 2045 drivers/net/ethernet/intel/e100.c (*work_done)++; work_done 2053 drivers/net/ethernet/intel/e100.c static void e100_rx_clean(struct nic *nic, unsigned int *work_done, work_done 2063 drivers/net/ethernet/intel/e100.c err = e100_rx_indicate(nic, rx, work_done, work_to_do); work_done 2125 drivers/net/ethernet/intel/e100.c if (work_done) work_done 2126 drivers/net/ethernet/intel/e100.c (*work_done)++; work_done 2223 drivers/net/ethernet/intel/e100.c unsigned int work_done = 0; work_done 2225 drivers/net/ethernet/intel/e100.c e100_rx_clean(nic, &work_done, budget); work_done 2229 drivers/net/ethernet/intel/e100.c if (work_done == budget) work_done 2233 drivers/net/ethernet/intel/e100.c if (likely(napi_complete_done(napi, work_done))) work_done 2236 drivers/net/ethernet/intel/e100.c return work_done; work_done 251 drivers/net/ethernet/intel/e1000/e1000.h int *work_done, int work_to_do); work_done 117 drivers/net/ethernet/intel/e1000/e1000_main.c int *work_done, int work_to_do); work_done 120 drivers/net/ethernet/intel/e1000/e1000_main.c int *work_done, int work_to_do); work_done 3794 drivers/net/ethernet/intel/e1000/e1000_main.c int tx_clean_complete = 0, work_done = 0; work_done 3798 drivers/net/ethernet/intel/e1000/e1000_main.c adapter->clean_rx(adapter, &adapter->rx_ring[0], &work_done, budget); work_done 3800 drivers/net/ethernet/intel/e1000/e1000_main.c if (!tx_clean_complete || work_done == budget) work_done 3806 drivers/net/ethernet/intel/e1000/e1000_main.c if (likely(napi_complete_done(napi, work_done))) { work_done 3813 drivers/net/ethernet/intel/e1000/e1000_main.c return work_done; work_done 4120 drivers/net/ethernet/intel/e1000/e1000_main.c int *work_done, int work_to_do) work_done 4140 drivers/net/ethernet/intel/e1000/e1000_main.c if (*work_done >= work_to_do) work_done 4142 drivers/net/ethernet/intel/e1000/e1000_main.c (*work_done)++; work_done 4341 drivers/net/ethernet/intel/e1000/e1000_main.c int *work_done, int work_to_do) work_done 4362 drivers/net/ethernet/intel/e1000/e1000_main.c if (*work_done >= work_to_do) work_done 4364 drivers/net/ethernet/intel/e1000/e1000_main.c (*work_done)++; work_done 251 drivers/net/ethernet/intel/e1000e/e1000.h bool (*clean_rx)(struct e1000_ring *ring, int *work_done, work_done 907 drivers/net/ethernet/intel/e1000e/netdev.c static bool e1000_clean_rx_irq(struct e1000_ring *rx_ring, int *work_done, work_done 930 drivers/net/ethernet/intel/e1000e/netdev.c if (*work_done >= work_to_do) work_done 932 drivers/net/ethernet/intel/e1000e/netdev.c (*work_done)++; work_done 1301 drivers/net/ethernet/intel/e1000e/netdev.c static bool e1000_clean_rx_irq_ps(struct e1000_ring *rx_ring, int *work_done, work_done 1324 drivers/net/ethernet/intel/e1000e/netdev.c if (*work_done >= work_to_do) work_done 1326 drivers/net/ethernet/intel/e1000e/netdev.c (*work_done)++; work_done 1506 drivers/net/ethernet/intel/e1000e/netdev.c static bool e1000_clean_jumbo_rx_irq(struct e1000_ring *rx_ring, int *work_done, work_done 1529 drivers/net/ethernet/intel/e1000e/netdev.c if (*work_done >= work_to_do) work_done 1531 drivers/net/ethernet/intel/e1000e/netdev.c (*work_done)++; work_done 2662 drivers/net/ethernet/intel/e1000e/netdev.c int tx_cleaned = 1, work_done = 0; work_done 2670 drivers/net/ethernet/intel/e1000e/netdev.c adapter->clean_rx(adapter->rx_ring, &work_done, budget); work_done 2672 drivers/net/ethernet/intel/e1000e/netdev.c if (!tx_cleaned || work_done == budget) work_done 2678 drivers/net/ethernet/intel/e1000e/netdev.c if (likely(napi_complete_done(napi, work_done))) { work_done 2689 drivers/net/ethernet/intel/e1000e/netdev.c return work_done; work_done 1436 drivers/net/ethernet/intel/fm10k/fm10k_main.c int per_ring_budget, work_done = 0; work_done 1459 drivers/net/ethernet/intel/fm10k/fm10k_main.c work_done += work; work_done 1471 drivers/net/ethernet/intel/fm10k/fm10k_main.c if (likely(napi_complete_done(napi, work_done))) work_done 1474 drivers/net/ethernet/intel/fm10k/fm10k_main.c return min(work_done, budget - 1); work_done 2577 drivers/net/ethernet/intel/i40e/i40e_txrx.c int work_done = 0; work_done 2614 drivers/net/ethernet/intel/i40e/i40e_txrx.c work_done += cleaned; work_done 2633 drivers/net/ethernet/intel/i40e/i40e_txrx.c napi_complete_done(napi, work_done); work_done 2655 drivers/net/ethernet/intel/i40e/i40e_txrx.c if (likely(napi_complete_done(napi, work_done))) work_done 2658 drivers/net/ethernet/intel/i40e/i40e_txrx.c return min(work_done, budget - 1); work_done 651 drivers/net/ethernet/intel/i40e/i40e_xsk.c bool work_done = true; work_done 658 drivers/net/ethernet/intel/i40e/i40e_xsk.c work_done = false; work_done 694 drivers/net/ethernet/intel/i40e/i40e_xsk.c return !!budget && work_done; work_done 726 drivers/net/ethernet/intel/i40e/i40e_xsk.c bool work_done = true, xmit_done; work_done 737 drivers/net/ethernet/intel/i40e/i40e_xsk.c work_done = false; work_done 775 drivers/net/ethernet/intel/i40e/i40e_xsk.c return work_done && xmit_done; work_done 1712 drivers/net/ethernet/intel/iavf/iavf_txrx.c int work_done = 0; work_done 1743 drivers/net/ethernet/intel/iavf/iavf_txrx.c work_done += cleaned; work_done 1762 drivers/net/ethernet/intel/iavf/iavf_txrx.c napi_complete_done(napi, work_done); work_done 1784 drivers/net/ethernet/intel/iavf/iavf_txrx.c if (likely(napi_complete_done(napi, work_done))) work_done 1787 drivers/net/ethernet/intel/iavf/iavf_txrx.c return min(work_done, budget - 1); work_done 1481 drivers/net/ethernet/intel/ice/ice_txrx.c int work_done = 0; work_done 1509 drivers/net/ethernet/intel/ice/ice_txrx.c work_done += cleaned; work_done 1522 drivers/net/ethernet/intel/ice/ice_txrx.c if (likely(napi_complete_done(napi, work_done))) work_done 1527 drivers/net/ethernet/intel/ice/ice_txrx.c return min_t(int, work_done, budget - 1); work_done 7708 drivers/net/ethernet/intel/igb/igb_main.c int work_done = 0; work_done 7720 drivers/net/ethernet/intel/igb/igb_main.c work_done += cleaned; work_done 7732 drivers/net/ethernet/intel/igb/igb_main.c if (likely(napi_complete_done(napi, work_done))) work_done 7735 drivers/net/ethernet/intel/igb/igb_main.c return min(work_done, budget - 1); work_done 243 drivers/net/ethernet/intel/igbvf/netdev.c int *work_done, int work_to_do) work_done 262 drivers/net/ethernet/intel/igbvf/netdev.c if (*work_done >= work_to_do) work_done 264 drivers/net/ethernet/intel/igbvf/netdev.c (*work_done)++; work_done 1185 drivers/net/ethernet/intel/igbvf/netdev.c int work_done = 0; work_done 1187 drivers/net/ethernet/intel/igbvf/netdev.c igbvf_clean_rx_irq(adapter, &work_done, budget); work_done 1189 drivers/net/ethernet/intel/igbvf/netdev.c if (work_done == budget) work_done 1195 drivers/net/ethernet/intel/igbvf/netdev.c if (likely(napi_complete_done(napi, work_done))) { work_done 1203 drivers/net/ethernet/intel/igbvf/netdev.c return work_done; work_done 3391 drivers/net/ethernet/intel/igc/igc_main.c int work_done = 0; work_done 3399 drivers/net/ethernet/intel/igc/igc_main.c work_done += cleaned; work_done 3411 drivers/net/ethernet/intel/igc/igc_main.c if (likely(napi_complete_done(napi, work_done))) work_done 3414 drivers/net/ethernet/intel/igc/igc_main.c return min(work_done, budget - 1); work_done 1760 drivers/net/ethernet/intel/ixgb/ixgb_main.c int work_done = 0; work_done 1763 drivers/net/ethernet/intel/ixgb/ixgb_main.c ixgb_clean_rx_irq(adapter, &work_done, budget); work_done 1766 drivers/net/ethernet/intel/ixgb/ixgb_main.c if (work_done < budget) { work_done 1767 drivers/net/ethernet/intel/ixgb/ixgb_main.c napi_complete_done(napi, work_done); work_done 1772 drivers/net/ethernet/intel/ixgb/ixgb_main.c return work_done; work_done 1933 drivers/net/ethernet/intel/ixgb/ixgb_main.c ixgb_clean_rx_irq(struct ixgb_adapter *adapter, int *work_done, int work_to_do) work_done 1953 drivers/net/ethernet/intel/ixgb/ixgb_main.c if (*work_done >= work_to_do) work_done 1956 drivers/net/ethernet/intel/ixgb/ixgb_main.c (*work_done)++; work_done 3162 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int per_ring_budget, work_done = 0; work_done 3197 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c work_done += cleaned; work_done 3207 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (likely(napi_complete_done(napi, work_done))) { work_done 3215 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return min(work_done, budget - 1); work_done 580 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c bool work_done = true; work_done 588 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c work_done = false; work_done 627 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c return !!budget && work_done; work_done 1268 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int per_ring_budget, work_done = 0; work_done 1290 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c work_done += cleaned; work_done 1302 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (likely(napi_complete_done(napi, work_done))) { work_done 1311 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c return min(work_done, budget - 1); work_done 467 drivers/net/ethernet/korina.c int work_done; work_done 469 drivers/net/ethernet/korina.c work_done = korina_rx(dev, budget); work_done 470 drivers/net/ethernet/korina.c if (work_done < budget) { work_done 471 drivers/net/ethernet/korina.c napi_complete_done(napi, work_done); work_done 477 drivers/net/ethernet/korina.c return work_done; work_done 151 drivers/net/ethernet/lantiq_etop.c int work_done = 0; work_done 153 drivers/net/ethernet/lantiq_etop.c while (work_done < budget) { work_done 159 drivers/net/ethernet/lantiq_etop.c work_done++; work_done 161 drivers/net/ethernet/lantiq_etop.c if (work_done < budget) { work_done 162 drivers/net/ethernet/lantiq_etop.c napi_complete_done(&ch->napi, work_done); work_done 165 drivers/net/ethernet/lantiq_etop.c return work_done; work_done 2242 drivers/net/ethernet/marvell/mv643xx_eth.c int work_done; work_done 2251 drivers/net/ethernet/marvell/mv643xx_eth.c work_done = 0; work_done 2252 drivers/net/ethernet/marvell/mv643xx_eth.c while (work_done < budget) { work_done 2260 drivers/net/ethernet/marvell/mv643xx_eth.c work_done++; work_done 2277 drivers/net/ethernet/marvell/mv643xx_eth.c work_tbd = budget - work_done; work_done 2284 drivers/net/ethernet/marvell/mv643xx_eth.c work_done += txq_reclaim(mp->txq + queue, work_tbd, 0); work_done 2287 drivers/net/ethernet/marvell/mv643xx_eth.c work_done += rxq_process(mp->rxq + queue, work_tbd); work_done 2289 drivers/net/ethernet/marvell/mv643xx_eth.c work_done += rxq_refill(mp->rxq + queue, work_tbd); work_done 2295 drivers/net/ethernet/marvell/mv643xx_eth.c if (work_done < budget) { work_done 2298 drivers/net/ethernet/marvell/mv643xx_eth.c napi_complete_done(napi, work_done); work_done 2302 drivers/net/ethernet/marvell/mv643xx_eth.c return work_done; work_done 1231 drivers/net/ethernet/marvell/pxa168_eth.c int work_done = 0; work_done 1243 drivers/net/ethernet/marvell/pxa168_eth.c work_done = rxq_process(dev, budget); work_done 1244 drivers/net/ethernet/marvell/pxa168_eth.c if (work_done < budget) { work_done 1245 drivers/net/ethernet/marvell/pxa168_eth.c napi_complete_done(napi, work_done); work_done 1249 drivers/net/ethernet/marvell/pxa168_eth.c return work_done; work_done 3199 drivers/net/ethernet/marvell/skge.c int work_done = 0; work_done 3205 drivers/net/ethernet/marvell/skge.c for (e = ring->to_clean; prefetch(e->next), work_done < budget; e = e->next) { work_done 3218 drivers/net/ethernet/marvell/skge.c ++work_done; work_done 3227 drivers/net/ethernet/marvell/skge.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 3237 drivers/net/ethernet/marvell/skge.c return work_done; work_done 2704 drivers/net/ethernet/marvell/sky2.c int work_done = 0; work_done 2709 drivers/net/ethernet/marvell/sky2.c return work_done; work_done 2757 drivers/net/ethernet/marvell/sky2.c if (++work_done >= to_do) work_done 2799 drivers/net/ethernet/marvell/sky2.c return work_done; work_done 3024 drivers/net/ethernet/marvell/sky2.c int work_done = 0; work_done 3040 drivers/net/ethernet/marvell/sky2.c work_done += sky2_status_intr(hw, work_limit - work_done, idx); work_done 3042 drivers/net/ethernet/marvell/sky2.c if (work_done >= work_limit) work_done 3046 drivers/net/ethernet/marvell/sky2.c napi_complete_done(napi, work_done); work_done 3050 drivers/net/ethernet/marvell/sky2.c return work_done; work_done 72 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c bool work_done = true; work_done 82 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c work_done = false; work_done 120 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c return !(budget && work_done); work_done 1385 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c int work_done = 0; work_done 1391 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c work_done += mlx5e_decompress_cqes_cont(rq, cqwq, 0, budget); work_done 1392 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (rq->cqd.left || work_done >= budget) work_done 1398 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c if (unlikely(work_done)) work_done 1405 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c work_done += work_done 1407 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c budget - work_done); work_done 1415 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c } while ((++work_done < budget) && (cqe = mlx5_cqwq_get_cqe(cqwq))); work_done 1426 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c return work_done; work_done 121 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c int work_done = 0; work_done 136 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); work_done 138 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c if (likely(budget - work_done)) work_done 139 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); work_done 141 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c busy |= work_done == budget; work_done 164 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c if (budget && work_done == budget) work_done 165 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c work_done--; work_done 168 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c if (unlikely(!napi_complete_done(napi, work_done))) work_done 169 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c return work_done; work_done 196 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c return work_done; work_done 1465 drivers/net/ethernet/myricom/myri10ge/myri10ge.c int work_done = 0; work_done 1469 drivers/net/ethernet/myricom/myri10ge/myri10ge.c while (rx_done->entry[idx].length != 0 && work_done < budget) { work_done 1478 drivers/net/ethernet/myricom/myri10ge/myri10ge.c work_done++; work_done 1492 drivers/net/ethernet/myricom/myri10ge/myri10ge.c return work_done; work_done 1534 drivers/net/ethernet/myricom/myri10ge/myri10ge.c int work_done; work_done 1541 drivers/net/ethernet/myricom/myri10ge/myri10ge.c work_done = myri10ge_clean_rx_done(ss, budget); work_done 1543 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (work_done < budget) { work_done 1544 drivers/net/ethernet/myricom/myri10ge/myri10ge.c napi_complete_done(napi, work_done); work_done 1547 drivers/net/ethernet/myricom/myri10ge/myri10ge.c return work_done; work_done 628 drivers/net/ethernet/natsemi/natsemi.c static void netdev_rx(struct net_device *dev, int *work_done, int work_to_do); work_done 2234 drivers/net/ethernet/natsemi/natsemi.c int work_done = 0; work_done 2248 drivers/net/ethernet/natsemi/natsemi.c netdev_rx(dev, &work_done, budget); work_done 2262 drivers/net/ethernet/natsemi/natsemi.c if (work_done >= budget) work_done 2263 drivers/net/ethernet/natsemi/natsemi.c return work_done; work_done 2268 drivers/net/ethernet/natsemi/natsemi.c napi_complete_done(napi, work_done); work_done 2277 drivers/net/ethernet/natsemi/natsemi.c return work_done; work_done 2282 drivers/net/ethernet/natsemi/natsemi.c static void netdev_rx(struct net_device *dev, int *work_done, int work_to_do) work_done 2301 drivers/net/ethernet/natsemi/natsemi.c if (*work_done >= work_to_do) work_done 2304 drivers/net/ethernet/natsemi/natsemi.c (*work_done)++; work_done 671 drivers/net/ethernet/ni/nixge.c int work_done; work_done 674 drivers/net/ethernet/ni/nixge.c work_done = 0; work_done 676 drivers/net/ethernet/ni/nixge.c work_done = nixge_recv(priv->ndev, budget); work_done 677 drivers/net/ethernet/ni/nixge.c if (work_done < budget) { work_done 678 drivers/net/ethernet/ni/nixge.c napi_complete_done(napi, work_done); work_done 693 drivers/net/ethernet/ni/nixge.c return work_done; work_done 1618 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c int *work_done, int work_to_do) work_done 1635 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c while (*work_done < work_to_do) { work_done 1701 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c (*work_done)++; work_done 2295 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c int work_done = 0; work_done 2301 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c pch_gbe_clean_rx(adapter, adapter->rx_ring, &work_done, budget); work_done 2305 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c work_done = budget; work_done 2309 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (work_done < budget) work_done 2313 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c napi_complete_done(napi, work_done); work_done 2324 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c poll_end_flag, work_done, budget); work_done 2326 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c return work_done; work_done 352 drivers/net/ethernet/pensando/ionic/ionic_dev.c unsigned int work_done = 0; work_done 363 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (++work_done >= work_to_do) work_done 367 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (work_done && done_cb) work_done 370 drivers/net/ethernet/pensando/ionic/ionic_dev.c return work_done; work_done 702 drivers/net/ethernet/pensando/ionic/ionic_lif.c u32 work_done; work_done 704 drivers/net/ethernet/pensando/ionic/ionic_lif.c work_done = ionic_cq_service(cq, budget, ionic_notifyq_service, work_done 706 drivers/net/ethernet/pensando/ionic/ionic_lif.c if (work_done) work_done 708 drivers/net/ethernet/pensando/ionic/ionic_lif.c work_done, IONIC_INTR_CRED_RESET_COALESCE); work_done 710 drivers/net/ethernet/pensando/ionic/ionic_lif.c return work_done; work_done 261 drivers/net/ethernet/pensando/ionic/ionic_lif.h unsigned int work_done) work_done 265 drivers/net/ethernet/pensando/ionic/ionic_lif.h if (work_done > (IONIC_MAX_NUM_NAPI_CNTR - 1)) work_done 266 drivers/net/ethernet/pensando/ionic/ionic_lif.h work_done = IONIC_MAX_NUM_NAPI_CNTR - 1; work_done 268 drivers/net/ethernet/pensando/ionic/ionic_lif.h qcq->napi_stats.work_done_cntr[work_done]++; work_done 276 drivers/net/ethernet/pensando/ionic/ionic_lif.h #define DEBUG_STATS_NAPI_POLL(qcq, work_done) \ work_done 277 drivers/net/ethernet/pensando/ionic/ionic_lif.h debug_stats_napi_poll(qcq, work_done) work_done 289 drivers/net/ethernet/pensando/ionic/ionic_main.c u32 work_done, flags = 0; work_done 291 drivers/net/ethernet/pensando/ionic/ionic_main.c work_done = ionic_cq_service(cq, budget, cb, done_cb, done_arg); work_done 293 drivers/net/ethernet/pensando/ionic/ionic_main.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 298 drivers/net/ethernet/pensando/ionic/ionic_main.c if (work_done || flags) { work_done 302 drivers/net/ethernet/pensando/ionic/ionic_main.c work_done, flags); work_done 305 drivers/net/ethernet/pensando/ionic/ionic_main.c DEBUG_STATS_NAPI_POLL(qcq, work_done); work_done 307 drivers/net/ethernet/pensando/ionic/ionic_main.c return work_done; work_done 189 drivers/net/ethernet/pensando/ionic/ionic_txrx.c u32 work_done = 0; work_done 197 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (++work_done >= limit) work_done 201 drivers/net/ethernet/pensando/ionic/ionic_txrx.c return work_done; work_done 207 drivers/net/ethernet/pensando/ionic/ionic_txrx.c u32 work_done; work_done 209 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done = ionic_rx_walk_cq(cq, cq->num_descs); work_done 211 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (work_done) work_done 213 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done, IONIC_INTR_CRED_RESET_COALESCE); work_done 307 drivers/net/ethernet/pensando/ionic/ionic_txrx.c u32 work_done = 0; work_done 316 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done = ionic_rx_walk_cq(rxcq, budget); work_done 318 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (work_done) work_done 321 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 326 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (work_done || flags) { work_done 329 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done, flags); work_done 332 drivers/net/ethernet/pensando/ionic/ionic_txrx.c DEBUG_STATS_NAPI_POLL(qcq, work_done); work_done 334 drivers/net/ethernet/pensando/ionic/ionic_txrx.c return work_done; work_done 422 drivers/net/ethernet/pensando/ionic/ionic_txrx.c unsigned int work_done = 0; work_done 425 drivers/net/ethernet/pensando/ionic/ionic_txrx.c while (work_done < cq->num_descs && work_done 447 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done++; work_done 450 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (work_done) work_done 452 drivers/net/ethernet/pensando/ionic/ionic_txrx.c work_done, 0); work_done 2360 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c int work_done; work_done 2364 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c work_done = netxen_process_rcv_ring(sds_ring, budget); work_done 2367 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c work_done = budget; work_done 2369 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (work_done < budget) { work_done 2370 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c napi_complete_done(&sds_ring->napi, work_done); work_done 2375 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c return work_done; work_done 1301 drivers/net/ethernet/qlogic/qede/qede_fp.c int work_done = 0, rcv_pkts = 0; work_done 1315 drivers/net/ethernet/qlogic/qede/qede_fp.c while ((sw_comp_cons != hw_comp_cons) && (work_done < budget)) { work_done 1319 drivers/net/ethernet/qlogic/qede/qede_fp.c work_done++; work_done 1332 drivers/net/ethernet/qlogic/qede/qede_fp.c return work_done; work_done 2117 drivers/net/ethernet/qlogic/qla3xxx.c int work_done = 0; work_done 2121 drivers/net/ethernet/qlogic/qla3xxx.c qdev->rsp_consumer_index) && (work_done < budget)) { work_done 2143 drivers/net/ethernet/qlogic/qla3xxx.c work_done++; work_done 2150 drivers/net/ethernet/qlogic/qla3xxx.c work_done++; work_done 2177 drivers/net/ethernet/qlogic/qla3xxx.c return work_done; work_done 2185 drivers/net/ethernet/qlogic/qla3xxx.c int work_done; work_done 2187 drivers/net/ethernet/qlogic/qla3xxx.c work_done = ql_tx_rx_clean(qdev, budget); work_done 2189 drivers/net/ethernet/qlogic/qla3xxx.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 2201 drivers/net/ethernet/qlogic/qla3xxx.c return work_done; work_done 962 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int tx_complete, work_done; work_done 973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_process_rcv_ring(sds_ring, budget); work_done 977 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = budget; work_done 979 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done < budget) { work_done 980 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c napi_complete_done(&sds_ring->napi, work_done); work_done 987 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 994 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 999 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); work_done 1000 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done) { work_done 1006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = budget; work_done 1009 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 1016 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 1021 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_process_rcv_ring(sds_ring, budget); work_done 1023 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done < budget) { work_done 1024 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c napi_complete_done(&sds_ring->napi, work_done); work_done 1029 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 1953 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 1964 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_83xx_process_rcv_ring(sds_ring, budget); work_done 1968 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = budget; work_done 1970 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done < budget) { work_done 1971 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c napi_complete_done(&sds_ring->napi, work_done); work_done 1975 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 1981 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 1992 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_83xx_process_rcv_ring(sds_ring, budget); work_done 1996 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = budget; work_done 1998 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done < budget) { work_done 1999 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c napi_complete_done(&sds_ring->napi, work_done); work_done 2003 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 2008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 2014 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); work_done 2015 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done) { work_done 2021 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = budget; work_done 2024 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 2029 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c int work_done; work_done 2035 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c work_done = qlcnic_83xx_process_rcv_ring(sds_ring, budget); work_done 2036 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c if (work_done < budget) { work_done 2037 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c napi_complete_done(&sds_ring->napi, work_done); work_done 2042 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c return work_done; work_done 103 drivers/net/ethernet/qualcomm/emac/emac.c int work_done = 0; work_done 105 drivers/net/ethernet/qualcomm/emac/emac.c emac_mac_rx_process(adpt, rx_q, &work_done, budget); work_done 107 drivers/net/ethernet/qualcomm/emac/emac.c if (work_done < budget) { work_done 108 drivers/net/ethernet/qualcomm/emac/emac.c napi_complete_done(napi, work_done); work_done 114 drivers/net/ethernet/qualcomm/emac/emac.c return work_done; work_done 630 drivers/net/ethernet/rdc/r6040.c int work_done; work_done 634 drivers/net/ethernet/rdc/r6040.c work_done = r6040_rx(dev, budget); work_done 636 drivers/net/ethernet/rdc/r6040.c if (work_done < budget) { work_done 637 drivers/net/ethernet/rdc/r6040.c napi_complete_done(napi, work_done); work_done 642 drivers/net/ethernet/rdc/r6040.c return work_done; work_done 2130 drivers/net/ethernet/realtek/8139too.c int work_done; work_done 2133 drivers/net/ethernet/realtek/8139too.c work_done = 0; work_done 2135 drivers/net/ethernet/realtek/8139too.c work_done += rtl8139_rx(dev, tp, budget); work_done 2137 drivers/net/ethernet/realtek/8139too.c if (work_done < budget) { work_done 2141 drivers/net/ethernet/realtek/8139too.c if (napi_complete_done(napi, work_done)) work_done 2147 drivers/net/ethernet/realtek/8139too.c return work_done; work_done 6306 drivers/net/ethernet/realtek/r8169_main.c int work_done; work_done 6308 drivers/net/ethernet/realtek/r8169_main.c work_done = rtl_rx(dev, tp, (u32) budget); work_done 6312 drivers/net/ethernet/realtek/r8169_main.c if (work_done < budget) { work_done 6313 drivers/net/ethernet/realtek/r8169_main.c napi_complete_done(napi, work_done); work_done 6317 drivers/net/ethernet/realtek/r8169_main.c return work_done; work_done 1551 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int work_done = 0; work_done 1558 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c work_done = sxgbe_rx(priv, budget); work_done 1559 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (work_done < budget) { work_done 1560 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c napi_complete_done(napi, work_done); work_done 1564 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c return work_done; work_done 1135 drivers/net/ethernet/smsc/epic100.c int work_done = 0; work_done 1202 drivers/net/ethernet/smsc/epic100.c work_done++; work_done 1217 drivers/net/ethernet/smsc/epic100.c work_done++; work_done 1222 drivers/net/ethernet/smsc/epic100.c return work_done; work_done 1245 drivers/net/ethernet/smsc/epic100.c int work_done; work_done 1249 drivers/net/ethernet/smsc/epic100.c work_done = epic_rx(dev, budget); work_done 1253 drivers/net/ethernet/smsc/epic100.c if (work_done < budget && napi_complete_done(napi, work_done)) { work_done 1263 drivers/net/ethernet/smsc/epic100.c return work_done; work_done 827 drivers/net/ethernet/smsc/smsc9420.c int work_done; work_done 829 drivers/net/ethernet/smsc/smsc9420.c for (work_done = 0; work_done < budget; work_done++) { work_done 851 drivers/net/ethernet/smsc/smsc9420.c if (work_done < budget) { work_done 852 drivers/net/ethernet/smsc/smsc9420.c napi_complete_done(&pd->napi, work_done); work_done 860 drivers/net/ethernet/smsc/smsc9420.c return work_done; work_done 3671 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c int work_done; work_done 3675 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c work_done = stmmac_rx(priv, budget, chan); work_done 3676 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (work_done < budget && napi_complete_done(napi, work_done)) work_done 3678 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return work_done; work_done 3688 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c int work_done; work_done 3692 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c work_done = stmmac_tx_clean(priv, DMA_TX_SIZE, chan); work_done 3693 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c work_done = min(work_done, budget); work_done 3695 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (work_done < budget) work_done 3696 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c napi_complete_done(napi, work_done); work_done 3706 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return work_done; work_done 3681 drivers/net/ethernet/sun/niu.c int qlen, rcr_done = 0, work_done = 0; work_done 3699 drivers/net/ethernet/sun/niu.c rcr_done = work_done = 0; work_done 3701 drivers/net/ethernet/sun/niu.c while (work_done < qlen) { work_done 3703 drivers/net/ethernet/sun/niu.c work_done++; work_done 3715 drivers/net/ethernet/sun/niu.c ((u64)work_done << RX_DMA_CTL_STAT_PKTREAD_SHIFT) | work_done 3724 drivers/net/ethernet/sun/niu.c return work_done; work_done 3732 drivers/net/ethernet/sun/niu.c int i, work_done = 0; work_done 3754 drivers/net/ethernet/sun/niu.c work_done += this_work_done; work_done 3759 drivers/net/ethernet/sun/niu.c return work_done; work_done 3766 drivers/net/ethernet/sun/niu.c int work_done; work_done 3768 drivers/net/ethernet/sun/niu.c work_done = niu_poll_core(np, lp, budget); work_done 3770 drivers/net/ethernet/sun/niu.c if (work_done < budget) { work_done 3771 drivers/net/ethernet/sun/niu.c napi_complete_done(napi, work_done); work_done 3774 drivers/net/ethernet/sun/niu.c return work_done; work_done 760 drivers/net/ethernet/sun/sungem.c int entry, drops, work_done = 0; work_done 780 drivers/net/ethernet/sun/sungem.c if (work_done >= RX_RING_SIZE || work_done >= work_to_do) work_done 797 drivers/net/ethernet/sun/sungem.c work_done++; work_done 881 drivers/net/ethernet/sun/sungem.c return work_done; work_done 888 drivers/net/ethernet/sun/sungem.c int work_done; work_done 890 drivers/net/ethernet/sun/sungem.c work_done = 0; work_done 908 drivers/net/ethernet/sun/sungem.c return work_done; work_done 920 drivers/net/ethernet/sun/sungem.c work_done += gem_rx(gp, budget - work_done); work_done 922 drivers/net/ethernet/sun/sungem.c if (work_done >= budget) work_done 923 drivers/net/ethernet/sun/sungem.c return work_done; work_done 928 drivers/net/ethernet/sun/sungem.c napi_complete_done(napi, work_done); work_done 931 drivers/net/ethernet/sun/sungem.c return work_done; work_done 289 drivers/net/ethernet/tehuti/tehuti.c int work_done; work_done 293 drivers/net/ethernet/tehuti/tehuti.c work_done = bdx_rx_receive(priv, &priv->rxd_fifo0, budget); work_done 294 drivers/net/ethernet/tehuti/tehuti.c if ((work_done < budget) || work_done 302 drivers/net/ethernet/tehuti/tehuti.c napi_complete_done(napi, work_done); work_done 305 drivers/net/ethernet/tehuti/tehuti.c return work_done; work_done 828 drivers/net/ethernet/via/via-rhine.c int work_done = 0; work_done 835 drivers/net/ethernet/via/via-rhine.c work_done += rhine_rx(dev, budget); work_done 862 drivers/net/ethernet/via/via-rhine.c if (work_done < budget) { work_done 863 drivers/net/ethernet/via/via-rhine.c napi_complete_done(napi, work_done); work_done 866 drivers/net/ethernet/via/via-rhine.c return work_done; work_done 1115 drivers/net/fjes/fjes_main.c int work_done = 0; work_done 1133 drivers/net/fjes/fjes_main.c while (work_done < budget) { work_done 1153 drivers/net/fjes/fjes_main.c work_done++; work_done 1177 drivers/net/fjes/fjes_main.c if (work_done < budget) { work_done 1178 drivers/net/fjes/fjes_main.c napi_complete_done(napi, work_done); work_done 1204 drivers/net/fjes/fjes_main.c return work_done; work_done 1303 drivers/net/hyperv/netvsc.c int work_done = 0; work_done 1310 drivers/net/hyperv/netvsc.c while (nvchan->desc && work_done < budget) { work_done 1311 drivers/net/hyperv/netvsc.c work_done += netvsc_process_raw_pkt(device, nvchan, net_device, work_done 1325 drivers/net/hyperv/netvsc.c if (work_done < budget && work_done 1326 drivers/net/hyperv/netvsc.c napi_complete_done(napi, work_done) && work_done 1334 drivers/net/hyperv/netvsc.c return min(work_done, budget); work_done 2045 drivers/net/usb/r8152.c int ret = 0, work_done = 0; work_done 2049 drivers/net/usb/r8152.c while (work_done < budget) { work_done 2060 drivers/net/usb/r8152.c work_done++; work_done 2141 drivers/net/usb/r8152.c if (work_done < budget) { work_done 2142 drivers/net/usb/r8152.c work_done++; work_done 2187 drivers/net/usb/r8152.c return work_done; work_done 2252 drivers/net/usb/r8152.c int work_done; work_done 2254 drivers/net/usb/r8152.c work_done = rx_bottom(tp, budget); work_done 2256 drivers/net/usb/r8152.c if (work_done < budget) { work_done 2257 drivers/net/usb/r8152.c if (!napi_complete_done(napi, work_done)) work_done 2264 drivers/net/usb/r8152.c return work_done; work_done 94 drivers/net/xen-netback/interface.c int work_done; work_done 105 drivers/net/xen-netback/interface.c work_done = xenvif_tx_action(queue, budget); work_done 107 drivers/net/xen-netback/interface.c if (work_done < budget) { work_done 108 drivers/net/xen-netback/interface.c napi_complete_done(napi, work_done); work_done 116 drivers/net/xen-netback/interface.c return work_done; work_done 1099 drivers/net/xen-netback/netback.c int work_done = 0; work_done 1202 drivers/net/xen-netback/netback.c work_done++; work_done 1217 drivers/net/xen-netback/netback.c return work_done; work_done 1323 drivers/net/xen-netback/netback.c int work_done, ret; work_done 1342 drivers/net/xen-netback/netback.c work_done = xenvif_tx_submit(queue); work_done 1344 drivers/net/xen-netback/netback.c return work_done; work_done 455 drivers/net/xen-netback/rx.c unsigned int work_done = 0; work_done 461 drivers/net/xen-netback/rx.c work_done < RX_BATCH_SIZE) { work_done 463 drivers/net/xen-netback/rx.c work_done++; work_done 996 drivers/net/xen-netfront.c int work_done; work_done 1012 drivers/net/xen-netfront.c work_done = 0; work_done 1013 drivers/net/xen-netfront.c while ((i != rp) && (work_done < budget)) { work_done 1061 drivers/net/xen-netfront.c work_done++; work_done 1066 drivers/net/xen-netfront.c work_done -= handle_incoming_queue(queue, &rxq); work_done 1070 drivers/net/xen-netfront.c if (work_done < budget) { work_done 1073 drivers/net/xen-netfront.c napi_complete_done(napi, work_done); work_done 1082 drivers/net/xen-netfront.c return work_done; work_done 5151 drivers/s390/net/qeth_core_main.c int work_done = 0; work_done 5177 drivers/s390/net/qeth_core_main.c work_done += work_done 5201 drivers/s390/net/qeth_core_main.c if (work_done >= budget) work_done 5204 drivers/s390/net/qeth_core_main.c new_budget = budget - work_done; work_done 5208 drivers/s390/net/qeth_core_main.c napi_complete_done(napi, work_done); work_done 5212 drivers/s390/net/qeth_core_main.c return work_done; work_done 5256 drivers/s390/net/qeth_core_main.c unsigned int work_done = 0; work_done 5273 drivers/s390/net/qeth_core_main.c if (work_done >= QDIO_MAX_BUFFERS_PER_Q) { work_done 5304 drivers/s390/net/qeth_core_main.c work_done += completed; work_done 304 drivers/s390/net/qeth_l2_main.c int work_done = 0; work_done 342 drivers/s390/net/qeth_l2_main.c work_done++; work_done 347 drivers/s390/net/qeth_l2_main.c return work_done; work_done 1372 drivers/s390/net/qeth_l3_main.c int work_done = 0; work_done 1402 drivers/s390/net/qeth_l3_main.c work_done++; work_done 1407 drivers/s390/net/qeth_l3_main.c return work_done; work_done 34 drivers/scsi/fnic/fnic_isr.c unsigned long work_done = 0; work_done 54 drivers/scsi/fnic/fnic_isr.c work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); work_done 55 drivers/scsi/fnic/fnic_isr.c work_done += fnic_wq_cmpl_handler(fnic, -1); work_done 56 drivers/scsi/fnic/fnic_isr.c work_done += fnic_rq_cmpl_handler(fnic, -1); work_done 59 drivers/scsi/fnic/fnic_isr.c work_done, work_done 70 drivers/scsi/fnic/fnic_isr.c unsigned long work_done = 0; work_done 75 drivers/scsi/fnic/fnic_isr.c work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); work_done 76 drivers/scsi/fnic/fnic_isr.c work_done += fnic_wq_cmpl_handler(fnic, -1); work_done 77 drivers/scsi/fnic/fnic_isr.c work_done += fnic_rq_cmpl_handler(fnic, -1); work_done 80 drivers/scsi/fnic/fnic_isr.c work_done, work_done 77 drivers/scsi/fnic/vnic_cq.h unsigned int work_done = 0; work_done 103 drivers/scsi/fnic/vnic_cq.h work_done++; work_done 104 drivers/scsi/fnic/vnic_cq.h if (work_done >= work_to_do) work_done 108 drivers/scsi/fnic/vnic_cq.h return work_done; work_done 32 drivers/scsi/fnic/vnic_cq_copy.h unsigned int work_done = 0; work_done 54 drivers/scsi/fnic/vnic_cq_copy.h work_done++; work_done 55 drivers/scsi/fnic/vnic_cq_copy.h if (work_done >= work_to_do) work_done 59 drivers/scsi/fnic/vnic_cq_copy.h return work_done; work_done 82 drivers/scsi/snic/snic_io.c unsigned int work_done = 0; work_done 87 drivers/scsi/snic/snic_io.c work_done += svnic_cq_service(&snic->cq[i], work_done 93 drivers/scsi/snic/snic_io.c return work_done; work_done 67 drivers/scsi/snic/vnic_cq.h unsigned int work_done = 0; work_done 93 drivers/scsi/snic/vnic_cq.h work_done++; work_done 94 drivers/scsi/snic/vnic_cq.h if (work_done >= work_to_do) work_done 98 drivers/scsi/snic/vnic_cq.h return work_done; work_done 32 drivers/scsi/snic/vnic_cq_fw.h unsigned int work_done = 0; work_done 54 drivers/scsi/snic/vnic_cq_fw.h work_done++; work_done 55 drivers/scsi/snic/vnic_cq_fw.h if (work_done >= work_to_do) work_done 59 drivers/scsi/snic/vnic_cq_fw.h return work_done; work_done 2299 drivers/staging/qlge/qlge_main.c int i, work_done = 0; work_done 2330 drivers/staging/qlge/qlge_main.c work_done = ql_clean_inbound_rx_ring(rx_ring, budget); work_done 2333 drivers/staging/qlge/qlge_main.c if (work_done < budget) { work_done 2334 drivers/staging/qlge/qlge_main.c napi_complete_done(napi, work_done); work_done 2337 drivers/staging/qlge/qlge_main.c return work_done; work_done 2501 drivers/staging/qlge/qlge_main.c int work_done = 0; work_done 2541 drivers/staging/qlge/qlge_main.c work_done++; work_done 2555 drivers/staging/qlge/qlge_main.c work_done++; work_done 2558 drivers/staging/qlge/qlge_main.c return work_done ? IRQ_HANDLED : IRQ_NONE; work_done 104 fs/jffs2/erase.c int work_done = 0; work_done 120 fs/jffs2/erase.c work_done++; work_done 158 fs/jffs2/erase.c return work_done; work_done 470 include/linux/netdevice.h bool napi_complete_done(struct napi_struct *n, int work_done); work_done 5963 net/core/dev.c bool napi_complete_done(struct napi_struct *n, int work_done) work_done 5980 net/core/dev.c if (work_done) work_done 54 net/core/gro_cells.c int work_done = 0; work_done 56 net/core/gro_cells.c while (work_done < budget) { work_done 61 net/core/gro_cells.c work_done++; work_done 64 net/core/gro_cells.c if (work_done < budget) work_done 65 net/core/gro_cells.c napi_complete_done(napi, work_done); work_done 66 net/core/gro_cells.c return work_done; work_done 1107 tools/perf/bench/numa.c long work_done; work_done 1180 tools/perf/bench/numa.c work_done = g->p.bytes_global + g->p.bytes_process + work_done 1183 tools/perf/bench/numa.c update_curr_cpu(task_nr, work_done); work_done 1184 tools/perf/bench/numa.c bytes_done += work_done;