Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_ethtool.c221 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 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/drivers/net/ethernet/hisilicon/
H A 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()
810 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in hip04_get_coalesce()
823 if ((ec->tx_coalesce_usecs > HIP04_MAX_TX_COALESCE_USECS || in hip04_set_coalesce()
824 ec->tx_coalesce_usecs < HIP04_MIN_TX_COALESCE_USECS) || in hip04_set_coalesce()
829 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in hip04_set_coalesce()
949 priv->tx_coalesce_usecs = 200; in hip04_mac_probe()
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ethtool.c361 ec->tx_coalesce_usecs = wx->tx_itr_setting; in wx_get_coalesce()
363 ec->tx_coalesce_usecs = wx->tx_itr_setting >> 2; in wx_get_coalesce()
416 if (ec->tx_coalesce_usecs) in wx_set_coalesce()
446 (ec->tx_coalesce_usecs > (max_eitr >> 2))) in wx_set_coalesce()
461 if (ec->tx_coalesce_usecs > 1) in wx_set_coalesce()
462 wx->tx_itr_setting = ec->tx_coalesce_usecs << 2; in wx_set_coalesce()
464 wx->tx_itr_setting = ec->tx_coalesce_usecs; in wx_set_coalesce()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c770 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/microsoft/mana/
H A Dmana_ethtool.c462 ec->tx_coalesce_usecs = apc->intr_modr_tx_usec; in mana_get_coalesce()
501 ec->rx_coalesce_usecs || ec->tx_coalesce_usecs || in mana_set_coalesce()
521 ec->tx_coalesce_usecs > MANA_INTR_MODR_USEC_MAX) { in mana_set_coalesce()
538 ec->tx_coalesce_usecs != apc->intr_modr_tx_usec || in mana_set_coalesce()
549 apc->intr_modr_tx_usec = ec->tx_coalesce_usecs; in mana_set_coalesce()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c800 ec->tx_coalesce_usecs = priv->tx_coal_timer[queue]; in __stmmac_get_coalesce()
803 ec->tx_coalesce_usecs = 0; in __stmmac_get_coalesce()
878 if ((ec->tx_coalesce_usecs == 0) && in __stmmac_set_coalesce()
882 if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || in __stmmac_set_coalesce()
893 ec->tx_coalesce_usecs; in __stmmac_set_coalesce()
899 ec->tx_coalesce_usecs; in __stmmac_set_coalesce()
/linux/drivers/net/ethernet/brocade/bna/
H A 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/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c893 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/mellanox/mlx5/core/
H A Den_ethtool.c637 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
696 coal->tx_coalesce_usecs = cur_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce()
700 coal->tx_coalesce_usecs = c->tx_cq_moder.usec; in mlx5e_ethtool_get_per_queue_coalesce()
779 if (coal->tx_coalesce_usecs > MLX5E_MAX_COAL_TIME || in mlx5e_ethtool_set_coalesce()
784 MLX5E_MAX_COAL_TIME, coal->tx_coalesce_usecs, in mlx5e_ethtool_set_coalesce()
853 tx_moder->usec = coal->tx_coalesce_usecs; in mlx5e_ethtool_set_coalesce()
896 if (coal->tx_coalesce_usecs > MLX5E_MAX_COAL_TIME || in mlx5e_ethtool_set_per_queue_coalesce()
943 c->tx_cq_moder.usec = coal->tx_coalesce_usecs; in mlx5e_ethtool_set_per_queue_coalesce()
948 coal->tx_coalesce_usecs, in mlx5e_ethtool_set_per_queue_coalesce()
/linux/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c2200 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 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/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_ethtool.c1375 cmd->tx_coalesce_usecs = tx_coal->int_gl; in hns3_get_coalesce()
1406 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1426 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para()
1427 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para()
1430 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para()
1548 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1598 tx_coal->int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c584 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 Dgianfar_ethtool.c278 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/net/ethtool/
H A Dcoalesce.c231 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply()
550 ethnl_update_u32(&coalesce.tx_coalesce_usecs, in __ethnl_set_coalesce()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1886 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()
/linux/drivers/net/ethernet/cisco/enic/
H A Denic.h258 u32 tx_coalesce_usecs; member
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c579 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/huawei/hinic/
H A Dhinic_ethtool.c658 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/xilinx/
H A Dll_temac_main.c1334 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 Didpf_ethtool.c1343 ec->tx_coalesce_usecs = q_vector->tx_itr_value; in __idpf_get_q_coalesce()
1448 coalesce_usecs = ec->tx_coalesce_usecs; in __idpf_set_q_coalesce()
1488 q_coal->tx_coalesce_usecs = coalesce_usecs; in __idpf_set_q_coalesce()
/linux/drivers/net/ethernet/socionext/
H A Dnetsec.c555 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/amazon/ena/
H A Dena_com.h991 u32 tx_coalesce_usecs);
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c991 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()

123