Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dethtool.c39 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce()
57 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
70 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce()
73 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c307 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
327 ec->tx_coalesce_usecs) in enic_coalesce_valid()
330 if ((ec->tx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid()
349 u32 tx_coalesce_usecs; in enic_set_coalesce() local
362 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce()
376 tx_coalesce_usecs); in enic_set_coalesce()
378 enic->tx_coalesce_usecs = tx_coalesce_usecs; in enic_set_coalesce()
Denic.h167 u32 tx_coalesce_usecs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dethtool.c108 coalesce->tx_coalesce_usecs = tx_usecs; in efx_ethtool_get_coalesce()
138 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in efx_ethtool_set_coalesce()
140 if (coalesce->tx_coalesce_usecs != tx_usecs) in efx_ethtool_set_coalesce()
141 tx_usecs = coalesce->tx_coalesce_usecs; in efx_ethtool_set_coalesce()
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_ethtool.c198 if (le16_to_cpu(cqicb->irq_delay) != qdev->tx_coalesce_usecs || in ql_update_ring_coalescing()
203 cqicb->irq_delay = cpu_to_le16(qdev->tx_coalesce_usecs); in ql_update_ring_coalescing()
631 c->tx_coalesce_usecs = qdev->tx_coalesce_usecs; in ql_get_coalesce()
659 if (c->tx_coalesce_usecs > qdev->tx_ring_size / 2) in ql_set_coalesce()
666 qdev->tx_coalesce_usecs == c->tx_coalesce_usecs && in ql_set_coalesce()
672 qdev->tx_coalesce_usecs = c->tx_coalesce_usecs; in ql_set_coalesce()
/kernel/linux/linux-5.10/drivers/s390/net/
Dqeth_ethtool.c117 WRITE_ONCE(queue->coalesce_usecs, coal->tx_coalesce_usecs); in __qeth_set_coalesce()
120 if (coal->tx_coalesce_usecs && in __qeth_set_coalesce()
123 qeth_tx_arm_timer(queue, coal->tx_coalesce_usecs); in __qeth_set_coalesce()
136 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_coalesce()
300 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce()
316 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_per_queue_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c411 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce()
442 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce()
454 tx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->tx_coalesce_usecs); in ionic_set_coalesce()
455 if (!tx_coal && coalesce->tx_coalesce_usecs) in ionic_set_coalesce()
467 lif->tx_coalesce_usecs = coalesce->tx_coalesce_usecs; in ionic_set_coalesce()
469 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce()
650 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
Dionic_lif.h208 u32 tx_coalesce_usecs; /* what the user asked for */ member
/kernel/linux/linux-5.10/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()
803 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in hip04_get_coalesce()
814 if ((ec->tx_coalesce_usecs > HIP04_MAX_TX_COALESCE_USECS || in hip04_set_coalesce()
815 ec->tx_coalesce_usecs < HIP04_MIN_TX_COALESCE_USECS) || in hip04_set_coalesce()
820 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in hip04_set_coalesce()
942 priv->tx_coalesce_usecs = 200; in hip04_mac_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c700 ec->tx_coalesce_usecs = tx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; in __iavf_get_coalesce()
762 if (ec->tx_coalesce_usecs != itr_setting && in iavf_set_itr_per_queue()
770 tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); in iavf_set_itr_per_queue()
818 } else if (ec->tx_coalesce_usecs == 0) { in __iavf_set_coalesce()
821 } else if ((ec->tx_coalesce_usecs < IAVF_MIN_ITR) || in __iavf_set_coalesce()
822 (ec->tx_coalesce_usecs > IAVF_MAX_ITR)) { in __iavf_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c357 cmd->tx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce()
378 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, in otx2_set_coalesce()
385 hw->cq_time_wait = ec->tx_coalesce_usecs; in otx2_set_coalesce()
386 else if (hw->cq_time_wait == ec->tx_coalesce_usecs) in otx2_set_coalesce()
390 ec->tx_coalesce_usecs); in otx2_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c806 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in ixgbevf_get_coalesce()
808 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in ixgbevf_get_coalesce()
823 adapter->q_vector[0]->rx.count && ec->tx_coalesce_usecs) in ixgbevf_set_coalesce()
827 (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) in ixgbevf_set_coalesce()
840 if (ec->tx_coalesce_usecs > 1) in ixgbevf_set_coalesce()
841 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in ixgbevf_set_coalesce()
843 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in ixgbevf_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_ethtool.c871 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igc_ethtool_get_coalesce()
873 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igc_ethtool_get_coalesce()
891 if (ec->tx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce()
892 (ec->tx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce()
893 ec->tx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce()
894 ec->tx_coalesce_usecs == 2) in igc_ethtool_set_coalesce()
897 if ((adapter->flags & IGC_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igc_ethtool_set_coalesce()
915 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce()
916 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igc_ethtool_set_coalesce()
918 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c561 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
566 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
592 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
596 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce()
602 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c324 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce()
343 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce()
344 coalesce->tx_coalesce_usecs > in bnad_set_coalesce()
377 if (bnad->tx_coalescing_timeo != coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
379 bnad->tx_coalescing_timeo = coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1101 ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; in nfp_net_get_coalesce()
1377 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) in nfp_net_set_coalesce()
1383 if (ec->tx_coalesce_usecs * factor >= ((1 << 16) - 1)) in nfp_net_set_coalesce()
1395 nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; in nfp_net_set_coalesce()
/kernel/linux/linux-5.10/net/ethtool/
Dcoalesce.c139 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply()
270 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in ethnl_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c1143 cmd->tx_coalesce_usecs = tx_vector->tx_group.coal.int_gl; in hns3_get_coalesce_per_queue()
1170 if (cmd->tx_coalesce_usecs > HNS3_INT_GL_MAX) { in hns3_check_gl_coalesce_para()
1184 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para()
1185 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para()
1188 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para()
1269 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c775 ec->tx_coalesce_usecs = priv->tx_coal_timer; in stmmac_get_coalesce()
803 if ((ec->tx_coalesce_usecs == 0) && in stmmac_set_coalesce()
807 if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || in stmmac_set_coalesce()
813 priv->tx_coal_timer = ec->tx_coalesce_usecs; in stmmac_set_coalesce()
/kernel/linux/linux-5.10/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()
2254 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igb_get_coalesce()
2256 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igb_get_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_int.c1442 if (!cdev->tx_coalesce_usecs) in qed_init_cau_sb_entry()
1443 cdev->tx_coalesce_usecs = QED_CAU_DEF_TX_USECS; in qed_init_cau_sb_entry()
1456 if (cdev->tx_coalesce_usecs <= 0x7F) in qed_init_cau_sb_entry()
1458 else if (cdev->tx_coalesce_usecs <= 0xFF) in qed_init_cau_sb_entry()
1551 if (p_hwfn->cdev->tx_coalesce_usecs <= 0x7F) in qed_int_cau_conf_sb()
1553 else if (p_hwfn->cdev->tx_coalesce_usecs <= 0xFF) in qed_int_cau_conf_sb()
1557 timeset = (u8)(p_hwfn->cdev->tx_coalesce_usecs >> timer_res); in qed_int_cau_conf_sb()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c750 ethcoal->tx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce()
768 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
789 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dethtool.c588 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce()
618 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in ef4_ethtool_set_coalesce()
620 if (coalesce->tx_coalesce_usecs != tx_usecs) in ef4_ethtool_set_coalesce()
621 tx_usecs = coalesce->tx_coalesce_usecs; in ef4_ethtool_set_coalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c272 cvals->tx_coalesce_usecs = gfar_ticks2usecs(priv, txtime); in gfar_gcoalesce()
308 if (cvals->tx_coalesce_usecs > GFAR_MAX_COAL_USECS) { in gfar_scoalesce()
340 if ((cvals->tx_coalesce_usecs == 0) || in gfar_scoalesce()
352 gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs)); in gfar_scoalesce()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c639 ec->tx_coalesce_usecs = interface->tx_itr & ~FM10K_ITR_ADAPTIVE; in fm10k_get_coalesce()
656 (ec->tx_coalesce_usecs > FM10K_ITR_MAX)) in fm10k_set_coalesce()
660 tx_itr = ec->tx_coalesce_usecs; in fm10k_set_coalesce()

123