| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_ethtool.c | 221 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_coalesce() 237 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_per_queue_coalesce() 260 if (coal->tx_coalesce_usecs && in emac_set_coalesce() 261 coal->tx_coalesce_usecs < ICSSG_MIN_COALESCE_USECS) { in emac_set_coalesce() 264 coal->tx_coalesce_usecs = ICSSG_MIN_COALESCE_USECS; in emac_set_coalesce() 268 tx_chn->tx_pace_timeout_ns = coal->tx_coalesce_usecs * 1000; in emac_set_coalesce() 285 if (coal->tx_coalesce_usecs && in emac_set_per_queue_coalesce() 286 coal->tx_coalesce_usecs < ICSSG_MIN_COALESCE_USECS) { in emac_set_per_queue_coalesce() 289 coal->tx_coalesce_usecs = ICSSG_MIN_COALESCE_USECS; in emac_set_per_queue_coalesce() 292 tx_chn->tx_pace_timeout_ns = coal->tx_coalesce_usecs * 1000; in emac_set_per_queue_coalesce()
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A 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/drivers/net/ethernet/google/gve/ |
| H A D | gve_ethtool.c | 770 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in gve_get_coalesce() 782 u32 tx_usecs_orig = priv->tx_coalesce_usecs; in gve_set_coalesce() 789 if (ec->tx_coalesce_usecs > GVE_MAX_ITR_INTERVAL_DQO || in gve_set_coalesce() 792 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in gve_set_coalesce() 795 if (tx_usecs_orig != priv->tx_coalesce_usecs) { in gve_set_coalesce() 801 priv->tx_coalesce_usecs); in gve_set_coalesce()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_ethtool.c | 893 ec->tx_coalesce_usecs = igc_ethtool_get_previous_tx_coalesce(adapter); in igc_ethtool_get_coalesce() 912 if (ec->tx_coalesce_usecs > IGC_MAX_ITR_USECS || in igc_ethtool_set_coalesce() 913 (ec->tx_coalesce_usecs > 3 && in igc_ethtool_set_coalesce() 914 ec->tx_coalesce_usecs < IGC_MIN_ITR_USECS) || in igc_ethtool_set_coalesce() 915 ec->tx_coalesce_usecs == 2) in igc_ethtool_set_coalesce() 919 ec->tx_coalesce_usecs != igc_ethtool_get_previous_tx_coalesce(adapter)) { in igc_ethtool_set_coalesce() 940 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igc_ethtool_set_coalesce() 941 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igc_ethtool_set_coalesce() 943 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in igc_ethtool_set_coalesce()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A 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/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ethtool.c | 471 cmd->tx_coalesce_usecs = hw->cq_time_wait; in otx2_get_coalesce() 521 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, in otx2_set_coalesce() 528 hw->cq_time_wait = ec->tx_coalesce_usecs; in otx2_set_coalesce() 529 else if (hw->cq_time_wait == ec->tx_coalesce_usecs) in otx2_set_coalesce() 533 ec->tx_coalesce_usecs); in otx2_set_coalesce()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A 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/drivers/net/ethernet/qlogic/qed/ |
| H A 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/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_ethtool.c | 1376 cmd->tx_coalesce_usecs = tx_coal->int_gl; in hns3_get_coalesce() 1407 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para() 1427 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para() 1428 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para() 1431 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para() 1549 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1599 tx_coal->int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | ethtool.c | 584 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce() 616 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in ef4_ethtool_set_coalesce() 618 if (coalesce->tx_coalesce_usecs != tx_usecs) in ef4_ethtool_set_coalesce() 619 tx_usecs = coalesce->tx_coalesce_usecs; in ef4_ethtool_set_coalesce()
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 278 cvals->tx_coalesce_usecs = gfar_ticks2usecs(priv, txtime); in gfar_gcoalesce() 316 if (cvals->tx_coalesce_usecs > GFAR_MAX_COAL_USECS) { in gfar_scoalesce() 348 if ((cvals->tx_coalesce_usecs == 0) || in gfar_scoalesce() 360 gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs)); in gfar_scoalesce()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 1886 ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; in nfp_net_get_coalesce() 2167 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) { in nfp_net_set_coalesce() 2183 if (nfp_net_coalesce_para_check(ec->tx_coalesce_usecs * factor)) { in nfp_net_set_coalesce() 2199 nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; in nfp_net_set_coalesce()
|
| H A D | nfp_net.h | 684 u32 tx_coalesce_usecs; member
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_ethtool.c | 658 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce() 670 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit() 767 if (coal->tx_coalesce_usecs || coal->tx_max_coalesced_frames) { in __hinic_set_coalesce() 769 (u8)(coal->tx_coalesce_usecs / COALESCE_TIMER_CFG_UNIT); in __hinic_set_coalesce()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 579 ec->tx_coalesce_usecs = tx_ring->itr_setting & ~IAVF_ITR_DYNAMIC; in __iavf_get_coalesce() 645 if (ec->tx_coalesce_usecs != itr_setting && in iavf_set_itr_per_queue() 653 tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); in iavf_set_itr_per_queue() 693 } else if (ec->tx_coalesce_usecs > IAVF_MAX_ITR) { in __iavf_set_coalesce()
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | ll_temac_main.c | 1334 ec->tx_coalesce_usecs = (lp->coalesce_delay_tx * 512) / 100; in ll_temac_ethtools_get_coalesce() 1362 if (ec->tx_coalesce_usecs) in ll_temac_ethtools_set_coalesce() 1364 min(255U, (ec->tx_coalesce_usecs * 100) / 512); in ll_temac_ethtools_set_coalesce()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 1351 ec->tx_coalesce_usecs = q_vector->tx_itr_value; in __idpf_get_q_coalesce() 1456 coalesce_usecs = ec->tx_coalesce_usecs; in __idpf_set_q_coalesce() 1496 q_coal->tx_coalesce_usecs = coalesce_usecs; in __idpf_set_q_coalesce()
|
| H A D | idpf.h | 458 u32 tx_coalesce_usecs; member
|
| /linux/drivers/net/ethernet/socionext/ |
| H A D | netsec.c | 555 if (priv->et_coalesce.tx_coalesce_usecs < 50) in netsec_et_set_coalesce() 556 priv->et_coalesce.tx_coalesce_usecs = 50; in netsec_et_set_coalesce() 563 priv->et_coalesce.tx_coalesce_usecs); in netsec_et_set_coalesce() 2091 priv->et_coalesce.tx_coalesce_usecs = 500; in netsec_probe()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ethtool.c | 2544 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in ixgbe_get_coalesce() 2546 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in ixgbe_get_coalesce() 2594 if (ec->tx_coalesce_usecs) in ixgbe_set_coalesce() 2602 (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) in ixgbe_set_coalesce() 2615 if (ec->tx_coalesce_usecs > 1) in ixgbe_set_coalesce() 2616 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in ixgbe_set_coalesce() 2618 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in ixgbe_set_coalesce()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 991 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce() 1018 if (coal->tx_coalesce_usecs > MLX4_EN_MAX_COAL_TIME || in mlx4_en_set_coalesce() 1044 if (coal->tx_coalesce_usecs != priv->tx_usecs || in mlx4_en_set_coalesce() 1046 priv->tx_usecs = coal->tx_coalesce_usecs; in mlx4_en_set_coalesce()
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_com.h | 991 u32 tx_coalesce_usecs);
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bcmsysport.c | 581 reg |= DIV_ROUND_UP(ec->tx_coalesce_usecs * 1000, 8192) << in bcm_sysport_set_tx_coalesce() 596 ec->tx_coalesce_usecs = (reg >> RING_TIMEOUT_SHIFT) * 8192 / 1000; in bcm_sysport_get_coalesce() 623 ec->tx_coalesce_usecs > (RING_TIMEOUT_MASK * 8) + 1 || in bcm_sysport_set_coalesce() 628 if ((ec->tx_coalesce_usecs == 0 && ec->tx_max_coalesced_frames == 0) || in bcm_sysport_set_coalesce()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_83xx_hw.c | 2271 u32 tx_coalesce_usecs, tx_max_frames; in qlcnic_83xx_config_intr_coal() local 2277 tx_coalesce_usecs = ethcoal->tx_coalesce_usecs; in qlcnic_83xx_config_intr_coal() 2286 coal->tx_time_us = tx_coalesce_usecs; in qlcnic_83xx_config_intr_coal() 2288 } else if ((coal->tx_time_us == tx_coalesce_usecs) && in qlcnic_83xx_config_intr_coal() 2297 coal->tx_time_us = tx_coalesce_usecs; in qlcnic_83xx_config_intr_coal()
|
| /linux/arch/um/drivers/ |
| H A D | vector_kern.c | 1483 ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ; in vector_get_coalesce() 1494 vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000; in vector_set_coalesce()
|