Home
last modified time | relevance | path

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

123456

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c136 int work_done = 0; in mlx5e_napi_poll() local
171 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
173 if (likely(budget - work_done)) in mlx5e_napi_poll()
174 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
176 busy |= work_done == budget; in mlx5e_napi_poll()
203 work_done = budget; in mlx5e_napi_poll()
208 if (budget && work_done == budget) in mlx5e_napi_poll()
209 work_done--; in mlx5e_napi_poll()
212 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_napi_poll()
253 return work_done; in mlx5e_napi_poll()
/linux-6.1.9/net/core/
Dgro_cells.c54 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()
/linux-6.1.9/drivers/scsi/fnic/
Dfnic_isr.c22 unsigned long work_done = 0; in fnic_isr_legacy() local
42 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); in fnic_isr_legacy()
43 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_legacy()
44 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_legacy()
47 work_done, in fnic_isr_legacy()
58 unsigned long work_done = 0; in fnic_isr_msi() local
63 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions); in fnic_isr_msi()
64 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_msi()
65 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_msi()
68 work_done, in fnic_isr_msi()
Dvnic_cq_copy.h20 unsigned int work_done = 0; in vnic_cq_copy_service() local
42 work_done++; in vnic_cq_copy_service()
43 if (work_done >= work_to_do) in vnic_cq_copy_service()
47 return work_done; in vnic_cq_copy_service()
Dvnic_cq.h65 unsigned int work_done = 0; in vnic_cq_service() local
91 work_done++; in vnic_cq_service()
92 if (work_done >= work_to_do) in vnic_cq_service()
96 return work_done; in vnic_cq_service()
/linux-6.1.9/drivers/scsi/snic/
Dvnic_cq_fw.h18 unsigned int work_done = 0; in vnic_cq_fw_service() local
40 work_done++; in vnic_cq_fw_service()
41 if (work_done >= work_to_do) in vnic_cq_fw_service()
45 return work_done; in vnic_cq_fw_service()
Dvnic_cq.h53 unsigned int work_done = 0; in svnic_cq_service() local
79 work_done++; in svnic_cq_service()
80 if (work_done >= work_to_do) in svnic_cq_service()
84 return work_done; in svnic_cq_service()
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Dvnic_cq.h66 unsigned int work_done = 0; in vnic_cq_service() local
92 work_done++; in vnic_cq_service()
93 if (work_done >= work_to_do) in vnic_cq_service()
97 return work_done; in vnic_cq_service()
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c962 int tx_complete, work_done; in qlcnic_poll() local
973 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
977 work_done = budget; in qlcnic_poll()
979 if (work_done < budget) { in qlcnic_poll()
980 napi_complete_done(&sds_ring->napi, work_done); in qlcnic_poll()
987 return work_done; in qlcnic_poll()
994 int work_done; in qlcnic_tx_poll() local
999 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll()
1000 if (work_done) { in qlcnic_tx_poll()
1006 work_done = budget; in qlcnic_tx_poll()
[all …]
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c35 int work_done = 0; in aq_vec_poll() local
69 &work_done, in aq_vec_poll()
70 budget - work_done); in aq_vec_poll()
90 work_done = budget; in aq_vec_poll()
92 if (work_done < budget) { in aq_vec_poll()
93 napi_complete_done(napi, work_done); in aq_vec_poll()
99 return work_done; in aq_vec_poll()
/linux-6.1.9/drivers/net/can/ifi_canfd/
Difi_canfd.c529 int work_done = 0; in ifi_canfd_handle_state_errors() local
534 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors()
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()
559 return work_done; in ifi_canfd_handle_state_errors()
567 int work_done = 0; in ifi_canfd_poll() local
570 work_done += ifi_canfd_handle_state_errors(ndev); in ifi_canfd_poll()
574 work_done += ifi_canfd_handle_lost_msg(ndev); in ifi_canfd_poll()
578 work_done += ifi_canfd_handle_lec_err(ndev); in ifi_canfd_poll()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_rx.c295 int work_done = 0; in mlxbf_gige_poll() local
303 remaining_pkts = mlxbf_gige_rx_packet(priv, &work_done); in mlxbf_gige_poll()
304 } while (remaining_pkts && work_done < budget); in mlxbf_gige_poll()
310 if (work_done < budget && napi_complete_done(napi, work_done)) { in mlxbf_gige_poll()
319 return work_done; in mlxbf_gige_poll()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c15 int work_done = 0; in mlx5e_trap_napi_poll() local
21 work_done = mlx5e_poll_rx_cq(&rq->cq, budget); in mlx5e_trap_napi_poll()
22 busy |= work_done == budget; in mlx5e_trap_napi_poll()
26 work_done = budget; in mlx5e_trap_napi_poll()
30 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_trap_napi_poll()
37 return work_done; in mlx5e_trap_napi_poll()
/linux-6.1.9/drivers/net/can/dev/
Drx-offload.c50 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()
65 if (work_done < quota) { in can_rx_offload_napi_poll()
66 napi_complete_done(napi, work_done); in can_rx_offload_napi_poll()
73 return work_done; in can_rx_offload_napi_poll()
/linux-6.1.9/drivers/net/ethernet/ezchip/
Dnps_enet.c66 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()
/linux-6.1.9/drivers/net/ethernet/arc/
Demac_main.c177 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 …]
/linux-6.1.9/drivers/net/can/m_can/
Dm_can.c782 int work_done = 0; in m_can_handle_state_errors() local
786 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
792 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
798 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
802 return work_done; in m_can_handle_state_errors()
872 int work_done = 0; in m_can_handle_bus_errors() local
875 work_done += m_can_handle_lost_msg(dev); in m_can_handle_bus_errors()
880 work_done += m_can_handle_lec_err(dev, psr & LEC_UNUSED); in m_can_handle_bus_errors()
885 work_done += m_can_handle_protocol_error(dev, irqstatus); in m_can_handle_bus_errors()
890 return work_done; in m_can_handle_bus_errors()
[all …]
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c483 u32 work_done = 0; in ionic_tx_napi() local
489 work_done = ionic_cq_service(cq, budget, in ionic_tx_napi()
492 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_tx_napi()
498 if (work_done || flags) { in ionic_tx_napi()
502 work_done, flags); in ionic_tx_napi()
505 return work_done; in ionic_tx_napi()
515 u32 work_done = 0; in ionic_rx_napi() local
521 work_done = ionic_cq_service(cq, budget, in ionic_rx_napi()
526 if (work_done && ionic_q_space_avail(cq->bound_q) >= rx_fill_threshold) in ionic_rx_napi()
529 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_rx_napi()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Ddp.c776 int work_done = 0; in ath11k_dp_service_srng() local
787 work_done = ath11k_dp_process_rx_err(ab, napi, budget); 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()
795 work_done = ath11k_dp_rx_process_wbm_err(ab, in ath11k_dp_service_srng()
798 budget -= work_done; in ath11k_dp_service_srng()
799 tot_work_done += work_done; in ath11k_dp_service_srng()
807 work_done = ath11k_dp_process_rx(ab, i, napi, in ath11k_dp_service_srng()
809 budget -= work_done; in ath11k_dp_service_srng()
810 tot_work_done += work_done; in ath11k_dp_service_srng()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c66 bool work_done = true; in mlx5e_xsk_tx() local
80 work_done = false; in mlx5e_xsk_tx()
122 return !(budget && work_done); in mlx5e_xsk_tx()
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_rx.c538 u64 *packet_size_bytes, u32 *work_done) in gve_rx() argument
611 *work_done = work_cnt; in gve_rx()
625 *work_done = ctx->expected_frag_cnt; in gve_rx()
707 u32 work_done = 0, total_packet_cnt = 0, ok_packet_cnt = 0; in gve_clean_rx_done() local
715 work_done < budget) { in gve_clean_rx_done()
736 work_done += work_cnt; in gve_clean_rx_done()
739 if (!work_done && rx->fill_cnt - rx->cnt > rx->db_threshold) in gve_clean_rx_done()
742 if (work_done) { in gve_clean_rx_done()
752 rx->fill_cnt += work_done; in gve_clean_rx_done()
777 int work_done = 0; in gve_rx_poll() local
[all …]
/linux-6.1.9/drivers/net/can/
Dgrcan.c504 int i, work_done; in catch_up_echo_skb() local
512 for (work_done = 0; work_done < budget || budget < 0; work_done++) { in catch_up_echo_skb()
529 return work_done; in catch_up_echo_skb()
1134 int work_done; in grcan_transmit_catch_up() local
1138 work_done = catch_up_echo_skb(dev, -1, true); in grcan_transmit_catch_up()
1139 if (work_done) { in grcan_transmit_catch_up()
1165 int work_done = 0; in grcan_receive() local
1169 for (work_done = 0; work_done < budget; work_done++) { in grcan_receive()
1224 return work_done; in grcan_receive()
1233 int work_done; in grcan_poll() local
[all …]
/linux-6.1.9/drivers/net/can/c_can/
Dc_can_main.c1064 int work_done = 0; in c_can_poll() local
1081 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll()
1086 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll()
1091 work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); in c_can_poll()
1098 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll()
1103 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll()
1108 work_done += c_can_handle_state_change(dev, C_CAN_NO_ERROR); in c_can_poll()
1112 work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); in c_can_poll()
1115 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll()
1119 if (work_done < quota) { in c_can_poll()
[all …]
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Dinterrupt.c117 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()
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_fdma.c396 int work_done = 0; in ocelot_fdma_rx_get() local
426 work_done++; in ocelot_fdma_rx_get()
458 return work_done; in ocelot_fdma_rx_get()
555 int work_done = 0; in ocelot_fdma_napi_poll() local
562 work_done = ocelot_fdma_rx_get(ocelot, budget); in ocelot_fdma_napi_poll()
567 if (work_done < budget) { in ocelot_fdma_napi_poll()
568 napi_complete_done(&fdma->napi, work_done); in ocelot_fdma_napi_poll()
574 return work_done; in ocelot_fdma_napi_poll()

123456