/linux-6.1.9/drivers/net/wireless/ath/wil6210/ |
D | ethtool.c | 42 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-6.1.9/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 298 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce() 318 ec->tx_coalesce_usecs) in enic_coalesce_valid() 321 if ((ec->tx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid() 342 u32 tx_coalesce_usecs; in enic_set_coalesce() local 355 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce() 369 tx_coalesce_usecs); in enic_set_coalesce() 371 enic->tx_coalesce_usecs = tx_coalesce_usecs; in enic_set_coalesce()
|
D | enic.h | 154 u32 tx_coalesce_usecs; member
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | ethtool.c | 110 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-6.1.9/drivers/net/ethernet/sfc/ |
D | ethtool.c | 110 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-6.1.9/drivers/s390/net/ |
D | qeth_ethtool.c | 116 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() 303 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce() 319 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_per_queue_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/google/gve/ |
D | gve_ethtool.c | 553 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in gve_get_coalesce() 565 u32 tx_usecs_orig = priv->tx_coalesce_usecs; in gve_set_coalesce() 572 if (ec->tx_coalesce_usecs > GVE_MAX_ITR_INTERVAL_DQO || in gve_set_coalesce() 575 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in gve_set_coalesce() 578 if (tx_usecs_orig != priv->tx_coalesce_usecs) { in gve_set_coalesce() 584 priv->tx_coalesce_usecs); in gve_set_coalesce()
|
/linux-6.1.9/drivers/staging/qlge/ |
D | qlge_ethtool.c | 199 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-6.1.9/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 414 coalesce->tx_coalesce_usecs = lif->tx_coalesce_usecs; in ionic_get_coalesce() 447 (coalesce->tx_coalesce_usecs != lif->rx_coalesce_usecs || in ionic_set_coalesce() 459 tx_coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->tx_coalesce_usecs); in ionic_set_coalesce() 460 if (!tx_coal && coalesce->tx_coalesce_usecs) in ionic_set_coalesce() 472 lif->tx_coalesce_usecs = coalesce->tx_coalesce_usecs; in ionic_set_coalesce() 474 lif->tx_coalesce_usecs = coalesce->rx_coalesce_usecs; in ionic_set_coalesce() 668 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 233 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-6.1.9/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 808 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-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 572 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce() 577 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 605 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce() 609 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce() 615 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 884 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igc_ethtool_get_coalesce() 886 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igc_ethtool_get_coalesce() 906 if (ec->tx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce() 907 (ec->tx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce() 908 ec->tx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce() 909 ec->tx_coalesce_usecs == 2) in igc_ethtool_set_coalesce() 912 if ((adapter->flags & IGC_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igc_ethtool_set_coalesce() 930 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce() 931 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igc_ethtool_set_coalesce() 933 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 867 ec->tx_coalesce_usecs = priv->tx_coal_timer[queue]; in __stmmac_get_coalesce() 870 ec->tx_coalesce_usecs = 0; in __stmmac_get_coalesce() 945 if ((ec->tx_coalesce_usecs == 0) && in __stmmac_set_coalesce() 949 if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || in __stmmac_set_coalesce() 960 ec->tx_coalesce_usecs; in __stmmac_set_coalesce() 966 ec->tx_coalesce_usecs; in __stmmac_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/brocade/bna/ |
D | bnad_ethtool.c | 326 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-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 456 cmd->tx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce() 506 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, in otx2_set_coalesce() 513 hw->cq_time_wait = ec->tx_coalesce_usecs; in otx2_set_coalesce() 514 else if (hw->cq_time_wait == ec->tx_coalesce_usecs) in otx2_set_coalesce() 518 ec->tx_coalesce_usecs); in otx2_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/ |
D | funeth_ethtool.c | 475 coal->tx_coalesce_usecs = fp->tx_coal_usec; in fun_get_coalesce() 492 coal->tx_coalesce_usecs > FUN_DB_INTCOAL_USEC_M || in fun_set_coalesce() 494 (coal->tx_coalesce_usecs | coal->tx_max_coalesced_frames) == 0) in fun_set_coalesce() 499 (coal->tx_max_coalesced_frames > 1 && !coal->tx_coalesce_usecs)) in fun_set_coalesce() 504 fp->tx_coal_usec = coal->tx_coalesce_usecs; in fun_set_coalesce()
|
/linux-6.1.9/net/ethtool/ |
D | coalesce.c | 145 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply() 284 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in ethnl_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 1308 ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; in nfp_net_get_coalesce() 1586 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) in nfp_net_set_coalesce() 1593 if (nfp_net_coalesce_para_check(ec->tx_coalesce_usecs * factor, in nfp_net_set_coalesce() 1603 nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; in nfp_net_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 715 ec->tx_coalesce_usecs = tx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; in __iavf_get_coalesce() 781 if (ec->tx_coalesce_usecs != itr_setting && in iavf_set_itr_per_queue() 789 tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); in iavf_set_itr_per_queue() 833 } else if (ec->tx_coalesce_usecs == 0) { in __iavf_set_coalesce() 836 } else if ((ec->tx_coalesce_usecs < IAVF_MIN_ITR) || in __iavf_set_coalesce() 837 (ec->tx_coalesce_usecs > IAVF_MAX_ITR)) { in __iavf_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2200 if ((ec->tx_coalesce_usecs > IGB_MAX_ITR_USECS) || in igb_set_coalesce() 2201 ((ec->tx_coalesce_usecs > 3) && in igb_set_coalesce() 2202 (ec->tx_coalesce_usecs < IGB_MIN_ITR_USECS)) || in igb_set_coalesce() 2203 (ec->tx_coalesce_usecs == 2)) in igb_set_coalesce() 2206 if ((adapter->flags & IGB_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igb_set_coalesce() 2224 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igb_set_coalesce() 2225 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igb_set_coalesce() 2227 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igb_set_coalesce() 2258 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in igb_get_coalesce() 2260 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in igb_get_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_int.c | 1462 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-6.1.9/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 1359 cmd->tx_coalesce_usecs = tx_coal->int_gl; in hns3_get_coalesce() 1390 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para() 1410 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para() 1411 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para() 1414 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para() 1532 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1582 tx_coal->int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 756 ethcoal->tx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce() 774 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce() 797 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 274 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()
|