Home
last modified time | relevance | path

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

1234567

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c136 int work_done = 0; in mlx5e_napi_poll() local
174 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
176 if (likely(budget - work_done)) in mlx5e_napi_poll()
177 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
179 busy |= work_done == budget; in mlx5e_napi_poll()
205 work_done = budget; in mlx5e_napi_poll()
210 if (work_done == budget) in mlx5e_napi_poll()
211 work_done--; in mlx5e_napi_poll()
214 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_napi_poll()
255 return work_done; in mlx5e_napi_poll()
/linux-6.12.1/net/core/
Dgro_cells.c55 int work_done = 0; in gro_cell_poll() local
57 while (work_done < budget) { in gro_cell_poll()
62 work_done++; in gro_cell_poll()
65 if (work_done < budget) in gro_cell_poll()
66 napi_complete_done(napi, work_done); in gro_cell_poll()
67 return work_done; in gro_cell_poll()
/linux-6.12.1/drivers/scsi/fnic/
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()
Dfnic_isr.c22 unsigned long work_done = 0; in fnic_isr_legacy() local
47 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions, FNIC_MQ_CQ_INDEX); in fnic_isr_legacy()
48 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_legacy()
49 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_legacy()
52 work_done, in fnic_isr_legacy()
63 unsigned long work_done = 0; in fnic_isr_msi() local
68 work_done += fnic_wq_copy_cmpl_handler(fnic, io_completions, FNIC_MQ_CQ_INDEX); in fnic_isr_msi()
69 work_done += fnic_wq_cmpl_handler(fnic, -1); in fnic_isr_msi()
70 work_done += fnic_rq_cmpl_handler(fnic, -1); in fnic_isr_msi()
73 work_done, in fnic_isr_msi()
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.12.1/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.12.1/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.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c961 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 …]
/linux-6.12.1/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.12.1/drivers/net/can/ifi_canfd/
Difi_canfd.c528 int work_done = 0; in ifi_canfd_handle_state_errors() local
533 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors()
540 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors()
547 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors()
554 work_done += ifi_canfd_handle_state_change(ndev, in ifi_canfd_handle_state_errors()
558 return work_done; in ifi_canfd_handle_state_errors()
566 int work_done = 0; in ifi_canfd_poll() local
569 work_done += ifi_canfd_handle_state_errors(ndev); in ifi_canfd_poll()
573 work_done += ifi_canfd_handle_lost_msg(ndev); in ifi_canfd_poll()
577 work_done += ifi_canfd_handle_lec_err(ndev); in ifi_canfd_poll()
[all …]
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c938 u32 work_done = 0; in ionic_tx_napi() local
941 work_done = ionic_tx_cq_service(cq, budget, !!budget); in ionic_tx_napi()
946 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_tx_napi()
952 if (work_done || flags) { in ionic_tx_napi()
956 work_done, flags); in ionic_tx_napi()
959 if (!work_done && cq->bound_q->lif->doorbell_wa) in ionic_tx_napi()
962 return work_done; in ionic_tx_napi()
977 unsigned int work_done = 0; in ionic_rx_cq_service() local
990 if (++work_done >= work_to_do) in ionic_rx_cq_service()
996 return work_done; in ionic_rx_cq_service()
[all …]
/linux-6.12.1/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()
300 int budget, unsigned int work_done) in arc_emac_rx_stall_check() argument
305 if (work_done) in arc_emac_rx_stall_check()
328 unsigned int work_done; in arc_emac_poll() local
333 work_done = arc_emac_rx(ndev, budget); in arc_emac_poll()
334 if (work_done < budget) { in arc_emac_poll()
335 napi_complete_done(napi, work_done); in arc_emac_poll()
339 arc_emac_rx_stall_check(ndev, budget, work_done); in arc_emac_poll()
[all …]
/linux-6.12.1/drivers/net/ethernet/ezchip/
Dnps_enet.c65 u32 work_done = 0; in nps_enet_rx_handler() local
77 return work_done; in nps_enet_rx_handler()
80 work_done++; in nps_enet_rx_handler()
134 return work_done; in nps_enet_rx_handler()
177 u32 work_done; in nps_enet_poll() local
180 work_done = nps_enet_rx_handler(ndev); in nps_enet_poll()
181 if ((work_done < budget) && napi_complete_done(napi, work_done)) { in nps_enet_poll()
205 return work_done; in nps_enet_poll()
/linux-6.12.1/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.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c14 int work_done = 0; in mlx5e_trap_napi_poll() local
20 work_done = mlx5e_poll_rx_cq(&rq->cq, budget); in mlx5e_trap_napi_poll()
21 busy |= work_done == budget; in mlx5e_trap_napi_poll()
25 work_done = budget; in mlx5e_trap_napi_poll()
29 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_trap_napi_poll()
36 return work_done; in mlx5e_trap_napi_poll()
/linux-6.12.1/drivers/net/wireless/ath/ath11k/
Ddp.c792 int work_done = 0; in ath11k_dp_service_srng() local
803 work_done = ath11k_dp_process_rx_err(ab, napi, budget); in ath11k_dp_service_srng()
804 budget -= work_done; in ath11k_dp_service_srng()
805 tot_work_done += work_done; in ath11k_dp_service_srng()
811 work_done = ath11k_dp_rx_process_wbm_err(ab, in ath11k_dp_service_srng()
814 budget -= work_done; in ath11k_dp_service_srng()
815 tot_work_done += work_done; in ath11k_dp_service_srng()
823 work_done = ath11k_dp_process_rx(ab, i, napi, in ath11k_dp_service_srng()
825 budget -= work_done; in ath11k_dp_service_srng()
826 tot_work_done += work_done; in ath11k_dp_service_srng()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_rx.c339 int work_done = 0; in mlxbf_gige_poll() local
347 remaining_pkts = mlxbf_gige_rx_packet(priv, &work_done); in mlxbf_gige_poll()
348 } while (remaining_pkts && work_done < budget); in mlxbf_gige_poll()
354 if (work_done < budget && napi_complete_done(napi, work_done)) { in mlxbf_gige_poll()
363 return work_done; in mlxbf_gige_poll()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c69 bool work_done = true; in mlx5e_xsk_tx() local
84 work_done = false; in mlx5e_xsk_tx()
137 return !(budget && work_done); in mlx5e_xsk_tx()
/linux-6.12.1/drivers/net/can/
Dgrcan.c505 int i, work_done; in catch_up_echo_skb() local
513 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()
1135 int work_done; in grcan_transmit_catch_up() local
1139 work_done = catch_up_echo_skb(dev, -1, true); in grcan_transmit_catch_up()
1140 if (work_done) { in grcan_transmit_catch_up()
1166 int work_done = 0; in grcan_receive() local
1170 for (work_done = 0; work_done < budget; work_done++) { in grcan_receive()
1225 return work_done; in grcan_receive()
1234 int work_done; in grcan_poll() local
[all …]
/linux-6.12.1/drivers/net/can/c_can/
Dc_can_main.c1069 int work_done = 0; in c_can_poll() local
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_ERROR_PASSIVE); in c_can_poll()
1096 work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); in c_can_poll()
1103 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll()
1108 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll()
1113 work_done += c_can_handle_state_change(dev, C_CAN_NO_ERROR); in c_can_poll()
1117 work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); in c_can_poll()
1120 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll()
1124 if (work_done < quota) { in c_can_poll()
[all …]
/linux-6.12.1/drivers/net/can/m_can/
Dm_can.c870 int work_done = 0; in m_can_handle_state_errors() local
874 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
880 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
886 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
890 return work_done; in m_can_handle_state_errors()
958 int work_done = 0; in m_can_handle_bus_errors() local
961 work_done += m_can_handle_lost_msg(dev); in m_can_handle_bus_errors()
970 work_done += m_can_handle_lec_err(dev, lec); in m_can_handle_bus_errors()
975 work_done += m_can_handle_lec_err(dev, dlec); in m_can_handle_bus_errors()
982 work_done += m_can_handle_protocol_error(dev, irqstatus); in m_can_handle_bus_errors()
[all …]
/linux-6.12.1/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_rx.c835 int ret, once_more = 0, work_done = 0; in t7xx_dpmaif_napi_rx_poll() local
845 return work_done; in t7xx_dpmaif_napi_rx_poll()
853 napi_complete_done(napi, work_done); in t7xx_dpmaif_napi_rx_poll()
856 return work_done; in t7xx_dpmaif_napi_rx_poll()
860 while (work_done < budget) { in t7xx_dpmaif_napi_rx_poll()
861 int each_budget = budget - work_done; in t7xx_dpmaif_napi_rx_poll()
865 work_done += rx_cnt; in t7xx_dpmaif_napi_rx_poll()
872 work_done = budget; in t7xx_dpmaif_napi_rx_poll()
874 } else if (work_done < budget) { in t7xx_dpmaif_napi_rx_poll()
875 napi_complete_done(napi, work_done); in t7xx_dpmaif_napi_rx_poll()
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath12k/
Ddp.c874 int work_done = 0; in ath12k_dp_service_srng() local
886 work_done = ath12k_dp_rx_process_err(ab, napi, budget); in ath12k_dp_service_srng()
887 budget -= work_done; in ath12k_dp_service_srng()
888 tot_work_done += work_done; in ath12k_dp_service_srng()
894 work_done = ath12k_dp_rx_process_wbm_err(ab, in ath12k_dp_service_srng()
897 budget -= work_done; in ath12k_dp_service_srng()
898 tot_work_done += work_done; in ath12k_dp_service_srng()
906 work_done = ath12k_dp_rx_process(ab, i, napi, in ath12k_dp_service_srng()
908 budget -= work_done; in ath12k_dp_service_srng()
909 tot_work_done += work_done; in ath12k_dp_service_srng()
[all …]
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_xdp.c432 u32 work_done; in ena_xdp_io_poll() local
443 work_done = ena_clean_xdp_irq(tx_ring, budget); in ena_xdp_io_poll()
451 } else if (budget > work_done) { in ena_xdp_io_poll()
454 if (napi_complete_done(napi, work_done)) in ena_xdp_io_poll()
458 ret = work_done; in ena_xdp_io_poll()

1234567