/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 63 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.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 926 struct ethtool_coalesce *coal) in mlx4_en_get_coalesce() argument 930 coal->tx_coalesce_usecs = priv->tx_usecs; in mlx4_en_get_coalesce() 931 coal->tx_max_coalesced_frames = priv->tx_frames; in mlx4_en_get_coalesce() 932 coal->tx_max_coalesced_frames_irq = priv->tx_work_limit; in mlx4_en_get_coalesce() 934 coal->rx_coalesce_usecs = priv->rx_usecs; in mlx4_en_get_coalesce() 935 coal->rx_max_coalesced_frames = priv->rx_frames; in mlx4_en_get_coalesce() 937 coal->pkt_rate_low = priv->pkt_rate_low; in mlx4_en_get_coalesce() 938 coal->rx_coalesce_usecs_low = priv->rx_usecs_low; in mlx4_en_get_coalesce() 939 coal->pkt_rate_high = priv->pkt_rate_high; in mlx4_en_get_coalesce() 940 coal->rx_coalesce_usecs_high = priv->rx_usecs_high; in mlx4_en_get_coalesce() [all …]
|
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 783 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 …]
|
D | netxen_nic_main.c | 1107 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()
|
D | netxen_nic_hw.c | 788 memcpy(&word[0], &adapter->coal, sizeof(adapter->coal)); in netxen_config_intr_coalesce()
|
D | netxen_nic.h | 1693 nx_nic_intr_coalesce_t coal; member
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 792 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()
|
D | qlcnic_83xx_hw.c | 2189 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 …]
|
D | qlcnic_sriov_pf.c | 1199 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()
|
D | qlcnic_main.c | 1848 ahw->coal.flag = QLCNIC_INTR_DEFAULT; in qlcnic_config_def_intr_coalesce() 1851 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_config_def_intr_coalesce() 1852 ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US; in qlcnic_config_def_intr_coalesce() 1853 ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS; in qlcnic_config_def_intr_coalesce() 1854 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1855 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 1859 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX; in qlcnic_config_def_intr_coalesce() 1860 ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US; in qlcnic_config_def_intr_coalesce() 1861 ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS; in qlcnic_config_def_intr_coalesce() 2086 ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX; in qlcnic_alloc_adapter_resources() [all …]
|
D | qlcnic_ethtool.c | 1565 ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us; in qlcnic_get_intr_coalesce() 1566 ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets; in qlcnic_get_intr_coalesce() 1567 ethcoal->tx_coalesce_usecs = adapter->ahw->coal.tx_time_us; in qlcnic_get_intr_coalesce() 1568 ethcoal->tx_max_coalesced_frames = adapter->ahw->coal.tx_packets; in qlcnic_get_intr_coalesce()
|
D | qlcnic.h | 525 struct qlcnic_nic_intr_coalesce coal; member
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 534 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()
|
D | cpsw.c | 924 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() 1322 struct ethtool_coalesce coal; in cpsw_ndo_open() local 1324 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in cpsw_ndo_open() 1325 cpsw_set_coalesce(ndev, &coal); in cpsw_ndo_open()
|
/linux-4.1.27/drivers/net/ethernet/tehuti/ |
D | tehuti.h | 140 #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.1.27/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 7215 bnx2_get_coalesce(struct net_device *dev, struct ethtool_coalesce *coal) in bnx2_get_coalesce() argument 7219 memset(coal, 0, sizeof(struct ethtool_coalesce)); in bnx2_get_coalesce() 7221 coal->rx_coalesce_usecs = bp->rx_ticks; in bnx2_get_coalesce() 7222 coal->rx_max_coalesced_frames = bp->rx_quick_cons_trip; in bnx2_get_coalesce() 7223 coal->rx_coalesce_usecs_irq = bp->rx_ticks_int; in bnx2_get_coalesce() 7224 coal->rx_max_coalesced_frames_irq = bp->rx_quick_cons_trip_int; in bnx2_get_coalesce() 7226 coal->tx_coalesce_usecs = bp->tx_ticks; in bnx2_get_coalesce() 7227 coal->tx_max_coalesced_frames = bp->tx_quick_cons_trip; in bnx2_get_coalesce() 7228 coal->tx_coalesce_usecs_irq = bp->tx_ticks_int; in bnx2_get_coalesce() 7229 coal->tx_max_coalesced_frames_irq = bp->tx_quick_cons_trip_int; in bnx2_get_coalesce() [all …]
|
D | tg3.c | 6106 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 …]
|
D | tg3.h | 3400 struct ethtool_coalesce coal; member
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 1790 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()
|
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 1835 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.1.27/drivers/net/ethernet/marvell/ |
D | mvneta.c | 202 #define MVNETA_TXQ_SENT_THRESH_MASK(coal) ((coal) << 16) argument
|