Home
last modified time | relevance | path

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

/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()
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c427 struct ethtool_coalesce *coal) in mlx4_en_get_coalesce() argument
431 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce()
432 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce()
433 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce()
435 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
436 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce()
438 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
439 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce()
440 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
441 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce()
[all …]
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c783 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce()
784 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
786 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
789 adapter->coal.flags = 0; in netxen_set_intr_coalesce()
790 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
792 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
795 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
796 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce()
815 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
816 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
[all …]
Dnetxen_nic_main.c1109 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_nic_init_coalesce_defaults()
1110 adapter->coal.normal.data.rx_time_us = in netxen_nic_init_coalesce_defaults()
1112 adapter->coal.normal.data.rx_packets = in netxen_nic_init_coalesce_defaults()
1114 adapter->coal.normal.data.tx_time_us = in netxen_nic_init_coalesce_defaults()
1116 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
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c768 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce()
769 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_82xx_set_rx_coalesce()
770 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_82xx_set_rx_coalesce()
771 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_82xx_set_rx_coalesce()
772 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_82xx_set_rx_coalesce()
773 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_82xx_set_rx_coalesce()
786 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_82xx_config_intr_coalesce() local
789 coal->flag = QLCNIC_INTR_DEFAULT; in qlcnic_82xx_config_intr_coalesce()
790 coal->rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_82xx_config_intr_coalesce()
791 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.c1199 struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal; in qlcnic_sriov_validate_cfg_intrcoal() local
1211 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1212 time < coal->rx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1216 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1217 time < coal->tx_time_us) in qlcnic_sriov_validate_cfg_intrcoal()
1230 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal()
1231 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
Dqlcnic_main.c1849 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce()
1852 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce()
1853 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce()
1854 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce()
1855 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1856 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
1860 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce()
1861 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce()
1862 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce()
2087 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.h525 struct qlcnic_nic_intr_coalesce coal; member
/drivers/net/ethernet/ti/
Ddavinci_emac.c532 struct ethtool_coalesce *coal) in emac_get_coalesce() argument
536 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
550 struct ethtool_coalesce *coal) in emac_set_coalesce() argument
556 if (!coal->rx_coalesce_usecs) in emac_set_coalesce()
559 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1590 struct ethtool_coalesce coal; in emac_dev_open() local
1592 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1593 emac_set_coalesce(ndev, &coal); in emac_dev_open()
Dcpsw.c918 struct ethtool_coalesce *coal) in cpsw_get_coalesce() argument
922 coal->rx_coalesce_usecs = priv->coal_intvl; in cpsw_get_coalesce()
927 struct ethtool_coalesce *coal) in cpsw_set_coalesce() argument
936 coal_intvl = coal->rx_coalesce_usecs; in cpsw_set_coalesce()
941 if (!coal->rx_coalesce_usecs) { in cpsw_set_coalesce()
1316 struct ethtool_coalesce coal; in cpsw_ndo_open() local
1318 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in cpsw_ndo_open()
1319 cpsw_set_coalesce(ndev, &coal); in cpsw_ndo_open()
/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))
/drivers/net/ethernet/broadcom/
Dbnx2.c7217 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument
7221 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce()
7223 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce()
7224 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce()
7225 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce()
7226 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce()
7228 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce()
7229 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce()
7230 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce()
7231 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()
10327 __tg3_set_coalesce(tp, &tp->coal); in tg3_reset_hw()
13978 memcpy(ec, &tp->coal, sizeof(*ec)); in tg3_get_coalesce()
14018 tp->coal.rx_coalesce_usecs = ec->rx_coalesce_usecs; in tg3_set_coalesce()
14019 tp->coal.tx_coalesce_usecs = ec->tx_coalesce_usecs; in tg3_set_coalesce()
14020 tp->coal.rx_max_coalesced_frames = ec->rx_max_coalesced_frames; in tg3_set_coalesce()
14021 tp->coal.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in tg3_set_coalesce()
14022 tp->coal.rx_coalesce_usecs_irq = ec->rx_coalesce_usecs_irq; in tg3_set_coalesce()
14023 tp->coal.tx_coalesce_usecs_irq = ec->tx_coalesce_usecs_irq; in tg3_set_coalesce()
14024 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
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1790 struct ethtool_coalesce *coal) in bnx2x_get_coalesce() argument
1794 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2x_get_coalesce()
1796 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2x_get_coalesce()
1797 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2x_get_coalesce()
1803 struct ethtool_coalesce *coal) in bnx2x_set_coalesce() argument
1807 bp->rx_ticks = (u16)coal->rx_coalesce_usecs; in bnx2x_set_coalesce()
1811 bp->tx_ticks = (u16)coal->tx_coalesce_usecs; in bnx2x_set_coalesce()
/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1840 myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_get_coalesce() argument
1844 coal->rx_coalesce_usecs = mgp->intr_coal_delay; in myri10ge_get_coalesce()
1849 myri10ge_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_set_coalesce() argument
1853 mgp->intr_coal_delay = coal->rx_coalesce_usecs; in myri10ge_set_coalesce()
/drivers/net/ethernet/marvell/
Dmvneta.c196 #define MVNETA_TXQ_SENT_THRESH_MASK(coal) ((coal) << 16) argument