/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 288 struct ethtool_coalesce *coal) in aq_ethtool_get_coalesce() argument 295 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce() 296 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce() 297 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 298 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 300 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 301 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 302 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 303 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 309 struct ethtool_coalesce *coal) in aq_ethtool_set_coalesce() argument [all …]
|
/Linux-v5.4/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 78 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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 488 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_coalesce() argument 496 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce() 497 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce() 498 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce() 501 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce() 502 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce() 503 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce() 509 struct ethtool_coalesce *coal) in mlx5e_get_coalesce() argument 513 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_get_coalesce() 520 mlx5e_set_priv_channels_coalesce(struct mlx5e_priv *priv, struct ethtool_coalesce *coal) in mlx5e_set_priv_channels_coalesce() argument [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1001 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-v5.4/drivers/net/ethernet/pensando/ionic/ |
D | ionic_regs.h | 21 u32 coal; member 54 int intr_idx, u32 coal) in ionic_intr_coal_init() argument 56 iowrite32(coal, &intr_ctrl[intr_idx].coal_init); in ionic_intr_coal_init()
|
D | ionic_ethtool.c | 376 u32 coal; in ionic_set_coalesce() local 413 coal = ionic_coal_usec_to_hw(lif->ionic, coalesce->rx_coalesce_usecs); in ionic_set_coalesce() 415 if (coal > IONIC_INTR_CTRL_COAL_MAX) in ionic_set_coalesce() 419 if (!coal && coalesce->rx_coalesce_usecs) in ionic_set_coalesce() 420 coal = 1; in ionic_set_coalesce() 423 usecs = ionic_coal_hw_to_usec(lif->ionic, coal); in ionic_set_coalesce() 432 qcq->intr.index, coal); in ionic_set_coalesce()
|
D | ionic_lif.c | 1435 u32 coal; in ionic_txrx_alloc() local 1452 coal = ionic_coal_usec_to_hw(lif->ionic, lif->rx_coalesce_usecs); in ionic_txrx_alloc() 1465 lif->rxqcqs[i].qcq->intr.index, coal); in ionic_txrx_alloc() 1644 u32 coal; in ionic_lif_alloc() local 1675 coal = ionic_coal_usec_to_hw(lif->ionic, IONIC_ITR_COAL_USEC_DEFAULT); in ionic_lif_alloc() 1676 lif->rx_coalesce_usecs = ionic_coal_hw_to_usec(lif->ionic, coal); in ionic_lif_alloc()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ethtool.c | 102 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-v5.4/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 773 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce() 774 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 776 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 779 adapter->coal.flags = 0; in netxen_set_intr_coalesce() 780 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 782 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 785 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce() 786 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce() 805 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce() 806 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce() [all …]
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 785 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()
|
D | qlcnic_83xx_hw.c | 2192 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 …]
|
D | qlcnic_sriov_pf.c | 1197 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local 1209 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1210 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1214 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1215 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1228 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal() 1229 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
|
D | qlcnic_main.c | 1859 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce() 1862 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce() 1863 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce() 1864 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce() 1865 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1866 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 1870 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce() 1871 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1872 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 2095 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources() [all …]
|
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 1105 tx_vector->tx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue() 1107 rx_vector->rx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue() 1109 cmd->tx_coalesce_usecs = tx_vector->tx_group.coal.int_gl; in hns3_get_coalesce_per_queue() 1110 cmd->rx_coalesce_usecs = rx_vector->rx_group.coal.int_gl; in hns3_get_coalesce_per_queue() 1230 tx_vector->tx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue() 1232 rx_vector->rx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue() 1235 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1236 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1239 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue() 1241 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
|
D | hns3_enet.c | 200 if (rl_reg > 0 && !tqp_vector->tx_group.coal.gl_adapt_enable && in hns3_set_vector_coalesce_rl() 201 !tqp_vector->rx_group.coal.gl_adapt_enable) in hns3_set_vector_coalesce_rl() 235 tqp_vector->tx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init() 236 tqp_vector->rx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init() 238 tqp_vector->tx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init() 239 tqp_vector->rx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init() 241 tqp_vector->rx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init() 242 tqp_vector->tx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init() 251 tqp_vector->tx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw() 253 tqp_vector->rx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw() [all …]
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 47 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 …]
|
/Linux-v5.4/drivers/net/ethernet/ti/ |
D | cpsw_ethtool.c | 155 int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal) in cpsw_get_coalesce() argument 159 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce() 163 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal) in cpsw_set_coalesce() argument 173 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce() 178 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
|
D | davinci_emac.c | 391 struct ethtool_coalesce *coal) in emac_get_coalesce() argument 395 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce() 409 struct ethtool_coalesce *coal) in emac_set_coalesce() argument 415 if (!coal->rx_coalesce_usecs) in emac_set_coalesce() 418 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce() 1461 struct ethtool_coalesce coal; in emac_dev_open() local 1463 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open() 1464 emac_set_coalesce(ndev, &coal); in emac_dev_open()
|
D | cpsw_priv.h | 406 int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal); 407 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal);
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 810 struct ethtool_coalesce *coal) in qede_get_coalesce() argument 820 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce() 863 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce() 864 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce() 870 struct ethtool_coalesce *coal) in qede_set_coalesce() argument 882 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce() 883 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce() 886 coal->rx_coalesce_usecs > QED_COALESCE_MAX ? "rx" : in qede_set_coalesce() 891 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce() 892 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
|
/Linux-v5.4/drivers/net/ethernet/tehuti/ |
D | tehuti.h | 139 #define INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) \ argument 140 ((coal)|((coal_rc)<<15)|((rxf_th)<<16)|((pck_th)<<20))
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev_api.h | 501 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);
|
/Linux-v5.4/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7252 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument 7256 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce() 7258 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce() 7259 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce() 7260 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce() 7261 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce() 7263 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce() 7264 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce() 7265 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce() 7266 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce() [all …]
|
/Linux-v5.4/include/linux/qed/ |
D | qed_eth_if.h | 364 int (*get_coalesce)(struct qed_dev *cdev, u16 *coal, void *handle);
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 1887 struct ethtool_coalesce *coal) in bnx2x_get_coalesce() argument 1891 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2x_get_coalesce() 1893 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2x_get_coalesce() 1894 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2x_get_coalesce() 1900 struct ethtool_coalesce *coal) in bnx2x_set_coalesce() argument 1904 bp->rx_ticks = (u16)coal->rx_coalesce_usecs; in bnx2x_set_coalesce() 1908 bp->tx_ticks = (u16)coal->tx_coalesce_usecs; in bnx2x_set_coalesce()
|