Home
last modified time | relevance | path

Searched refs:work_done (Results 1 – 25 of 108) sorted by relevance

12345

/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c52 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/
Dfnic_isr.c34 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()
Dvnic_cq_copy.h32 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()
Dvnic_cq.h77 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/
Dvnic_cq_fw.h32 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()
Dvnic_cq.h67 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/
Dqlcnic_io.c960 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/
Dvnic_cq.h79 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/
Difi_canfd.c536 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/
Dnps_enet.c77 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/
Daq_vec.c40 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/
Drx-offload.c54 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()
Dgrcan.c507 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()
Dat91_can.c798 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()
Dxilinx_can.c826 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/
Demac_main.c179 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/
Dm_can.c741 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/
Dinterrupt.c117 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/
Dc_can.c1059 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/
Dvnic_main.c510 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/
Dmscan.c395 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/
Dlantiq_etop.c159 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/
Dinterface.c94 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/
Demac.c111 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/
Depic100.c1139 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()

12345