Home
last modified time | relevance | path

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

123456

/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_txrx.c125 int work_done = 0; in mlx5e_napi_poll() local
160 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
162 if (likely(budget - work_done)) in mlx5e_napi_poll()
163 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
165 busy |= work_done == budget; in mlx5e_napi_poll()
192 work_done = budget; in mlx5e_napi_poll()
197 if (budget && work_done == budget) in mlx5e_napi_poll()
198 work_done--; in mlx5e_napi_poll()
201 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_napi_poll()
242 return work_done; in mlx5e_napi_poll()
/linux/net/core/
A 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/drivers/scsi/fnic/
A Dfnic_isr.c34 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()
A 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()
A 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()
/linux/drivers/scsi/snic/
A 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()
A 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()
/linux/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_io.c986 return work_done; in qlcnic_poll()
993 int work_done; in qlcnic_tx_poll() local
999 if (work_done) { in qlcnic_tx_poll()
1008 return work_done; in qlcnic_tx_poll()
1015 int work_done; in qlcnic_rx_poll() local
1028 return work_done; in qlcnic_rx_poll()
1953 int work_done; in qlcnic_83xx_msix_sriov_vf_poll() local
1981 int work_done; in qlcnic_83xx_poll() local
2008 int work_done; in qlcnic_83xx_msix_tx_poll() local
2015 if (work_done) { in qlcnic_83xx_msix_tx_poll()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
A 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()
/linux/drivers/net/can/ifi_canfd/
A 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()
566 return work_done; in ifi_canfd_handle_state_errors()
574 int work_done = 0; in ifi_canfd_poll() local
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()
589 work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); in ifi_canfd_poll()
591 if (work_done < quota) { in ifi_canfd_poll()
592 napi_complete_done(napi, work_done); in ifi_canfd_poll()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_vec.c40 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()
/linux/drivers/net/can/m_can/
A Dm_can.c788 int work_done = 0; in m_can_handle_state_errors() local
808 return work_done; in m_can_handle_state_errors()
878 int work_done = 0; in m_can_handle_bus_errors() local
896 return work_done; in m_can_handle_bus_errors()
903 int work_done = 0; in m_can_rx_handler() local
947 return work_done; in m_can_rx_handler()
953 int work_done; in m_can_rx_peripheral() local
963 return work_done; in m_can_rx_peripheral()
970 int work_done; in m_can_poll() local
977 if (work_done >= 0 && work_done < quota) { in m_can_poll()
[all …]
/linux/drivers/net/ethernet/arc/
A 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/drivers/net/ethernet/ezchip/
A 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/drivers/net/ethernet/pensando/ionic/
A Dionic_txrx.c484 u32 work_done = 0; in ionic_tx_napi() local
493 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_tx_napi()
499 if (work_done || flags) { in ionic_tx_napi()
503 work_done, flags); in ionic_tx_napi()
506 return work_done; in ionic_tx_napi()
516 u32 work_done = 0; in ionic_rx_napi() local
530 if (work_done < budget && napi_complete_done(napi, work_done)) { in ionic_rx_napi()
540 work_done, flags); in ionic_rx_napi()
543 return work_done; in ionic_rx_napi()
775 u32 work_done; in ionic_tx_flush() local
[all …]
/linux/drivers/net/can/dev/
A 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()
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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtrap.c15 int work_done = 0; in mlx5e_trap_napi_poll() local
19 work_done = mlx5e_poll_rx_cq(&rq->cq, budget); in mlx5e_trap_napi_poll()
20 busy |= work_done == budget; in mlx5e_trap_napi_poll()
26 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_trap_napi_poll()
27 return work_done; in mlx5e_trap_napi_poll()
30 return work_done; in mlx5e_trap_napi_poll()
A Dptp.c109 int work_done = 0; in mlx5e_ptp_poll_ts_cq() local
122 } while ((++work_done < budget) && (cqe = mlx5_cqwq_get_cqe(cqwq))); in mlx5e_ptp_poll_ts_cq()
129 return work_done == budget; in mlx5e_ptp_poll_ts_cq()
138 int work_done = 0; in mlx5e_ptp_napi_poll() local
152 work_done = mlx5e_poll_rx_cq(&rq->cq, budget); in mlx5e_ptp_napi_poll()
153 busy |= work_done == budget; in mlx5e_ptp_napi_poll()
161 work_done = budget; in mlx5e_ptp_napi_poll()
165 if (unlikely(!napi_complete_done(napi, work_done))) in mlx5e_ptp_napi_poll()
182 return work_done; in mlx5e_ptp_napi_poll()
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/
A 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/drivers/net/wireless/ath/ath11k/
A Ddp.c744 int work_done = 0; in ath11k_dp_service_srng() local
756 budget -= work_done; in ath11k_dp_service_srng()
757 tot_work_done += work_done; in ath11k_dp_service_srng()
766 budget -= work_done; in ath11k_dp_service_srng()
767 tot_work_done += work_done; 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()
790 work_done = in ath11k_dp_service_srng()
794 budget -= work_done; in ath11k_dp_service_srng()
813 budget -= work_done; in ath11k_dp_service_srng()
[all …]
/linux/drivers/net/ethernet/google/gve/
A Dgve_rx.c537 u64 *packet_size_bytes, u32 *work_done) in gve_rx() argument
610 *work_done = work_cnt; in gve_rx()
623 *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()
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
786 work_done = gve_clean_rx_done(rx, budget, feat); in gve_rx_poll()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
A Dtx.c72 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()
/linux/drivers/net/can/c_can/
A Dc_can_main.c1078 int work_done = 0; in c_can_poll() local
1095 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_WARNING); in c_can_poll()
1100 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll()
1105 work_done += c_can_handle_state_change(dev, C_CAN_BUS_OFF); in c_can_poll()
1112 work_done += c_can_handle_state_change(dev, C_CAN_ERROR_PASSIVE); in c_can_poll()
1122 work_done += c_can_handle_state_change(dev, C_CAN_NO_ERROR); in c_can_poll()
1126 work_done += c_can_handle_bus_err(dev, curr & LEC_MASK); in c_can_poll()
1129 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll()
1133 if (work_done < quota) { in c_can_poll()
1134 napi_complete_done(napi, work_done); in c_can_poll()
[all …]
/linux/drivers/net/can/
A Dgrcan.c503 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()
/linux/drivers/net/ethernet/dec/tulip/
A 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()

Completed in 46 milliseconds

123456