/Linux-v5.15/net/ethtool/ |
D | coalesce.c | 133 const struct ethtool_coalesce *coal = &data->coalesce; in coalesce_fill_reply() local 137 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply() 139 coal->rx_max_coalesced_frames, supported) || in coalesce_fill_reply() 141 coal->rx_coalesce_usecs_irq, supported) || in coalesce_fill_reply() 143 coal->rx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply() 145 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply() 147 coal->tx_max_coalesced_frames, supported) || in coalesce_fill_reply() 149 coal->tx_coalesce_usecs_irq, supported) || in coalesce_fill_reply() 151 coal->tx_max_coalesced_frames_irq, supported) || in coalesce_fill_reply() 153 coal->stats_block_coalesce_usecs, supported) || in coalesce_fill_reply() [all …]
|
/Linux-v5.15/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 75 struct ethtool_coalesce *coal, in ipoib_get_coalesce() argument 81 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce() 82 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce() 88 struct ethtool_coalesce *coal, in ipoib_set_coalesce() argument 99 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce() 100 coal->rx_max_coalesced_frames > 0xffff) in ipoib_set_coalesce() 104 coal->rx_max_coalesced_frames, in ipoib_set_coalesce() 105 coal->rx_coalesce_usecs); in ipoib_set_coalesce() 111 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce() 112 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
|
/Linux-v5.15/drivers/s390/net/ |
D | qeth_ethtool.c | 114 struct ethtool_coalesce *coal) in __qeth_set_coalesce() argument 116 WRITE_ONCE(queue->coalesce_usecs, coal->tx_coalesce_usecs); in __qeth_set_coalesce() 117 WRITE_ONCE(queue->max_coalesced_frames, coal->tx_max_coalesced_frames); in __qeth_set_coalesce() 119 if (coal->tx_coalesce_usecs && in __qeth_set_coalesce() 122 qeth_tx_arm_timer(queue, coal->tx_coalesce_usecs); in __qeth_set_coalesce() 126 struct ethtool_coalesce *coal, in qeth_set_coalesce() argument 137 if (!coal->tx_coalesce_usecs && !coal->tx_max_coalesced_frames) in qeth_set_coalesce() 141 __qeth_set_coalesce(dev, queue, coal); in qeth_set_coalesce() 288 struct ethtool_coalesce *coal) in qeth_get_per_queue_coalesce() argument 301 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce() [all …]
|
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 550 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument 561 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce() 562 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce() 563 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 564 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce() 566 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 567 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce() 568 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 569 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce() 576 struct ethtool_coalesce *coal, in aq_ethtool_set_coalesce() argument [all …]
|
/Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_ethtool.c | 631 struct ethtool_coalesce *coal, u16 queue) in __hinic_get_coalesce() argument 652 coal->rx_coalesce_usecs = rx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce() 655 coal->rx_max_coalesced_frames = rx_intr_coal_info->pending_limt * in __hinic_get_coalesce() 657 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce() 659 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt * in __hinic_get_coalesce() 665 static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal) in is_coalesce_exceed_limit() argument 667 if (coal->rx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit() 668 coal->rx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT || in is_coalesce_exceed_limit() 669 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit() 670 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT) in is_coalesce_exceed_limit() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 516 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_coalesce() argument 524 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce() 525 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce() 526 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce() 529 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce() 530 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce() 531 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce() 537 struct ethtool_coalesce *coal, in mlx5e_get_coalesce() argument 543 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_get_coalesce() 550 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 | 254 struct ethtool_coalesce *coal, in mlx5e_rep_get_coalesce() argument 260 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_rep_get_coalesce() 264 struct ethtool_coalesce *coal, in mlx5e_rep_set_coalesce() argument 270 return mlx5e_ethtool_set_coalesce(priv, coal); in mlx5e_rep_set_coalesce()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1001 struct ethtool_coalesce *coal, in mlx4_en_get_coalesce() argument 1007 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce() 1008 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce() 1009 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce() 1011 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce() 1012 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce() 1014 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce() 1015 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce() 1016 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce() 1017 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce() [all …]
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ethtool.c | 102 struct ethtool_coalesce *coal, in mlx5i_set_coalesce() argument 108 return mlx5e_ethtool_set_coalesce(priv, coal); in mlx5i_set_coalesce() 112 struct ethtool_coalesce *coal, in mlx5i_get_coalesce() argument 118 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5i_get_coalesce()
|
/Linux-v5.15/drivers/net/netdevsim/ |
D | ethtool.c | 46 struct ethtool_coalesce *coal, in nsim_get_coalesce() argument 52 memcpy(coal, &ns->ethtool.coalesce, sizeof(ns->ethtool.coalesce)); in nsim_get_coalesce() 57 struct ethtool_coalesce *coal, in nsim_set_coalesce() argument 63 memcpy(&ns->ethtool.coalesce, coal, sizeof(ns->ethtool.coalesce)); in nsim_set_coalesce()
|
/Linux-v5.15/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 758 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce() 759 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 761 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 764 adapter->coal.flags = 0; in netxen_set_intr_coalesce() 765 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce() 767 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce() 770 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce() 771 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce() 792 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce() 793 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce() [all …]
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 763 struct ethtool_coalesce *coal, in qede_get_coalesce() argument 775 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce() 818 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce() 819 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce() 824 int qede_set_coalesce(struct net_device *dev, struct ethtool_coalesce *coal, in qede_set_coalesce() argument 838 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce() 839 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce() 842 coal->rx_coalesce_usecs > QED_COALESCE_MAX ? "rx" : in qede_set_coalesce() 847 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce() 848 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce() [all …]
|
D | qede.h | 583 int qede_set_coalesce(struct net_device *dev, struct ethtool_coalesce *coal, 587 struct ethtool_coalesce *coal);
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 780 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce() 781 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce() 782 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce() 783 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce() 784 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce() 785 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce() 798 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local 801 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce() 802 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce() 803 coal->rx_packets = ethcoal->rx_max_coalesced_frames; in qlcnic_82xx_config_intr_coalesce()
|
D | qlcnic_83xx_hw.c | 2190 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_rx_intr_coal() local 2201 temp = coal->rx_time_us; in qlcnic_83xx_set_rx_intr_coal() 2202 cmd.req.arg[2] = coal->rx_packets | temp << 16; in qlcnic_83xx_set_rx_intr_coal() 2203 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_rx_intr_coal() 2217 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_tx_intr_coal() local 2228 temp = coal->tx_time_us; in qlcnic_83xx_set_tx_intr_coal() 2229 cmd.req.arg[2] = coal->tx_packets | temp << 16; in qlcnic_83xx_set_tx_intr_coal() 2230 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_tx_intr_coal() 2262 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_config_intr_coal() local 2274 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_83xx_config_intr_coal() [all …]
|
D | qlcnic_sriov_pf.c | 1196 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local 1208 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1209 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1213 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal() 1214 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal() 1227 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal() 1228 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
|
D | qlcnic_main.c | 1835 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce() 1838 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce() 1839 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce() 1840 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce() 1841 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1842 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 1846 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce() 1847 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1848 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 2071 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources() [all …]
|
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 53 struct ethtool_coalesce *coal, in bnxt_get_coalesce() argument 61 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce() 63 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce() 67 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 68 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 69 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce() 70 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce() 74 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 75 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() 76 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce() [all …]
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 1372 tx_vector->tx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue() 1374 rx_vector->rx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue() 1377 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1378 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue() 1380 tx_vector->tx_group.coal.int_ql = cmd->tx_max_coalesced_frames; in hns3_set_coalesce_per_queue() 1381 rx_vector->rx_group.coal.int_ql = cmd->rx_max_coalesced_frames; in hns3_set_coalesce_per_queue() 1384 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue() 1386 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue() 1391 if (tx_vector->tx_group.coal.ql_enable) in hns3_set_coalesce_per_queue() 1393 tx_vector->tx_group.coal.int_ql); in hns3_set_coalesce_per_queue() [all …]
|
/Linux-v5.15/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 161 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce() 165 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal, in cpsw_set_coalesce() argument 177 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce() 182 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
|
D | davinci_emac.c | 393 struct ethtool_coalesce *coal, in emac_get_coalesce() argument 399 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce() 415 struct ethtool_coalesce *coal, in emac_set_coalesce() argument 423 if (!coal->rx_coalesce_usecs) in emac_set_coalesce() 426 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce() 1470 struct ethtool_coalesce coal; in emac_dev_open() local 1472 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open() 1473 emac_set_coalesce(ndev, &coal, NULL, NULL); in emac_dev_open()
|
D | cpsw_priv.h | 467 int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal, 470 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal,
|
/Linux-v5.15/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.15/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);
|