Home
last modified time | relevance | path

Searched refs:coal (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c226 struct ethtool_coalesce *coal) in aq_ethtool_get_coalesce() argument
233 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
234 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
235 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
236 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
238 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
239 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
240 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
241 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
247 struct ethtool_coalesce *coal) in aq_ethtool_set_coalesce() argument
[all …]
/Linux-v4.19/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c78 struct ethtool_coalesce *coal) in ipoib_get_coalesce() argument
82 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
83 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce()
89 struct ethtool_coalesce *coal) in ipoib_set_coalesce() argument
98 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce()
99 coal->rx_max_coalesced_frames > 0xffff) in ipoib_set_coalesce()
103 coal->rx_max_coalesced_frames, in ipoib_set_coalesce()
104 coal->rx_coalesce_usecs); in ipoib_set_coalesce()
110 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
111 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c390 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_coalesce() argument
398 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce()
399 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce()
400 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce()
403 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
404 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce()
405 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce()
411 struct ethtool_coalesce *coal) in mlx5e_get_coalesce() argument
415 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_get_coalesce()
422 mlx5e_set_priv_channels_coalesce(struct mlx5e_priv *priv, struct ethtool_coalesce *coal) in mlx5e_set_priv_channels_coalesce() argument
[all …]
Den.h953 struct ethtool_coalesce *coal);
955 struct ethtool_coalesce *coal);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1001 struct ethtool_coalesce *coal) in mlx4_en_get_coalesce() argument
1005 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce()
1006 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce()
1007 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce()
1009 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
1010 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce()
1012 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
1013 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce()
1014 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
1015 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dethtool.c102 struct ethtool_coalesce *coal) in mlx5i_set_coalesce() argument
106 return mlx5e_ethtool_set_coalesce(priv, coal); in mlx5i_set_coalesce()
110 struct ethtool_coalesce *coal) in mlx5i_get_coalesce() argument
114 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5i_get_coalesce()
/Linux-v4.19/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c789 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce()
790 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
792 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
795 adapter->coal.flags = 0; in netxen_set_intr_coalesce()
796 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
798 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
801 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
802 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce()
821 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
822 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c847 tx_vector->tx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue()
849 rx_vector->rx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue()
851 cmd->tx_coalesce_usecs = tx_vector->tx_group.coal.int_gl; in hns3_get_coalesce_per_queue()
852 cmd->rx_coalesce_usecs = rx_vector->rx_group.coal.int_gl; in hns3_get_coalesce_per_queue()
972 tx_vector->tx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue()
974 rx_vector->rx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue()
977 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
978 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue()
981 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
983 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
Dhns3_enet.c169 if (rl_reg > 0 && !tqp_vector->tx_group.coal.gl_adapt_enable && in hns3_set_vector_coalesce_rl()
170 !tqp_vector->rx_group.coal.gl_adapt_enable) in hns3_set_vector_coalesce_rl()
206 tqp_vector->tx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init()
207 tqp_vector->rx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init()
209 tqp_vector->tx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init()
210 tqp_vector->rx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init()
216 tqp_vector->rx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init()
217 tqp_vector->tx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init()
226 tqp_vector->tx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw()
228 tqp_vector->rx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw()
[all …]
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c785 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce()
786 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce()
787 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce()
788 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce()
789 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce()
790 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce()
803 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local
806 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce()
807 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce()
808 coal->rx_packets = ethcoal->rx_max_coalesced_frames; in qlcnic_82xx_config_intr_coalesce()
Dqlcnic_83xx_hw.c2192 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_rx_intr_coal() local
2203 temp = coal->rx_time_us; in qlcnic_83xx_set_rx_intr_coal()
2204 cmd.req.arg[2] = coal->rx_packets | temp << 16; in qlcnic_83xx_set_rx_intr_coal()
2205 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_rx_intr_coal()
2219 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_tx_intr_coal() local
2230 temp = coal->tx_time_us; in qlcnic_83xx_set_tx_intr_coal()
2231 cmd.req.arg[2] = coal->tx_packets | temp << 16; in qlcnic_83xx_set_tx_intr_coal()
2232 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_tx_intr_coal()
2264 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_config_intr_coal() local
2276 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_83xx_config_intr_coal()
[all …]
Dqlcnic_sriov_pf.c1200 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local
1212 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1213 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1217 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1218 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1231 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal()
1232 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
Dqlcnic_main.c1858 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce()
1861 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce()
1862 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce()
1863 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce()
1864 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1865 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
1869 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce()
1870 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1871 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
2094 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources()
[all …]
Dqlcnic_ethtool.c1576 ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us; in qlcnic_get_intr_coalesce()
1577 ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets; in qlcnic_get_intr_coalesce()
1578 ethcoal->tx_coalesce_usecs = adapter->ahw->coal.tx_time_us; in qlcnic_get_intr_coalesce()
1579 ethcoal->tx_max_coalesced_frames = adapter->ahw->coal.tx_packets; in qlcnic_get_intr_coalesce()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c47 struct ethtool_coalesce *coal) in bnxt_get_coalesce() argument
53 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce()
55 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce()
59 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
60 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
61 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
62 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
66 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
67 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
68 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
[all …]
Dbnxt.c4964 struct bnxt_coal coal; in bnxt_hwrm_set_ring_coal() local
4970 memcpy(&coal, &bp->rx_coal, sizeof(struct bnxt_coal)); in bnxt_hwrm_set_ring_coal()
4972 coal.coal_ticks = cpr->rx_ring_coal.coal_ticks; in bnxt_hwrm_set_ring_coal()
4973 coal.coal_bufs = cpr->rx_ring_coal.coal_bufs; in bnxt_hwrm_set_ring_coal()
4981 bnxt_hwrm_set_coal_params(&coal, &req_rx); in bnxt_hwrm_set_ring_coal()
7899 struct bnxt_coal *coal; in bnxt_init_dflt_coal() local
7904 coal = &bp->rx_coal; in bnxt_init_dflt_coal()
7905 coal->coal_ticks = 14; in bnxt_init_dflt_coal()
7906 coal->coal_bufs = 30; in bnxt_init_dflt_coal()
7907 coal->coal_ticks_irq = 1; in bnxt_init_dflt_coal()
[all …]
/Linux-v4.19/drivers/net/ethernet/ti/
Ddavinci_emac.c405 struct ethtool_coalesce *coal) in emac_get_coalesce() argument
409 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
423 struct ethtool_coalesce *coal) in emac_set_coalesce() argument
429 if (!coal->rx_coalesce_usecs) in emac_set_coalesce()
432 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1475 struct ethtool_coalesce coal; in emac_dev_open() local
1477 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1478 emac_set_coalesce(ndev, &coal); in emac_dev_open()
Dcpsw.c1239 struct ethtool_coalesce *coal) in cpsw_get_coalesce() argument
1243 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce()
1248 struct ethtool_coalesce *coal) in cpsw_set_coalesce() argument
1258 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce()
1263 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
1933 struct ethtool_coalesce coal; in cpsw_ndo_open() local
1935 coal.rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_ndo_open()
1936 cpsw_set_coalesce(ndev, &coal); in cpsw_ndo_open()
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c724 struct ethtool_coalesce *coal) in qede_get_coalesce() argument
734 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce()
777 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce()
778 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce()
784 struct ethtool_coalesce *coal) in qede_set_coalesce() argument
796 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce()
797 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce()
800 coal->rx_coalesce_usecs > QED_COALESCE_MAX ? "rx" : in qede_set_coalesce()
805 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce()
806 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
/Linux-v4.19/drivers/net/ethernet/tehuti/
Dtehuti.h143 #define INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) \ argument
144 ((coal)|((coal_rc)<<15)|((rxf_th)<<16)|((pck_th)<<20))
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_dev_api.h454 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dbnx2.c7256 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument
7260 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce()
7262 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce()
7263 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce()
7264 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce()
7265 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce()
7267 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce()
7268 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce()
7269 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce()
7270 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce()
[all …]
/Linux-v4.19/include/linux/qed/
Dqed_eth_if.h364 int (*get_coalesce)(struct qed_dev *cdev, u16 *coal, void *handle);
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel.c494 int coal = min_t(int, priv->ring[ring].requests, EIP197_MAX_BATCH_SZ); in safexcel_try_push_requests() local
496 if (!coal) in safexcel_try_push_requests()
501 EIP197_HIA_RDR_THRESH_PROC_PKT(coal), in safexcel_try_push_requests()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1856 struct ethtool_coalesce *coal) in bnx2x_get_coalesce() argument
1860 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2x_get_coalesce()
1862 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2x_get_coalesce()
1863 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2x_get_coalesce()
1869 struct ethtool_coalesce *coal) in bnx2x_set_coalesce() argument
1873 bp->rx_ticks = (u16)coal->rx_coalesce_usecs; in bnx2x_set_coalesce()
1877 bp->tx_ticks = (u16)coal->tx_coalesce_usecs; in bnx2x_set_coalesce()

12