/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 127 int work_done = 0; in mlx5e_napi_poll() local 147 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll() 149 if (likely(budget - work_done)) in mlx5e_napi_poll() 150 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll() 152 busy |= work_done == budget; in mlx5e_napi_poll() 175 work_done = budget; in mlx5e_napi_poll() 180 if (budget && work_done == budget) in mlx5e_napi_poll() 181 work_done--; in mlx5e_napi_poll() 184 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_napi_poll() 215 return work_done; in mlx5e_napi_poll()
|
/kernel/linux/linux-5.10/net/core/ |
D | gro_cells.c | 54 int work_done = 0; in gro_cell_poll() local 56 while (work_done < budget) { in gro_cell_poll() 61 work_done++; in gro_cell_poll() 64 if (work_done < budget) in gro_cell_poll() 65 napi_complete_done(napi, work_done); in gro_cell_poll() 66 return work_done; in gro_cell_poll()
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
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 | fnic_isr.c | 34 unsigned long work_done = 0; in fnic_isr_legacy() local 54 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); 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, io_completions); 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.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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 961 int tx_complete, work_done; in qlcnic_poll() local 972 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll() 976 work_done = budget; in qlcnic_poll() 978 if (work_done < budget) { in qlcnic_poll() 979 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll() 986 return work_done; in qlcnic_poll() 993 int work_done; in qlcnic_tx_poll() local 998 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll() 999 if (work_done) { in qlcnic_tx_poll() 1005 work_done = budget; in qlcnic_tx_poll() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.h | 283 unsigned int work_done) in debug_stats_napi_poll() argument 287 if (work_done > (IONIC_MAX_NUM_NAPI_CNTR - 1)) in debug_stats_napi_poll() 288 work_done = IONIC_MAX_NUM_NAPI_CNTR - 1; in debug_stats_napi_poll() 290 qcq->napi_stats.work_done_cntr[work_done]++; in debug_stats_napi_poll() 296 #define DEBUG_STATS_NAPI_POLL(qcq, work_done) \ argument 297 debug_stats_napi_poll(qcq, work_done)
|
D | ionic_txrx.c | 459 u32 work_done = 0; in ionic_tx_napi() local 465 work_done = ionic_cq_service(cq, budget, in ionic_tx_napi() 468 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_tx_napi() 474 if (work_done || flags) { in ionic_tx_napi() 478 work_done, flags); in ionic_tx_napi() 481 DEBUG_STATS_NAPI_POLL(qcq, work_done); in ionic_tx_napi() 483 return work_done; in ionic_tx_napi() 492 u32 work_done = 0; in ionic_rx_napi() local 498 work_done = ionic_cq_service(cq, budget, in ionic_rx_napi() 501 if (work_done) in ionic_rx_napi() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_vec.c | 40 int work_done = 0; in aq_vec_poll() local 74 &work_done, in aq_vec_poll() 75 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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/can/dev/ |
D | rx-offload.c | 50 int work_done = 0; in can_rx_offload_napi_poll() local 52 while ((work_done < quota) && in can_rx_offload_napi_poll() 56 work_done++; in can_rx_offload_napi_poll() 62 if (work_done < quota) { in can_rx_offload_napi_poll() 63 napi_complete_done(napi, work_done); in can_rx_offload_napi_poll() 72 return work_done; in can_rx_offload_napi_poll()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ezchip/ |
D | nps_enet.c | 66 u32 work_done = 0; in nps_enet_rx_handler() local 78 return work_done; in nps_enet_rx_handler() 81 work_done++; in nps_enet_rx_handler() 135 return work_done; in nps_enet_rx_handler() 178 u32 work_done; in nps_enet_poll() local 181 work_done = nps_enet_rx_handler(ndev); in nps_enet_poll() 182 if ((work_done < budget) && napi_complete_done(napi, work_done)) { in nps_enet_poll() 206 return work_done; in nps_enet_poll()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/arc/ |
D | emac_main.c | 177 unsigned int work_done; in arc_emac_rx() local 179 for (work_done = 0; work_done < budget; work_done++) { in arc_emac_rx() 265 return work_done; in arc_emac_rx() 298 int budget, unsigned int work_done) in arc_emac_rx_stall_check() argument 303 if (work_done) in arc_emac_rx_stall_check() 326 unsigned int work_done; in arc_emac_poll() local 331 work_done = arc_emac_rx(ndev, budget); in arc_emac_poll() 332 if (work_done < budget) { in arc_emac_poll() 333 napi_complete_done(napi, work_done); in arc_emac_poll() 337 arc_emac_rx_stall_check(ndev, budget, work_done); in arc_emac_poll() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | tx.c | 72 bool work_done = true; in mlx5e_xsk_tx() local 86 work_done = false; in mlx5e_xsk_tx() 125 return !(budget && work_done); in mlx5e_xsk_tx()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | dp.c | 755 int work_done = 0; in ath11k_dp_service_srng() local 766 work_done = ath11k_dp_process_rx_err(ab, napi, budget); in ath11k_dp_service_srng() 767 budget -= work_done; in ath11k_dp_service_srng() 768 tot_work_done += work_done; in ath11k_dp_service_srng() 774 work_done = ath11k_dp_rx_process_wbm_err(ab, in ath11k_dp_service_srng() 777 budget -= work_done; in ath11k_dp_service_srng() 778 tot_work_done += work_done; in ath11k_dp_service_srng() 786 work_done = ath11k_dp_process_rx(ab, i, napi, in ath11k_dp_service_srng() 788 budget -= work_done; in ath11k_dp_service_srng() 789 tot_work_done += work_done; in ath11k_dp_service_srng() [all …]
|
D | ahb.c | 416 int work_done; in ath11k_ahb_ext_grp_napi_poll() local 418 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); in ath11k_ahb_ext_grp_napi_poll() 419 if (work_done < budget) { in ath11k_ahb_ext_grp_napi_poll() 420 napi_complete_done(napi, work_done); in ath11k_ahb_ext_grp_napi_poll() 424 if (work_done > budget) in ath11k_ahb_ext_grp_napi_poll() 425 work_done = budget; in ath11k_ahb_ext_grp_napi_poll() 427 return work_done; in ath11k_ahb_ext_grp_napi_poll()
|
/kernel/linux/linux-5.10/drivers/net/can/m_can/ |
D | m_can.c | 728 int work_done = 0; in m_can_handle_state_errors() local 732 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 738 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 744 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors() 748 return work_done; in m_can_handle_state_errors() 813 int work_done = 0; in m_can_handle_bus_errors() local 816 work_done += m_can_handle_lost_msg(dev); in m_can_handle_bus_errors() 821 work_done += m_can_handle_lec_err(dev, psr & LEC_UNUSED); in m_can_handle_bus_errors() 826 work_done += m_can_handle_protocol_error(dev, irqstatus); in m_can_handle_bus_errors() 831 return work_done; in m_can_handle_bus_errors() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/c_can/ |
D | c_can.c | 1048 int work_done = 0; in c_can_poll() local 1064 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll() 1069 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll() 1074 work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); in c_can_poll() 1081 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll() 1086 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll() 1091 work_done += c_can_handle_state_change(dev, C_CAN_NO_ERROR); in c_can_poll() 1095 work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); in c_can_poll() 1098 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll() 1102 if (work_done < quota) { in c_can_poll() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
D | gve_rx.c | 409 u32 work_done = 0; in gve_clean_rx_done() local 414 work_done < budget) { in gve_clean_rx_done() 429 work_done++; in gve_clean_rx_done() 432 if (!work_done) in gve_clean_rx_done() 436 rx->rpackets += work_done; in gve_clean_rx_done() 440 rx->fill_cnt += work_done; in gve_clean_rx_done()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | ipoib_tx.c | 145 int work_done; in hfi1_ipoib_drain_tx_ring() local 155 work_done = min_t(int, CIRC_CNT(head, tail, max_tx), budget); in hfi1_ipoib_drain_tx_ring() 157 for (tx_count = work_done; tx_count; tx_count--) { in hfi1_ipoib_drain_tx_ring() 162 atomic64_add(work_done, &txq->complete_txreqs); in hfi1_ipoib_drain_tx_ring() 171 return work_done; in hfi1_ipoib_drain_tx_ring() 179 int work_done = hfi1_ipoib_drain_tx_ring(txq, budget); in hfi1_ipoib_process_tx_ring() local 181 if (work_done < budget) in hfi1_ipoib_process_tx_ring() 182 napi_complete_done(napi, work_done); in hfi1_ipoib_process_tx_ring() 184 return work_done; in hfi1_ipoib_process_tx_ring()
|
/kernel/linux/linux-5.10/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() 326 napi_complete_done(napi, work_done); in tulip_poll() 340 return work_done; in tulip_poll() 350 return work_done; in tulip_poll() 362 napi_complete_done(napi, work_done); in tulip_poll() 364 return work_done; in tulip_poll()
|
/kernel/linux/linux-5.10/drivers/net/can/ |
D | grcan.c | 503 int i, work_done; in catch_up_echo_skb() local 511 for (work_done = 0; work_done < budget || budget < 0; work_done++) { in catch_up_echo_skb() 530 return work_done; in catch_up_echo_skb() 1141 int work_done; in grcan_transmit_catch_up() local 1145 work_done = catch_up_echo_skb(dev, budget, true); in grcan_transmit_catch_up() 1146 if (work_done) { in grcan_transmit_catch_up() 1160 return work_done; in grcan_transmit_catch_up() 1174 int work_done = 0; in grcan_receive() local 1178 for (work_done = 0; work_done < budget; work_done++) { in grcan_receive() 1233 return work_done; in grcan_receive()
|