Home
last modified time | relevance | path

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

123

/linux-6.1.9/net/ethtool/
Dcoalesce.c133 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-6.1.9/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c75 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-6.1.9/drivers/s390/net/
Dqeth_ethtool.c114 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()
290 struct ethtool_coalesce *coal) in qeth_get_per_queue_coalesce() argument
303 coal->tx_coalesce_usecs = queue->coalesce_usecs; in qeth_get_per_queue_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c560 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument
571 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
572 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
573 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
574 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
576 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
577 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
578 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
579 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
586 struct ethtool_coalesce *coal, in aq_ethtool_set_coalesce() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c632 struct ethtool_coalesce *coal, u16 queue) in __hinic_get_coalesce() argument
653 coal->rx_coalesce_usecs = rx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce()
656 coal->rx_max_coalesced_frames = rx_intr_coal_info->pending_limt * in __hinic_get_coalesce()
658 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg * in __hinic_get_coalesce()
660 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt * in __hinic_get_coalesce()
666 static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal) in is_coalesce_exceed_limit() argument
668 if (coal->rx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit()
669 coal->rx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT || in is_coalesce_exceed_limit()
670 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG || in is_coalesce_exceed_limit()
671 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT) in is_coalesce_exceed_limit()
[all …]
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c466 struct ethtool_coalesce *coal, in fun_get_coalesce() argument
472 coal->rx_coalesce_usecs = fp->rx_coal_usec; in fun_get_coalesce()
473 coal->rx_max_coalesced_frames = fp->rx_coal_count; in fun_get_coalesce()
474 coal->use_adaptive_rx_coalesce = !fp->cq_irq_db; in fun_get_coalesce()
475 coal->tx_coalesce_usecs = fp->tx_coal_usec; in fun_get_coalesce()
476 coal->tx_max_coalesced_frames = fp->tx_coal_count; in fun_get_coalesce()
481 struct ethtool_coalesce *coal, in fun_set_coalesce() argument
489 if (coal->rx_coalesce_usecs > FUN_DB_INTCOAL_USEC_M || in fun_set_coalesce()
490 coal->rx_max_coalesced_frames > FUN_DB_INTCOAL_ENTRIES_M || in fun_set_coalesce()
491 (coal->rx_coalesce_usecs | coal->rx_max_coalesced_frames) == 0 || in fun_set_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1004 struct ethtool_coalesce *coal, in mlx4_en_get_coalesce() argument
1010 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce()
1011 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce()
1012 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce()
1014 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
1015 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce()
1017 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
1018 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce()
1019 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
1020 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c517 struct ethtool_coalesce *coal, in mlx5e_ethtool_get_coalesce() argument
526 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce()
527 coal->rx_max_coalesced_frames = rx_moder->pkts; in mlx5e_ethtool_get_coalesce()
528 coal->use_adaptive_rx_coalesce = priv->channels.params.rx_dim_enabled; in mlx5e_ethtool_get_coalesce()
531 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
532 coal->tx_max_coalesced_frames = tx_moder->pkts; in mlx5e_ethtool_get_coalesce()
533 coal->use_adaptive_tx_coalesce = priv->channels.params.tx_dim_enabled; in mlx5e_ethtool_get_coalesce()
544 struct ethtool_coalesce *coal, in mlx5e_get_coalesce() argument
550 return mlx5e_ethtool_get_coalesce(priv, coal, kernel_coal); in mlx5e_get_coalesce()
557 mlx5e_set_priv_channels_tx_coalesce(struct mlx5e_priv *priv, struct ethtool_coalesce *coal) in mlx5e_set_priv_channels_tx_coalesce() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_regs.h21 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-6.1.9/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c762 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; 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.flags = 0; in netxen_set_intr_coalesce()
769 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
771 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
774 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
775 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce()
796 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
797 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dethtool.c119 struct ethtool_coalesce *coal, in mlx5i_set_coalesce() argument
125 return mlx5e_ethtool_set_coalesce(priv, coal, kernel_coal, extack); in mlx5i_set_coalesce()
129 struct ethtool_coalesce *coal, in mlx5i_get_coalesce() argument
135 return mlx5e_ethtool_get_coalesce(priv, coal, kernel_coal); in mlx5i_get_coalesce()
/linux-6.1.9/drivers/net/netdevsim/
Dethtool.c46 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-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c776 struct ethtool_coalesce *coal, in qede_get_coalesce() argument
788 memset(coal, 0, sizeof(struct ethtool_coalesce)); in qede_get_coalesce()
831 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce()
832 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce()
837 int qede_set_coalesce(struct net_device *dev, struct ethtool_coalesce *coal, in qede_set_coalesce() argument
851 if (coal->rx_coalesce_usecs > QED_COALESCE_MAX || in qede_set_coalesce()
852 coal->tx_coalesce_usecs > QED_COALESCE_MAX) { in qede_set_coalesce()
855 coal->rx_coalesce_usecs > QED_COALESCE_MAX ? "rx" : in qede_set_coalesce()
860 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce()
861 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c780 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()
Dqlcnic_83xx_hw.c2196 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 …]
Dqlcnic_sriov_pf.c1198 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()
Dqlcnic_main.c1836 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce()
1839 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce()
1840 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce()
1841 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce()
1842 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1843 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
1847 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce()
1848 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1849 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
2072 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c60 struct ethtool_coalesce *coal, in bnxt_get_coalesce() argument
68 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce()
70 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce()
74 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
75 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
76 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
77 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
84 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
85 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
86 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dcpsw_ethtool.c155 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()
Ddavinci_emac.c392 struct ethtool_coalesce *coal, in emac_get_coalesce() argument
398 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
414 struct ethtool_coalesce *coal, in emac_set_coalesce() argument
422 if (!coal->rx_coalesce_usecs) { in emac_set_coalesce()
437 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1488 struct ethtool_coalesce coal; in emac_dev_open() local
1490 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1491 emac_set_coalesce(ndev, &coal, NULL, NULL); in emac_dev_open()
Dcpsw_priv.h475 int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal,
478 int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal,
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_debugfs.c459 struct hns3_enet_coalesce *coal; in hns3_get_coal_info() local
466 coal = &tqp_vector->tx_group.coal; in hns3_get_coal_info()
470 ql_enable = tqp_vector->tx_group.coal.ql_enable; in hns3_get_coal_info()
472 coal = &tqp_vector->rx_group.coal; in hns3_get_coal_info()
476 ql_enable = tqp_vector->rx_group.coal.ql_enable; in hns3_get_coal_info()
488 sprintf(result[j++], "%u", coal->int_gl); in hns3_get_coal_info()
489 sprintf(result[j++], "%u", coal->int_ql); in hns3_get_coal_info()
Dhns3_ethtool.c1527 tx_vector->tx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue()
1529 rx_vector->rx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue()
1532 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1533 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1535 tx_vector->tx_group.coal.int_ql = cmd->tx_max_coalesced_frames; in hns3_set_coalesce_per_queue()
1536 rx_vector->rx_group.coal.int_ql = cmd->rx_max_coalesced_frames; in hns3_set_coalesce_per_queue()
1539 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
1541 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
1546 if (tx_vector->tx_group.coal.ql_enable) in hns3_set_coalesce_per_queue()
1548 tx_vector->tx_group.coal.int_ql); in hns3_set_coalesce_per_queue()
[all …]
/linux-6.1.9/drivers/net/ethernet/tehuti/
Dtehuti.h139 #define INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) \ argument
140 ((coal)|((coal_rc)<<15)|((rxf_th)<<16)|((pck_th)<<20))
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_dev_api.h448 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);

123