/kernel/linux/linux-5.10/net/ethtool/ |
D | coalesce.c | 127 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply() local 131 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply() 133 coal->rx_max_coalesced_frames, supported) || in coalesce_fill_reply() 135 coal->rx_coalesce_usecs_irq, supported) || in coalesce_fill_reply() 137 coal->rx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply() 139 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply() 141 coal->tx_max_coalesced_frames, supported) || in coalesce_fill_reply() 143 coal->tx_coalesce_usecs_irq, supported) || in coalesce_fill_reply() 145 coal->tx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply() 147 coal->stats_block_coalesce_usecs, supported) || in coalesce_fill_reply() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 75 struct ethtool_coalesce *coal) in ipoib_get_coalesce() argument 79 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce() 80 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce() 86 struct ethtool_coalesce *coal) in ipoib_set_coalesce() argument 95 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce() 96 coal->rx_max_coalesced_frames > 0xffff) in ipoib_set_coalesce() 100 coal->rx_max_coalesced_frames, in ipoib_set_coalesce() 101 coal->rx_coalesce_usecs); in ipoib_set_coalesce() 107 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce() 108 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
|
/kernel/linux/linux-5.10/drivers/s390/net/ |
D | qeth_ethtool.c | 115 struct ethtool_coalesce *coal) in __qeth_set_coalesce() argument 117 WRITE_ONCE(queue->coalesce_usecs, coal->tx_coalesce_usecs); in __qeth_set_coalesce() 118 WRITE_ONCE(queue->max_coalesced_frames, coal->tx_max_coalesced_frames); in __qeth_set_coalesce() 120 if (coal->tx_coalesce_usecs && in __qeth_set_coalesce() 123 qeth_tx_arm_timer(queue, coal->tx_coalesce_usecs); in __qeth_set_coalesce() 127 struct ethtool_coalesce *coal) in qeth_set_coalesce() argument 136 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_coalesce() 140 __qeth_set_coalesce(dev, queue, coal); in qeth_set_coalesce() 287 struct ethtool_coalesce *coal) in qeth_get_per_queue_coalesce() argument 300 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 551 struct ethtool_coalesce *coal) in aq_ethtool_get_coalesce() argument 560 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce() 561 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce() 562 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 563 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 565 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 566 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 567 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 568 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 575 struct ethtool_coalesce *coal) in aq_ethtool_set_coalesce() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_ethtool.c | 636 struct ethtool_coalesce *coal, u16 queue) in __hinic_get_coalesce() argument 657 coal->rx_coalesce_usecs = rx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce() 660 coal->rx_max_coalesced_frames = rx_intr_coal_info->pending_limt * in __hinic_get_coalesce() 662 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce() 664 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt * in __hinic_get_coalesce() 670 static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal) in is_coalesce_exceed_limit() argument 672 if (coal->rx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit() 673 coal->rx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT || in is_coalesce_exceed_limit() 674 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit() 675 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT) in is_coalesce_exceed_limit() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 493 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_coalesce() argument 501 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce() 502 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce() 503 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce() 506 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce() 507 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce() 508 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce() 514 struct ethtool_coalesce *coal) in mlx5e_get_coalesce() argument 518 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_get_coalesce() 525 mlx5e_set_priv_channels_tx_coalesce(struct mlx5e_priv *priv, struct ethtool_coalesce *coal) in mlx5e_set_priv_channels_tx_coalesce() argument [all …]
|
D | en_rep.c | 261 struct ethtool_coalesce *coal) in mlx5e_rep_get_coalesce() argument 265 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_rep_get_coalesce() 269 struct ethtool_coalesce *coal) in mlx5e_rep_set_coalesce() argument 273 return mlx5e_ethtool_set_coalesce(priv, coal); in mlx5e_rep_set_coalesce()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 756 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce() 757 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 759 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 762 adapter->coal.flags = 0; in netxen_set_intr_coalesce() 763 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 765 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 768 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce() 769 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce() 788 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce() 789 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 784 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce() 785 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce() 786 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce() 787 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce() 788 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce() 789 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce() 802 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local 805 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce() 806 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce() 807 coal->rx_packets = ethcoal->rx_max_coalesced_frames; in qlcnic_82xx_config_intr_coalesce()
|
D | qlcnic_83xx_hw.c | 2196 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_rx_intr_coal() local 2207 temp = coal->rx_time_us; in qlcnic_83xx_set_rx_intr_coal() 2208 cmd.req.arg[2] = coal->rx_packets | temp << 16; in qlcnic_83xx_set_rx_intr_coal() 2209 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_rx_intr_coal() 2223 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_tx_intr_coal() local 2234 temp = coal->tx_time_us; in qlcnic_83xx_set_tx_intr_coal() 2235 cmd.req.arg[2] = coal->tx_packets | temp << 16; in qlcnic_83xx_set_tx_intr_coal() 2236 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_tx_intr_coal() 2268 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_config_intr_coal() local 2280 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_83xx_config_intr_coal() [all …]
|
D | qlcnic_sriov_pf.c | 1198 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local 1210 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1211 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1215 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1216 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1229 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal() 1230 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
|
D | qlcnic_main.c | 1839 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce() 1842 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce() 1843 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce() 1844 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce() 1845 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1846 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 1850 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce() 1851 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1852 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 2075 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 48 struct ethtool_coalesce *coal) in bnxt_get_coalesce() argument 54 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce() 56 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce() 60 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 61 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 62 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce() 63 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce() 67 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 68 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 69 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce() [all …]
|
/kernel/linux/linux-5.10/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() 430 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce() 1474 struct ethtool_coalesce coal; in emac_dev_open() local 1476 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open() 1477 emac_set_coalesce(ndev, &coal); in emac_dev_open()
|
D | cpsw_priv.h | 467 int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal); 468 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 1139 tx_vector->tx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue() 1141 rx_vector->rx_group.coal.gl_adapt_enable; in hns3_get_coalesce_per_queue() 1143 cmd->tx_coalesce_usecs = tx_vector->tx_group.coal.int_gl; in hns3_get_coalesce_per_queue() 1144 cmd->rx_coalesce_usecs = rx_vector->rx_group.coal.int_gl; in hns3_get_coalesce_per_queue() 1264 tx_vector->tx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue() 1266 rx_vector->rx_group.coal.gl_adapt_enable = in hns3_set_coalesce_per_queue() 1269 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1270 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1273 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue() 1275 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
|
D | hns3_enet.c | 215 if (rl_reg > 0 && !tqp_vector->tx_group.coal.gl_adapt_enable && in hns3_set_vector_coalesce_rl() 216 !tqp_vector->rx_group.coal.gl_adapt_enable) in hns3_set_vector_coalesce_rl() 250 tqp_vector->tx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init() 251 tqp_vector->rx_group.coal.gl_adapt_enable = 1; in hns3_vector_gl_rl_init() 253 tqp_vector->tx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init() 254 tqp_vector->rx_group.coal.int_gl = HNS3_INT_GL_50K; in hns3_vector_gl_rl_init() 256 tqp_vector->rx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init() 257 tqp_vector->tx_group.coal.flow_level = HNS3_FLOW_LOW; in hns3_vector_gl_rl_init() 266 tqp_vector->tx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw() 268 tqp_vector->rx_group.coal.int_gl); in hns3_vector_gl_rl_init_hw() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 763 struct ethtool_coalesce *coal) in qede_get_coalesce() argument 773 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce() 816 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce() 817 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce() 823 struct ethtool_coalesce *coal) in qede_set_coalesce() argument 835 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce() 836 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce() 839 coal->rx_coalesce_usecs > QED_COALESCE_MAX ? "rx" : in qede_set_coalesce() 844 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce() 845 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
|
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_dev_api.h | 425 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7245 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument 7249 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce() 7251 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce() 7252 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce() 7253 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce() 7254 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce() 7256 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce() 7257 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce() 7258 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce() 7259 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce() [all …]
|