Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c63 struct ethtool_coalesce *coal) in ipoib_get_coalesce() argument
67 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
68 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce()
74 struct ethtool_coalesce *coal) in ipoib_set_coalesce() argument
83 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce()
84 coal->rx_max_coalesced_frames > 0xffff) in ipoib_set_coalesce()
87 ret = ib_modify_cq(priv->recv_cq, coal->rx_max_coalesced_frames, in ipoib_set_coalesce()
88 coal->rx_coalesce_usecs); in ipoib_set_coalesce()
94 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
95 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c398 struct ethtool_coalesce *coal) in mlx5e_get_coalesce() argument
402 coal->rx_coalesce_usecs = priv->params.rx_cq_moderation_usec; in mlx5e_get_coalesce()
403 coal->rx_max_coalesced_frames = priv->params.rx_cq_moderation_pkts; in mlx5e_get_coalesce()
404 coal->tx_coalesce_usecs = priv->params.tx_cq_moderation_usec; in mlx5e_get_coalesce()
405 coal->tx_max_coalesced_frames = priv->params.tx_cq_moderation_pkts; in mlx5e_get_coalesce()
411 struct ethtool_coalesce *coal) in mlx5e_set_coalesce() argument
419 priv->params.tx_cq_moderation_usec = coal->tx_coalesce_usecs; in mlx5e_set_coalesce()
420 priv->params.tx_cq_moderation_pkts = coal->tx_max_coalesced_frames; in mlx5e_set_coalesce()
421 priv->params.rx_cq_moderation_usec = coal->rx_coalesce_usecs; in mlx5e_set_coalesce()
422 priv->params.rx_cq_moderation_pkts = coal->rx_max_coalesced_frames; in mlx5e_set_coalesce()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c941 struct ethtool_coalesce *coal) in mlx4_en_get_coalesce() argument
945 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce()
946 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce()
947 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce()
949 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
950 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce()
952 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
953 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce()
954 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
955 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c781 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce()
782 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
784 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
787 adapter->coal.flags = 0; in netxen_set_intr_coalesce()
788 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
790 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
793 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
794 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce()
813 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
814 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
[all …]
Dnetxen_nic_main.c1107 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_nic_init_coalesce_defaults()
1108 adapter->coal.normal.data.rx_time_us = in netxen_nic_init_coalesce_defaults()
1110 adapter->coal.normal.data.rx_packets = in netxen_nic_init_coalesce_defaults()
1112 adapter->coal.normal.data.tx_time_us = in netxen_nic_init_coalesce_defaults()
1114 adapter->coal.normal.data.tx_packets = in netxen_nic_init_coalesce_defaults()
Dnetxen_nic_hw.c788 memcpy(&word[0], &adapter->coal, sizeof(adapter->coal)); in netxen_config_intr_coalesce()
Dnetxen_nic.h1693 nx_nic_intr_coalesce_t coal; member
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c38 struct ethtool_coalesce *coal) in bnxt_get_coalesce() argument
42 memset(coal, 0, sizeof(*coal)); in bnxt_get_coalesce()
44 coal->rx_coalesce_usecs = in bnxt_get_coalesce()
46 coal->rx_max_coalesced_frames = bp->coal_bufs / 2; in bnxt_get_coalesce()
47 coal->rx_coalesce_usecs_irq = in bnxt_get_coalesce()
49 coal->rx_max_coalesced_frames_irq = bp->coal_bufs_irq / 2; in bnxt_get_coalesce()
55 struct ethtool_coalesce *coal) in bnxt_set_coalesce() argument
60 bp->coal_ticks = BNXT_USEC_TO_COAL_TIMER(coal->rx_coalesce_usecs); in bnxt_set_coalesce()
61 bp->coal_bufs = coal->rx_max_coalesced_frames * 2; in bnxt_set_coalesce()
63 BNXT_USEC_TO_COAL_TIMER(coal->rx_coalesce_usecs_irq); in bnxt_set_coalesce()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c792 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce()
793 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce()
794 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce()
795 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce()
796 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce()
797 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce()
810 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local
813 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce()
814 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce()
815 coal->rx_packets = ethcoal->rx_max_coalesced_frames; in qlcnic_82xx_config_intr_coalesce()
Dqlcnic_83xx_hw.c2189 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_rx_intr_coal() local
2200 temp = coal->rx_time_us; in qlcnic_83xx_set_rx_intr_coal()
2201 cmd.req.arg[2] = coal->rx_packets | temp << 16; in qlcnic_83xx_set_rx_intr_coal()
2202 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_rx_intr_coal()
2216 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_set_tx_intr_coal() local
2227 temp = coal->tx_time_us; in qlcnic_83xx_set_tx_intr_coal()
2228 cmd.req.arg[2] = coal->tx_packets | temp << 16; in qlcnic_83xx_set_tx_intr_coal()
2229 cmd.req.arg[3] = coal->flag; in qlcnic_83xx_set_tx_intr_coal()
2261 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_83xx_config_intr_coal() local
2273 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_83xx_config_intr_coal()
[all …]
Dqlcnic_sriov_pf.c1200 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local
1212 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1213 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1217 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1218 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1231 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal()
1232 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
Dqlcnic_main.c1858 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce()
1861 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce()
1862 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce()
1863 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce()
1864 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1865 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
1869 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce()
1870 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1871 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
2096 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources()
[all …]
Dqlcnic_ethtool.c1566 ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us; in qlcnic_get_intr_coalesce()
1567 ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets; in qlcnic_get_intr_coalesce()
1568 ethcoal->tx_coalesce_usecs = adapter->ahw->coal.tx_time_us; in qlcnic_get_intr_coalesce()
1569 ethcoal->tx_max_coalesced_frames = adapter->ahw->coal.tx_packets; in qlcnic_get_intr_coalesce()
Dqlcnic.h523 struct qlcnic_nic_intr_coalesce coal; member
/linux-4.4.14/drivers/net/ethernet/ti/
Ddavinci_emac.c534 struct ethtool_coalesce *coal) in emac_get_coalesce() argument
538 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
552 struct ethtool_coalesce *coal) in emac_set_coalesce() argument
558 if (!coal->rx_coalesce_usecs) in emac_set_coalesce()
561 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1599 struct ethtool_coalesce coal; in emac_dev_open() local
1601 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1602 emac_set_coalesce(ndev, &coal); in emac_dev_open()
Dcpsw.c924 struct ethtool_coalesce *coal) in cpsw_get_coalesce() argument
928 coal->rx_coalesce_usecs = priv->coal_intvl; in cpsw_get_coalesce()
933 struct ethtool_coalesce *coal) in cpsw_set_coalesce() argument
942 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce()
947 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
1340 struct ethtool_coalesce coal; in cpsw_ndo_open() local
1342 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in cpsw_ndo_open()
1343 cpsw_set_coalesce(ndev, &coal); in cpsw_ndo_open()
/linux-4.4.14/drivers/net/ethernet/tehuti/
Dtehuti.h140 #define INT_REG_VAL(coal, coal_rc, rxf_th, pck_th) \ argument
141 ((coal)|((coal_rc)<<15)|((rxf_th)<<16)|((pck_th)<<20))
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbnx2.c7233 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument
7237 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce()
7239 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce()
7240 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce()
7241 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce()
7242 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce()
7244 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce()
7245 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce()
7246 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce()
7247 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce()
[all …]
Dtg3.c6106 tp->coal.stats_block_coalesce_usecs); in tg3_setup_phy()
10347 __tg3_set_coalesce(tp, &tp->coal); in tg3_reset_hw()
14001 memcpy(ec, &tp->coal, sizeof(*ec)); in tg3_get_coalesce()
14041 tp->coal.rx_coalesce_usecs = ec->rx_coalesce_usecs; in tg3_set_coalesce()
14042 tp->coal.tx_coalesce_usecs = ec->tx_coalesce_usecs; in tg3_set_coalesce()
14043 tp->coal.rx_max_coalesced_frames = ec->rx_max_coalesced_frames; in tg3_set_coalesce()
14044 tp->coal.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in tg3_set_coalesce()
14045 tp->coal.rx_coalesce_usecs_irq = ec->rx_coalesce_usecs_irq; in tg3_set_coalesce()
14046 tp->coal.tx_coalesce_usecs_irq = ec->tx_coalesce_usecs_irq; in tg3_set_coalesce()
14047 tp->coal.rx_max_coalesced_frames_irq = ec->rx_max_coalesced_frames_irq; in tg3_set_coalesce()
[all …]
Dtg3.h3400 struct ethtool_coalesce coal; member
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1834 struct ethtool_coalesce *coal) in bnx2x_get_coalesce() argument
1838 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2x_get_coalesce()
1840 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2x_get_coalesce()
1841 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2x_get_coalesce()
1847 struct ethtool_coalesce *coal) in bnx2x_set_coalesce() argument
1851 bp->rx_ticks = (u16)coal->rx_coalesce_usecs; in bnx2x_set_coalesce()
1855 bp->tx_ticks = (u16)coal->tx_coalesce_usecs; in bnx2x_set_coalesce()
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1835 myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_get_coalesce() argument
1839 coal->rx_coalesce_usecs = mgp->intr_coal_delay; in myri10ge_get_coalesce()
1844 myri10ge_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_set_coalesce() argument
1848 mgp->intr_coal_delay = coal->rx_coalesce_usecs; in myri10ge_set_coalesce()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvneta.c206 #define MVNETA_TXQ_SENT_THRESH_MASK(coal) ((coal) << 16) argument