Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/net/wireless/ath/wil6210/
Dethtool.c69 cp->tx_coalesce_usecs = tx_itr_val; in wil_ethtoolops_get_coalesce()
82 cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); in wil_ethtoolops_set_coalesce()
94 cp->tx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) in wil_ethtoolops_set_coalesce()
97 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c308 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
347 ec->tx_coalesce_usecs) in enic_coalesce_valid()
350 if ((ec->tx_coalesce_usecs > coalesce_usecs_max) || in enic_coalesce_valid()
369 u32 tx_coalesce_usecs; in enic_set_coalesce() local
382 tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, in enic_set_coalesce()
396 tx_coalesce_usecs); in enic_set_coalesce()
398 enic->tx_coalesce_usecs = tx_coalesce_usecs; in enic_set_coalesce()
Denic.h169 u32 tx_coalesce_usecs; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qlge/
Dqlge_ethtool.c199 if (le16_to_cpu(cqicb->irq_delay) != qdev->tx_coalesce_usecs || in ql_update_ring_coalescing()
205 cqicb->irq_delay = cpu_to_le16(qdev->tx_coalesce_usecs); in ql_update_ring_coalescing()
626 c->tx_coalesce_usecs = qdev->tx_coalesce_usecs; in ql_get_coalesce()
654 if (c->tx_coalesce_usecs > qdev->tx_ring_size / 2) in ql_set_coalesce()
661 qdev->tx_coalesce_usecs == c->tx_coalesce_usecs && in ql_set_coalesce()
667 qdev->tx_coalesce_usecs = c->tx_coalesce_usecs; in ql_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c234 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
239 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
273 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
277 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce()
283 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/hisilicon/
Dhip04_eth.c169 int tx_coalesce_usecs; member
418 unsigned long ns = priv->tx_coalesce_usecs * NSEC_PER_USEC / 2; in hip04_start_tx_timer()
709 ec->tx_coalesce_usecs = priv->tx_coalesce_usecs; in hip04_get_coalesce()
734 if ((ec->tx_coalesce_usecs > HIP04_MAX_TX_COALESCE_USECS || in hip04_set_coalesce()
735 ec->tx_coalesce_usecs < HIP04_MIN_TX_COALESCE_USECS) || in hip04_set_coalesce()
740 priv->tx_coalesce_usecs = ec->tx_coalesce_usecs; in hip04_set_coalesce()
852 priv->tx_coalesce_usecs = 200; in hip04_mac_probe()
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c444 ec->tx_coalesce_usecs = tx_ring->itr_setting & ~I40E_ITR_DYNAMIC; in __i40evf_get_coalesce()
497 tx_ring->itr_setting = ITR_REG_ALIGN(ec->tx_coalesce_usecs); in i40evf_set_itr_per_queue()
548 if (ec->tx_coalesce_usecs == 0) { in __i40evf_set_coalesce()
551 } else if ((ec->tx_coalesce_usecs < I40E_MIN_ITR) || in __i40evf_set_coalesce()
552 (ec->tx_coalesce_usecs > I40E_MAX_ITR)) { in __i40evf_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c812 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in ixgbevf_get_coalesce()
814 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in ixgbevf_get_coalesce()
829 adapter->q_vector[0]->rx.count && ec->tx_coalesce_usecs) in ixgbevf_set_coalesce()
833 (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) in ixgbevf_set_coalesce()
846 if (ec->tx_coalesce_usecs > 1) in ixgbevf_set_coalesce()
847 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in ixgbevf_set_coalesce()
849 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in ixgbevf_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c851 cmd->tx_coalesce_usecs = tx_vector->tx_group.coal.int_gl; in hns3_get_coalesce_per_queue()
878 if (cmd->tx_coalesce_usecs > HNS3_INT_GL_MAX) { in hns3_check_gl_coalesce_para()
892 tx_gl = hns3_gl_round_down(cmd->tx_coalesce_usecs); in hns3_check_gl_coalesce_para()
893 if (tx_gl != cmd->tx_coalesce_usecs) { in hns3_check_gl_coalesce_para()
896 cmd->tx_coalesce_usecs, tx_gl); in hns3_check_gl_coalesce_para()
977 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1014 ec->tx_coalesce_usecs = nn->tx_coalesce_usecs; in nfp_net_get_coalesce()
1181 if (!ec->tx_coalesce_usecs && !ec->tx_max_coalesced_frames) in nfp_net_set_coalesce()
1187 if (ec->tx_coalesce_usecs * factor >= ((1 << 16) - 1)) in nfp_net_set_coalesce()
1199 nn->tx_coalesce_usecs = ec->tx_coalesce_usecs; in nfp_net_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c333 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce()
352 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce()
353 coalesce->tx_coalesce_usecs > in bnad_set_coalesce()
386 if (bnad->tx_coalescing_timeo != coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
388 bnad->tx_coalescing_timeo = coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c741 ec->tx_coalesce_usecs = priv->tx_coal_timer; in stmmac_get_coalesce()
774 if ((ec->tx_coalesce_usecs == 0) && in stmmac_set_coalesce()
778 if ((ec->tx_coalesce_usecs > STMMAC_MAX_COAL_TX_TICK) || in stmmac_set_coalesce()
791 priv->tx_coal_timer = ec->tx_coalesce_usecs; in stmmac_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_int.c1278 if (!cdev->tx_coalesce_usecs) in qed_init_cau_sb_entry()
1279 cdev->tx_coalesce_usecs = QED_CAU_DEF_TX_USECS; in qed_init_cau_sb_entry()
1291 if (cdev->tx_coalesce_usecs <= 0x7F) in qed_init_cau_sb_entry()
1293 else if (cdev->tx_coalesce_usecs <= 0xFF) in qed_init_cau_sb_entry()
1387 if (p_hwfn->cdev->tx_coalesce_usecs <= 0x7F) in qed_int_cau_conf_sb()
1389 else if (p_hwfn->cdev->tx_coalesce_usecs <= 0xFF) in qed_int_cau_conf_sb()
1393 timeset = (u8)(p_hwfn->cdev->tx_coalesce_usecs >> timer_res); in qed_int_cau_conf_sb()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2202 if ((ec->tx_coalesce_usecs > IGB_MAX_ITR_USECS) || in igb_set_coalesce()
2203 ((ec->tx_coalesce_usecs > 3) && in igb_set_coalesce()
2204 (ec->tx_coalesce_usecs < IGB_MIN_ITR_USECS)) || in igb_set_coalesce()
2205 (ec->tx_coalesce_usecs == 2)) in igb_set_coalesce()
2208 if ((adapter->flags & IGB_FLAG_QUEUE_PAIRS) && ec->tx_coalesce_usecs) in igb_set_coalesce()
2226 else if (ec->tx_coalesce_usecs && ec->tx_coalesce_usecs <= 3) in igb_set_coalesce()
2227 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in igb_set_coalesce()
2229 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-v4.19/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c766 ethcoal->tx_coalesce_usecs > 0xffff || in netxen_set_intr_coalesce()
801 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
822 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c292 cvals->tx_coalesce_usecs = gfar_ticks2usecs(priv, txtime); in gfar_gcoalesce()
357 if (cvals->tx_coalesce_usecs > GFAR_MAX_COAL_USECS) { in gfar_scoalesce()
389 if ((cvals->tx_coalesce_usecs == 0) || in gfar_scoalesce()
401 gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs)); in gfar_scoalesce()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c591 coalesce->tx_coalesce_usecs = tx_usecs; in ef4_ethtool_get_coalesce()
624 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in ef4_ethtool_set_coalesce()
626 if (coalesce->tx_coalesce_usecs != tx_usecs) in ef4_ethtool_set_coalesce()
627 tx_usecs = coalesce->tx_coalesce_usecs; in ef4_ethtool_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-ethtool.c172 (ec->tx_coalesce_usecs) || (ec->tx_coalesce_usecs_high) || in xlgmac_ethtool_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c403 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
434 coal->tx_coalesce_usecs, in mlx5e_set_priv_channels_coalesce()
456 if (coal->tx_coalesce_usecs > MLX5E_MAX_COAL_TIME || in mlx5e_ethtool_set_coalesce()
479 tx_moder->usec = coal->tx_coalesce_usecs; in mlx5e_ethtool_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c613 coalesce->tx_coalesce_usecs = tx_usecs; in efx_ethtool_get_coalesce()
646 rx_may_override_tx = (coalesce->tx_coalesce_usecs == tx_usecs && in efx_ethtool_set_coalesce()
648 if (coalesce->tx_coalesce_usecs != tx_usecs) in efx_ethtool_set_coalesce()
649 tx_usecs = coalesce->tx_coalesce_usecs; in efx_ethtool_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c642 ec->tx_coalesce_usecs = interface->tx_itr & ~FM10K_ITR_ADAPTIVE; in fm10k_get_coalesce()
660 (ec->tx_coalesce_usecs > FM10K_ITR_MAX)) in fm10k_set_coalesce()
664 tx_itr = ec->tx_coalesce_usecs; in fm10k_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c311 coalesce->tx_coalesce_usecs = in ena_get_coalesce()
378 coalesce->tx_coalesce_usecs); in ena_set_coalesce()
Dena_com.h887 u32 tx_coalesce_usecs);
/Linux-v4.19/drivers/net/ethernet/socionext/
Dnetsec.c505 if (priv->et_coalesce.tx_coalesce_usecs < 50) in netsec_et_set_coalesce()
506 priv->et_coalesce.tx_coalesce_usecs = 50; in netsec_et_set_coalesce()
513 priv->et_coalesce.tx_coalesce_usecs); in netsec_et_set_coalesce()
1641 priv->et_coalesce.tx_coalesce_usecs = 500; in netsec_probe()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2287 ec->tx_coalesce_usecs = adapter->tx_itr_setting; in ixgbe_get_coalesce()
2289 ec->tx_coalesce_usecs = adapter->tx_itr_setting >> 2; in ixgbe_get_coalesce()
2335 if (ec->tx_coalesce_usecs) in ixgbe_set_coalesce()
2343 (ec->tx_coalesce_usecs > (IXGBE_MAX_EITR >> 2))) in ixgbe_set_coalesce()
2356 if (ec->tx_coalesce_usecs > 1) in ixgbe_set_coalesce()
2357 adapter->tx_itr_setting = ec->tx_coalesce_usecs << 2; in ixgbe_set_coalesce()
2359 adapter->tx_itr_setting = ec->tx_coalesce_usecs; in ixgbe_set_coalesce()

123