Home
last modified time | relevance | path

Searched refs:tx_coalesce_usecs (Results 1 – 25 of 70) sorted by relevance

123

/Linux-v5.15/drivers/net/wireless/ath/wil6210/
Dethtool.c42 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce()
63 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
76 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce()
79 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c309 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
329 ec->tx_coalesce_usecs) in enic_coalesce_valid()
332 if ((ec->tx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid()
353 u32 tx_coalesce_usecs; in enic_set_coalesce() local
366 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce()
380 tx_coalesce_usecs); in enic_set_coalesce()
382 enic->tx_coalesce_usecs = tx_coalesce_usecs; in enic_set_coalesce()
Denic.h167 u32 tx_coalesce_usecs; member
/Linux-v5.15/drivers/net/ethernet/sfc/
Dethtool.c110 coalesce->tx_coalesce_usecs = tx_usecs; in efx_ethtool_get_coalesce()
142 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in efx_ethtool_set_coalesce()
144 if (coalesce->tx_coalesce_usecs != tx_usecs) in efx_ethtool_set_coalesce()
145 tx_usecs = coalesce->tx_coalesce_usecs; in efx_ethtool_set_coalesce()
/Linux-v5.15/drivers/s390/net/
Dqeth_ethtool.c116 WRITE_ONCE(queue->coalesce_usecs, coal->tx_coalesce_usecs); in __qeth_set_coalesce()
119 if (coal->tx_coalesce_usecs && in __qeth_set_coalesce()
122 qeth_tx_arm_timer(queue, coal->tx_coalesce_usecs); in __qeth_set_coalesce()
137 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_coalesce()
301 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce()
317 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_per_queue_coalesce()
/Linux-v5.15/drivers/staging/qlge/
Dqlge_ethtool.c199 if (le16_to_cpu(cqicb->irq_delay) != qdev->tx_coalesce_usecs || in qlge_update_ring_coalescing()
204 cqicb->irq_delay = cpu_to_le16(qdev->tx_coalesce_usecs); in qlge_update_ring_coalescing()
632 c->tx_coalesce_usecs = qdev->tx_coalesce_usecs; in qlge_get_coalesce()
663 if (c->tx_coalesce_usecs > qdev->tx_ring_size / 2) in qlge_set_coalesce()
670 qdev->tx_coalesce_usecs == c->tx_coalesce_usecs && in qlge_set_coalesce()
676 qdev->tx_coalesce_usecs = c->tx_coalesce_usecs; in qlge_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/hisilicon/
Dhip04_eth.c233 int tx_coalesce_usecs; member
498 unsigned long ns = priv->tx_coalesce_usecs * NSEC_PER_USEC / 2; in hip04_start_tx_timer()
805 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in hip04_get_coalesce()
818 if ((ec->tx_coalesce_usecs > HIP04_MAX_TX_COALESCE_USECS || in hip04_set_coalesce()
819 ec->tx_coalesce_usecs < HIP04_MIN_TX_COALESCE_USECS) || in hip04_set_coalesce()
824 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in hip04_set_coalesce()
946 priv->tx_coalesce_usecs = 200; in hip04_mac_probe()
/Linux-v5.15/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c429 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce()
462 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce()
474 tx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->tx_coalesce_usecs); in ionic_set_coalesce()
475 if (!tx_coal && coalesce->tx_coalesce_usecs) in ionic_set_coalesce()
487 lif->tx_coalesce_usecs = coalesce->tx_coalesce_usecs; in ionic_set_coalesce()
489 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
679 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
/Linux-v5.15/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c808 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in ixgbevf_get_coalesce()
810 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in ixgbevf_get_coalesce()
827 adapter->q_vector[0]->rx.count && ec->tx_coalesce_usecs) in ixgbevf_set_coalesce()
831 (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) in ixgbevf_set_coalesce()
844 if (ec->tx_coalesce_usecs > 1) in ixgbevf_set_coalesce()
845 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in ixgbevf_set_coalesce()
847 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in ixgbevf_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c562 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
567 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
595 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
599 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce()
605 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc_ethtool.c878 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igc_ethtool_get_coalesce()
880 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igc_ethtool_get_coalesce()
900 if (ec->tx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce()
901 (ec->tx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce()
902 ec->tx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce()
903 ec->tx_coalesce_usecs == 2) in igc_ethtool_set_coalesce()
906 if ((adapter->flags & IGC_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igc_ethtool_set_coalesce()
924 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce()
925 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igc_ethtool_set_coalesce()
927 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c857 ec->tx_coalesce_usecs = priv->tx_coal_timer[queue]; in __stmmac_get_coalesce()
860 ec->tx_coalesce_usecs = 0; in __stmmac_get_coalesce()
935 if ((ec->tx_coalesce_usecs == 0) && in __stmmac_set_coalesce()
939 if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || in __stmmac_set_coalesce()
950 ec->tx_coalesce_usecs; in __stmmac_set_coalesce()
956 ec->tx_coalesce_usecs; in __stmmac_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c421 cmd->tx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce()
444 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, in otx2_set_coalesce()
451 hw->cq_time_wait = ec->tx_coalesce_usecs; in otx2_set_coalesce()
452 else if (hw->cq_time_wait == ec->tx_coalesce_usecs) in otx2_set_coalesce()
456 ec->tx_coalesce_usecs); in otx2_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c326 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce()
347 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce()
348 coalesce->tx_coalesce_usecs > in bnad_set_coalesce()
381 if (bnad->tx_coalescing_timeo != coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
383 bnad->tx_coalescing_timeo = coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1095 ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; in nfp_net_get_coalesce()
1368 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) in nfp_net_set_coalesce()
1375 if (nfp_net_coalesce_para_check(ec->tx_coalesce_usecs * factor, in nfp_net_set_coalesce()
1385 nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; in nfp_net_set_coalesce()
/Linux-v5.15/net/ethtool/
Dcoalesce.c145 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply()
284 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in ethnl_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c1226 cmd->tx_coalesce_usecs = tx_coal->int_gl; in hns3_get_coalesce()
1257 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1277 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para()
1278 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para()
1281 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para()
1377 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1427 tx_coal->int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2198 if ((ec->tx_coalesce_usecs > IGB_MAX_ITR_USECS) || in igb_set_coalesce()
2199 ((ec->tx_coalesce_usecs > 3) && in igb_set_coalesce()
2200 (ec->tx_coalesce_usecs < IGB_MIN_ITR_USECS)) || in igb_set_coalesce()
2201 (ec->tx_coalesce_usecs == 2)) in igb_set_coalesce()
2204 if ((adapter->flags & IGB_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igb_set_coalesce()
2222 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igb_set_coalesce()
2223 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igb_set_coalesce()
2225 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igb_set_coalesce()
2256 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igb_get_coalesce()
2258 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igb_get_coalesce()
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/
Dqed_int.c1462 if (!cdev->tx_coalesce_usecs) in qed_init_cau_sb_entry()
1463 cdev->tx_coalesce_usecs = QED_CAU_DEF_TX_USECS; in qed_init_cau_sb_entry()
1476 if (cdev->tx_coalesce_usecs <= 0x7F) in qed_init_cau_sb_entry()
1478 else if (cdev->tx_coalesce_usecs <= 0xFF) in qed_init_cau_sb_entry()
1571 if (p_hwfn->cdev->tx_coalesce_usecs <= 0x7F) in qed_int_cau_conf_sb()
1573 else if (p_hwfn->cdev->tx_coalesce_usecs <= 0xFF) in qed_int_cau_conf_sb()
1577 timeset = (u8)(p_hwfn->cdev->tx_coalesce_usecs >> timer_res); in qed_int_cau_conf_sb()
/Linux-v5.15/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c752 ethcoal->tx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce()
770 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
793 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
/Linux-v5.15/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c679 ec->tx_coalesce_usecs = tx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; in __iavf_get_coalesce()
734 tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); in iavf_set_itr_per_queue()
781 } else if (ec->tx_coalesce_usecs == 0) { in __iavf_set_coalesce()
784 } else if ((ec->tx_coalesce_usecs < IAVF_MIN_ITR) || in __iavf_set_coalesce()
785 (ec->tx_coalesce_usecs > IAVF_MAX_ITR)) { in __iavf_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/sfc/falcon/
Dethtool.c590 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce()
622 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in ef4_ethtool_set_coalesce()
624 if (coalesce->tx_coalesce_usecs != tx_usecs) in ef4_ethtool_set_coalesce()
625 tx_usecs = coalesce->tx_coalesce_usecs; in ef4_ethtool_set_coalesce()
/Linux-v5.15/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c274 cvals->tx_coalesce_usecs = gfar_ticks2usecs(priv, txtime); in gfar_gcoalesce()
312 if (cvals->tx_coalesce_usecs > GFAR_MAX_COAL_USECS) { in gfar_scoalesce()
344 if ((cvals->tx_coalesce_usecs == 0) || in gfar_scoalesce()
356 gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs)); in gfar_scoalesce()
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c819 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce()
839 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce()
848 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
2124 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_per_coalesce()
2134 txc = (u16)coal->tx_coalesce_usecs; in qede_set_per_coalesce()
2233 coal->tx_coalesce_usecs = tx_coal; in qede_get_per_coalesce()
/Linux-v5.15/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c642 ec->tx_coalesce_usecs = interface->tx_itr & ~FM10K_ITR_ADAPTIVE; in fm10k_get_coalesce()
661 (ec->tx_coalesce_usecs > FM10K_ITR_MAX)) in fm10k_set_coalesce()
665 tx_itr = ec->tx_coalesce_usecs; in fm10k_set_coalesce()

123