/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 52 int work_done = 0; in mlx5e_napi_poll() local 62 work_done = mlx5e_poll_rx_cq(&c->rq.cq, budget); in mlx5e_napi_poll() 63 busy |= work_done == budget; in mlx5e_napi_poll() 71 if (budget && work_done == budget) in mlx5e_napi_poll() 72 work_done--; in mlx5e_napi_poll() 75 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_napi_poll() 76 return work_done; in mlx5e_napi_poll() 87 return work_done; in mlx5e_napi_poll()
|
/drivers/scsi/fnic/ |
D | fnic_isr.c | 34 unsigned long work_done = 0; in fnic_isr_legacy() local 54 work_done += fnic_wq_copy_cmpl_handler(fnic, -1); in fnic_isr_legacy() 55 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_legacy() 56 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_legacy() 59 work_done, in fnic_isr_legacy() 70 unsigned long work_done = 0; in fnic_isr_msi() local 75 work_done += fnic_wq_copy_cmpl_handler(fnic, -1); in fnic_isr_msi() 76 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_msi() 77 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_msi() 80 work_done, in fnic_isr_msi()
|
D | vnic_cq_copy.h | 32 unsigned int work_done = 0; in vnic_cq_copy_service() local 54 work_done++; in vnic_cq_copy_service() 55 if (work_done >= work_to_do) in vnic_cq_copy_service() 59 return work_done; in vnic_cq_copy_service()
|
D | vnic_cq.h | 77 unsigned int work_done = 0; in vnic_cq_service() local 103 work_done++; in vnic_cq_service() 104 if (work_done >= work_to_do) in vnic_cq_service() 108 return work_done; in vnic_cq_service()
|
/drivers/scsi/snic/ |
D | vnic_cq_fw.h | 32 unsigned int work_done = 0; in vnic_cq_fw_service() local 54 work_done++; in vnic_cq_fw_service() 55 if (work_done >= work_to_do) in vnic_cq_fw_service() 59 return work_done; in vnic_cq_fw_service()
|
D | vnic_cq.h | 67 unsigned int work_done = 0; in svnic_cq_service() local 93 work_done++; in svnic_cq_service() 94 if (work_done >= work_to_do) in svnic_cq_service() 98 return work_done; in svnic_cq_service()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 960 int tx_complete, work_done; in qlcnic_poll() local 971 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll() 975 work_done = budget; in qlcnic_poll() 977 if (work_done < budget) { in qlcnic_poll() 978 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll() 985 return work_done; in qlcnic_poll() 992 int work_done; in qlcnic_tx_poll() local 997 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll() 998 if (work_done) { in qlcnic_tx_poll() 1004 work_done = budget; in qlcnic_tx_poll() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_cq.h | 79 unsigned int work_done = 0; in vnic_cq_service() local 105 work_done++; in vnic_cq_service() 106 if (work_done >= work_to_do) in vnic_cq_service() 110 return work_done; in vnic_cq_service()
|
/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 536 int work_done = 0; in ifi_canfd_handle_state_errors() local 541 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors() 548 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors() 555 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors() 562 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors() 566 return work_done; in ifi_canfd_handle_state_errors() 574 int work_done = 0; in ifi_canfd_poll() local 577 work_done += ifi_canfd_handle_state_errors(ndev); in ifi_canfd_poll() 581 work_done += ifi_canfd_handle_lost_msg(ndev); in ifi_canfd_poll() 585 work_done += ifi_canfd_handle_lec_err(ndev); in ifi_canfd_poll() [all …]
|
/drivers/net/ethernet/ezchip/ |
D | nps_enet.c | 77 u32 work_done = 0; in nps_enet_rx_handler() local 89 return work_done; in nps_enet_rx_handler() 92 work_done++; in nps_enet_rx_handler() 146 return work_done; in nps_enet_rx_handler() 189 u32 work_done; in nps_enet_poll() local 192 work_done = nps_enet_rx_handler(ndev); in nps_enet_poll() 193 if ((work_done < budget) && napi_complete_done(napi, work_done)) { in nps_enet_poll() 217 return work_done; in nps_enet_poll()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_vec.c | 40 int work_done = 0; in aq_vec_poll() local 75 &work_done, in aq_vec_poll() 76 budget - work_done); in aq_vec_poll() 95 work_done = budget; in aq_vec_poll() 97 if (work_done < budget) { in aq_vec_poll() 98 napi_complete_done(napi, work_done); in aq_vec_poll() 104 return work_done; in aq_vec_poll()
|
/drivers/net/can/ |
D | rx-offload.c | 54 int work_done = 0; in can_rx_offload_napi_poll() local 56 while ((work_done < quota) && in can_rx_offload_napi_poll() 60 work_done++; in can_rx_offload_napi_poll() 66 if (work_done < quota) { in can_rx_offload_napi_poll() 67 napi_complete_done(napi, work_done); in can_rx_offload_napi_poll() 76 return work_done; in can_rx_offload_napi_poll()
|
D | grcan.c | 507 int i, work_done; in catch_up_echo_skb() local 515 for (work_done = 0; work_done < budget || budget < 0; work_done++) { in catch_up_echo_skb() 534 return work_done; in catch_up_echo_skb() 1145 int work_done; in grcan_transmit_catch_up() local 1149 work_done = catch_up_echo_skb(dev, budget, true); in grcan_transmit_catch_up() 1150 if (work_done) { in grcan_transmit_catch_up() 1164 return work_done; in grcan_transmit_catch_up() 1178 int work_done = 0; in grcan_receive() local 1182 for (work_done = 0; work_done < budget; work_done++) { in grcan_receive() 1237 return work_done; in grcan_receive()
|
D | at91_can.c | 798 int work_done = 0; in at91_poll() local 801 work_done += at91_poll_rx(dev, quota - work_done); in at91_poll() 809 work_done += at91_poll_err(dev, quota - work_done, reg_sr); in at91_poll() 811 if (work_done < quota) { in at91_poll() 816 napi_complete_done(napi, work_done); in at91_poll() 820 return work_done; in at91_poll()
|
D | xilinx_can.c | 826 int work_done = 0; in xcan_rx_poll() local 829 while ((isr & XCAN_IXR_RXNEMP_MASK) && (work_done < quota)) { in xcan_rx_poll() 830 work_done += xcan_rx(ndev); in xcan_rx_poll() 835 if (work_done) { in xcan_rx_poll() 840 if (work_done < quota) { in xcan_rx_poll() 841 napi_complete_done(napi, work_done); in xcan_rx_poll() 846 return work_done; in xcan_rx_poll()
|
/drivers/net/ethernet/arc/ |
D | emac_main.c | 179 unsigned int work_done; in arc_emac_rx() local 181 for (work_done = 0; work_done < budget; work_done++) { in arc_emac_rx() 267 return work_done; in arc_emac_rx() 281 unsigned int work_done; in arc_emac_poll() local 285 work_done = arc_emac_rx(ndev, budget); in arc_emac_poll() 286 if (work_done < budget) { in arc_emac_poll() 287 napi_complete_done(napi, work_done); in arc_emac_poll() 291 return work_done; in arc_emac_poll()
|
/drivers/net/can/m_can/ |
D | m_can.c | 741 int work_done = 0; in m_can_handle_state_errors() local 746 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 753 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 760 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 764 return work_done; in m_can_handle_state_errors() 794 int work_done = 0; in m_can_handle_bus_errors() local 797 work_done += m_can_handle_lost_msg(dev); in m_can_handle_bus_errors() 802 work_done += m_can_handle_lec_err(dev, psr & LEC_UNUSED); in m_can_handle_bus_errors() 807 return work_done; in m_can_handle_bus_errors() 814 int work_done = 0; in m_can_poll() local [all …]
|
/drivers/net/ethernet/dec/tulip/ |
D | interrupt.c | 117 int work_done = 0; in tulip_poll() local 155 if (++work_done >= budget) in tulip_poll() 322 napi_complete_done(napi, work_done); in tulip_poll() 336 return work_done; in tulip_poll() 346 return work_done; in tulip_poll() 358 napi_complete_done(napi, work_done); in tulip_poll() 360 return work_done; in tulip_poll()
|
/drivers/net/can/c_can/ |
D | c_can.c | 1059 int work_done = 0; in c_can_poll() local 1075 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll() 1080 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll() 1085 work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); in c_can_poll() 1100 work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); in c_can_poll() 1103 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll() 1107 if (work_done < quota) { in c_can_poll() 1108 napi_complete_done(napi, work_done); in c_can_poll() 1114 return work_done; in c_can_poll()
|
/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 510 int *work_done, int work_to_do) in hfi1_vnic_handle_rx() argument 517 if (*work_done >= work_to_do) in hfi1_vnic_handle_rx() 536 (*work_done)++; in hfi1_vnic_handle_rx() 546 int work_done = 0; in hfi1_vnic_napi() local 549 hfi1_vnic_handle_rx(rxq, &work_done, budget); in hfi1_vnic_napi() 551 v_dbg("napi %d work_done %d\n", rxq->idx, work_done); in hfi1_vnic_napi() 552 if (work_done < budget) in hfi1_vnic_napi() 555 return work_done; in hfi1_vnic_napi()
|
/drivers/net/can/mscan/ |
D | mscan.c | 395 int work_done = 0; in mscan_rx_poll() local 400 while (work_done < quota) { in mscan_rx_poll() 421 work_done++; in mscan_rx_poll() 425 if (work_done < quota) { in mscan_rx_poll() 426 if (likely(napi_complete_done(&priv->napi, work_done))) { in mscan_rx_poll() 432 return work_done; in mscan_rx_poll()
|
/drivers/net/ethernet/ |
D | lantiq_etop.c | 159 int work_done = 0; in ltq_etop_poll_rx() local 161 while (work_done < budget) { in ltq_etop_poll_rx() 167 work_done++; in ltq_etop_poll_rx() 169 if (work_done < budget) { in ltq_etop_poll_rx() 170 napi_complete_done(&ch->napi, work_done); in ltq_etop_poll_rx() 173 return work_done; in ltq_etop_poll_rx()
|
/drivers/net/xen-netback/ |
D | interface.c | 94 int work_done; in xenvif_poll() local 105 work_done = xenvif_tx_action(queue, budget); in xenvif_poll() 107 if (work_done < budget) { in xenvif_poll() 108 napi_complete_done(napi, work_done); in xenvif_poll() 116 return work_done; in xenvif_poll()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 111 int work_done = 0; in emac_napi_rtx() local 113 emac_mac_rx_process(adpt, rx_q, &work_done, budget); in emac_napi_rtx() 115 if (work_done < budget) { in emac_napi_rtx() 116 napi_complete_done(napi, work_done); in emac_napi_rtx() 122 return work_done; in emac_napi_rtx()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 1139 int work_done = 0; in epic_rx() local 1206 work_done++; in epic_rx() 1221 work_done++; in epic_rx() 1226 return work_done; in epic_rx() 1249 int work_done; in epic_poll() local 1253 work_done = epic_rx(dev, budget); in epic_poll() 1257 if (work_done < budget && napi_complete_done(napi, work_done)) { in epic_poll() 1267 return work_done; in epic_poll()
|