Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/infiniband/ulp/ipoib/
Dipoib_ethtool.c46 struct ethtool_coalesce *coal) in ipoib_get_coalesce() argument
50 coal->rx_coalesce_usecs = priv->ethtool.coalesce_usecs; in ipoib_get_coalesce()
51 coal->rx_max_coalesced_frames = priv->ethtool.max_coalesced_frames; in ipoib_get_coalesce()
57 struct ethtool_coalesce *coal) in ipoib_set_coalesce() argument
66 if (coal->rx_coalesce_usecs > 0xffff || in ipoib_set_coalesce()
67 coal->rx_max_coalesced_frames > 0xffff) in ipoib_set_coalesce()
70 ret = ib_modify_cq(priv->recv_cq, coal->rx_max_coalesced_frames, in ipoib_set_coalesce()
71 coal->rx_coalesce_usecs); in ipoib_set_coalesce()
77 priv->ethtool.coalesce_usecs = coal->rx_coalesce_usecs; in ipoib_set_coalesce()
78 priv->ethtool.max_coalesced_frames = coal->rx_max_coalesced_frames; in ipoib_set_coalesce()
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c358 struct ethtool_coalesce *coal) in mlx4_en_get_coalesce() argument
362 coal->tx_coalesce_usecs = 0; in mlx4_en_get_coalesce()
363 coal->tx_max_coalesced_frames = 0; in mlx4_en_get_coalesce()
364 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce()
365 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce()
367 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce()
368 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce()
369 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce()
370 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce()
371 coal->rate_sample_interval = priv->sample_interval; in mlx4_en_get_coalesce()
[all …]
/linux-3.4.99/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c778 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_set_intr_coalesce()
779 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
781 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
784 adapter->coal.flags = 0; in netxen_set_intr_coalesce()
785 adapter->coal.normal.data.rx_time_us = in netxen_set_intr_coalesce()
787 adapter->coal.normal.data.rx_packets = in netxen_set_intr_coalesce()
790 adapter->coal.normal.data.tx_time_us = ethcoal->tx_coalesce_usecs; in netxen_set_intr_coalesce()
791 adapter->coal.normal.data.tx_packets = in netxen_set_intr_coalesce()
810 ethcoal->rx_coalesce_usecs = adapter->coal.normal.data.rx_time_us; in netxen_get_intr_coalesce()
811 ethcoal->tx_coalesce_usecs = adapter->coal.normal.data.tx_time_us; in netxen_get_intr_coalesce()
[all …]
Dnetxen_nic_main.c1066 adapter->coal.flags = NETXEN_NIC_INTR_DEFAULT; in netxen_nic_init_coalesce_defaults()
1067 adapter->coal.normal.data.rx_time_us = in netxen_nic_init_coalesce_defaults()
1069 adapter->coal.normal.data.rx_packets = in netxen_nic_init_coalesce_defaults()
1071 adapter->coal.normal.data.tx_time_us = in netxen_nic_init_coalesce_defaults()
1073 adapter->coal.normal.data.tx_packets = in netxen_nic_init_coalesce_defaults()
Dnetxen_nic_hw.c792 memcpy(&word[0], &adapter->coal, sizeof(adapter->coal)); in netxen_config_intr_coalesce()
Dnetxen_nic.h1686 nx_nic_intr_coalesce_t coal; member
/linux-3.4.99/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c1084 adapter->ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_set_intr_coalesce()
1085 adapter->ahw->coal.rx_time_us = in qlcnic_set_intr_coalesce()
1087 adapter->ahw->coal.rx_packets = in qlcnic_set_intr_coalesce()
1090 adapter->ahw->coal.flag = 0; in qlcnic_set_intr_coalesce()
1091 adapter->ahw->coal.rx_time_us = ethcoal->rx_coalesce_usecs; in qlcnic_set_intr_coalesce()
1092 adapter->ahw->coal.rx_packets = in qlcnic_set_intr_coalesce()
1109 ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us; in qlcnic_get_intr_coalesce()
1110 ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets; in qlcnic_get_intr_coalesce()
Dqlcnic_hw.c608 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_config_intr_coalesce()
609 req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets | in qlcnic_config_intr_coalesce()
610 ((u64) adapter->ahw->coal.rx_time_us) << 16); in qlcnic_config_intr_coalesce()
611 req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out | in qlcnic_config_intr_coalesce()
612 ((u64) adapter->ahw->coal.type) << 32 | in qlcnic_config_intr_coalesce()
613 ((u64) adapter->ahw->coal.sts_ring_mask) << 40); in qlcnic_config_intr_coalesce()
Dqlcnic.h462 struct qlcnic_nic_intr_coalesce coal; member
Dqlcnic_main.c1347 adapter->ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_alloc_adapter_resources()
1348 adapter->ahw->coal.rx_time_us = QLCNIC_DEFAULT_INTR_COALESCE_RX_TIME_US; in qlcnic_alloc_adapter_resources()
1349 adapter->ahw->coal.rx_packets = QLCNIC_DEFAULT_INTR_COALESCE_RX_PACKETS; in qlcnic_alloc_adapter_resources()
/linux-3.4.99/drivers/net/ethernet/ti/
Ddavinci_emac.c529 struct ethtool_coalesce *coal) in emac_get_coalesce() argument
533 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
547 struct ethtool_coalesce *coal) in emac_set_coalesce() argument
553 if (!coal->rx_coalesce_usecs) in emac_set_coalesce()
556 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
1576 struct ethtool_coalesce coal; in emac_dev_open() local
1578 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1579 emac_set_coalesce(ndev, &coal); in emac_dev_open()
/linux-3.4.99/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-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1393 struct ethtool_coalesce *coal) in bnx2x_get_coalesce() argument
1397 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2x_get_coalesce()
1399 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2x_get_coalesce()
1400 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2x_get_coalesce()
1406 struct ethtool_coalesce *coal) in bnx2x_set_coalesce() argument
1410 bp->rx_ticks = (u16)coal->rx_coalesce_usecs; in bnx2x_set_coalesce()
1414 bp->tx_ticks = (u16)coal->tx_coalesce_usecs; in bnx2x_set_coalesce()
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dbnx2.c7099 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument
7103 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce()
7105 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce()
7106 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce()
7107 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce()
7108 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce()
7110 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce()
7111 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce()
7112 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce()
7113 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce()
[all …]
Dtg3.c5404 tp->coal.stats_block_coalesce_usecs); in tg3_setup_phy()
9052 __tg3_set_coalesce(tp, &tp->coal); in tg3_reset_hw()
12249 memcpy(ec, &tp->coal, sizeof(*ec)); in tg3_get_coalesce()
12289 tp->coal.rx_coalesce_usecs = ec->rx_coalesce_usecs; in tg3_set_coalesce()
12290 tp->coal.tx_coalesce_usecs = ec->tx_coalesce_usecs; in tg3_set_coalesce()
12291 tp->coal.rx_max_coalesced_frames = ec->rx_max_coalesced_frames; in tg3_set_coalesce()
12292 tp->coal.tx_max_coalesced_frames = ec->tx_max_coalesced_frames; in tg3_set_coalesce()
12293 tp->coal.rx_coalesce_usecs_irq = ec->rx_coalesce_usecs_irq; in tg3_set_coalesce()
12294 tp->coal.tx_coalesce_usecs_irq = ec->tx_coalesce_usecs_irq; in tg3_set_coalesce()
12295 tp->coal.rx_max_coalesced_frames_irq = ec->rx_max_coalesced_frames_irq; in tg3_set_coalesce()
[all …]
Dtg3.h3213 struct ethtool_coalesce coal; member
/linux-3.4.99/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1701 myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_get_coalesce() argument
1705 coal->rx_coalesce_usecs = mgp->intr_coal_delay; in myri10ge_get_coalesce()
1710 myri10ge_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) in myri10ge_set_coalesce() argument
1714 mgp->intr_coal_delay = coal->rx_coalesce_usecs; in myri10ge_set_coalesce()