Home
last modified time | relevance | path

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

12

/linux/net/ethtool/
A Dcoalesce.c137 coal->rx_coalesce_usecs, supported) || in coalesce_fill_reply()
141 coal->rx_coalesce_usecs_irq, supported) || in coalesce_fill_reply()
145 coal->tx_coalesce_usecs, supported) || in coalesce_fill_reply()
149 coal->tx_coalesce_usecs_irq, supported) || in coalesce_fill_reply()
159 coal->pkt_rate_low, supported) || in coalesce_fill_reply()
161 coal->rx_coalesce_usecs_low, supported) || in coalesce_fill_reply()
165 coal->tx_coalesce_usecs_low, supported) || in coalesce_fill_reply()
169 coal->pkt_rate_high, supported) || in coalesce_fill_reply()
171 coal->rx_coalesce_usecs_high, supported) || in coalesce_fill_reply()
175 coal->tx_coalesce_usecs_high, supported) || in coalesce_fill_reply()
[all …]
/linux/drivers/infiniband/ulp/ipoib/
A 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/drivers/s390/net/
A 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()
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()
307 struct ethtool_coalesce *coal) in qeth_set_per_queue_coalesce() argument
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_ethtool.c550 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument
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
588 coal->tx_max_coalesced_frames > 1) in aq_ethtool_set_coalesce()
593 if (!(coal->rx_max_coalesced_frames == !coal->rx_coalesce_usecs)) in aq_ethtool_set_coalesce()
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_ethtool.c629 struct ethtool_coalesce *coal, u16 queue) in __hinic_get_coalesce() argument
675 struct hinic_intr_coal_info *coal, in set_queue_coalesce() argument
688 intr_coal->pending_limt = coal->pending_limt; in set_queue_coalesce()
743 struct ethtool_coalesce *coal, u16 queue) in __hinic_set_coalesce() argument
752 err = is_coalesce_exceed_limit(coal); in __hinic_set_coalesce()
756 if (coal->rx_coalesce_usecs || coal->rx_max_coalesced_frames) { in __hinic_set_coalesce()
764 if (coal->tx_coalesce_usecs || coal->tx_max_coalesced_frames) { in __hinic_set_coalesce()
796 struct ethtool_coalesce *coal, in hinic_get_coalesce() argument
804 struct ethtool_coalesce *coal, in hinic_set_coalesce() argument
812 struct ethtool_coalesce *coal) in hinic_get_per_queue_coalesce() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_ethtool.c514 struct ethtool_coalesce *coal) in mlx5e_ethtool_get_coalesce() argument
522 coal->rx_coalesce_usecs = rx_moder->usec; in mlx5e_ethtool_get_coalesce()
527 coal->tx_coalesce_usecs = tx_moder->usec; in mlx5e_ethtool_get_coalesce()
535 struct ethtool_coalesce *coal, in mlx5e_get_coalesce() argument
560 coal->tx_coalesce_usecs, in mlx5e_set_priv_channels_tx_coalesce()
561 coal->tx_max_coalesced_frames); in mlx5e_set_priv_channels_tx_coalesce()
576 coal->rx_coalesce_usecs, in mlx5e_set_priv_channels_rx_coalesce()
582 struct ethtool_coalesce *coal) in mlx5e_ethtool_set_coalesce() argument
641 if (!coal->use_adaptive_rx_coalesce) in mlx5e_ethtool_set_coalesce()
643 if (!coal->use_adaptive_tx_coalesce) in mlx5e_ethtool_set_coalesce()
[all …]
A Den_rep.c255 struct ethtool_coalesce *coal, in mlx5e_rep_get_coalesce() argument
261 return mlx5e_ethtool_get_coalesce(priv, coal); in mlx5e_rep_get_coalesce()
265 struct ethtool_coalesce *coal, in mlx5e_rep_set_coalesce() argument
271 return mlx5e_ethtool_set_coalesce(priv, coal); in mlx5e_rep_set_coalesce()
/linux/drivers/net/ethernet/mellanox/mlx4/
A 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()
1014 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
1017 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
1019 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
1028 struct ethtool_coalesce *coal, in mlx4_en_set_coalesce() argument
1034 if (!coal->tx_max_coalesced_frames_irq) in mlx4_en_set_coalesce()
1056 coal->rx_max_coalesced_frames; in mlx4_en_set_coalesce()
1060 coal->rx_coalesce_usecs; in mlx4_en_set_coalesce()
1065 priv->tx_usecs = coal->tx_coalesce_usecs; in mlx4_en_set_coalesce()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
A 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/drivers/net/ethernet/qlogic/netxen/
A Dnetxen_nic_ethtool.c758 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()
795 adapter->coal.normal.data.rx_packets; in netxen_get_intr_coalesce()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
A Dethtool.c102 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/drivers/net/netdevsim/
A 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/drivers/net/ethernet/qlogic/qede/
A Dqede_ethtool.c763 struct ethtool_coalesce *coal, in qede_get_coalesce() argument
818 coal->rx_coalesce_usecs = rx_coal; in qede_get_coalesce()
819 coal->tx_coalesce_usecs = tx_coal; in qede_get_coalesce()
847 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_coalesce()
848 txc = (u16)coal->tx_coalesce_usecs; in qede_set_coalesce()
2116 struct ethtool_coalesce *coal) in qede_set_per_coalesce() argument
2133 rxc = (u16)coal->rx_coalesce_usecs; in qede_set_per_coalesce()
2134 txc = (u16)coal->tx_coalesce_usecs; in qede_set_per_coalesce()
2183 struct ethtool_coalesce *coal) in qede_get_per_coalesce() argument
2232 coal->rx_coalesce_usecs = rx_coal; in qede_get_per_coalesce()
[all …]
/linux/drivers/net/ethernet/qlogic/qlcnic/
A 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()
A 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()
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()
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()
2286 coal->tx_packets = tx_max_frames; in qlcnic_83xx_config_intr_coal()
2291 coal->rx_packets = rx_max_frames; in qlcnic_83xx_config_intr_coal()
[all …]
A 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()
A Dqlcnic_main.c1835 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/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_ethtool.c53 struct ethtool_coalesce *coal, in bnxt_get_coalesce() argument
61 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce()
67 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
69 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
74 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
76 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
85 struct ethtool_coalesce *coal, in bnxt_set_coalesce() argument
95 if (coal->use_adaptive_rx_coalesce) { in bnxt_set_coalesce()
106 hw_coal->coal_ticks = coal->rx_coalesce_usecs; in bnxt_set_coalesce()
113 hw_coal->coal_ticks = coal->tx_coalesce_usecs; in bnxt_set_coalesce()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_ethtool.c1378 tx_vector->tx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue()
1380 rx_vector->rx_group.coal.adapt_enable = in hns3_set_coalesce_per_queue()
1383 tx_vector->tx_group.coal.int_gl = cmd->tx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1384 rx_vector->rx_group.coal.int_gl = cmd->rx_coalesce_usecs; in hns3_set_coalesce_per_queue()
1386 tx_vector->tx_group.coal.int_ql = cmd->tx_max_coalesced_frames; in hns3_set_coalesce_per_queue()
1390 tx_vector->tx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
1392 rx_vector->rx_group.coal.int_gl); in hns3_set_coalesce_per_queue()
1397 if (tx_vector->tx_group.coal.ql_enable) in hns3_set_coalesce_per_queue()
1399 tx_vector->tx_group.coal.int_ql); in hns3_set_coalesce_per_queue()
1400 if (rx_vector->rx_group.coal.ql_enable) in hns3_set_coalesce_per_queue()
[all …]
A Dhns3_debugfs.c446 struct hns3_enet_coalesce *coal; in hns3_get_coal_info() local
453 coal = &tqp_vector->tx_group.coal; in hns3_get_coal_info()
457 ql_enable = tqp_vector->tx_group.coal.ql_enable; in hns3_get_coal_info()
459 coal = &tqp_vector->rx_group.coal; in hns3_get_coal_info()
463 ql_enable = tqp_vector->rx_group.coal.ql_enable; in hns3_get_coal_info()
475 sprintf(result[j++], "%u", coal->int_gl); in hns3_get_coal_info()
476 sprintf(result[j++], "%u", coal->int_ql); in hns3_get_coal_info()
/linux/drivers/net/ethernet/ti/
A 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()
A Ddavinci_emac.c393 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()
438 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1480 struct ethtool_coalesce coal; in emac_dev_open() local
1482 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1483 emac_set_coalesce(ndev, &coal, NULL, NULL); in emac_dev_open()
A Dcpsw_priv.h467 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/drivers/net/ethernet/tehuti/
A 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/drivers/net/ethernet/qlogic/qed/
A Dqed_dev_api.h448 int qed_get_queue_coalesce(struct qed_hwfn *p_hwfn, u16 *coal, void *handle);

Completed in 122 milliseconds

12