Lines Matching refs:er
1641 mv643xx_eth_get_ringparam(struct net_device *dev, struct ethtool_ringparam *er) in mv643xx_eth_get_ringparam() argument
1645 er->rx_max_pending = 4096; in mv643xx_eth_get_ringparam()
1646 er->tx_max_pending = 4096; in mv643xx_eth_get_ringparam()
1648 er->rx_pending = mp->rx_ring_size; in mv643xx_eth_get_ringparam()
1649 er->tx_pending = mp->tx_ring_size; in mv643xx_eth_get_ringparam()
1653 mv643xx_eth_set_ringparam(struct net_device *dev, struct ethtool_ringparam *er) in mv643xx_eth_set_ringparam() argument
1657 if (er->rx_mini_pending || er->rx_jumbo_pending) in mv643xx_eth_set_ringparam()
1660 mp->rx_ring_size = er->rx_pending < 4096 ? er->rx_pending : 4096; in mv643xx_eth_set_ringparam()
1661 mp->tx_ring_size = clamp_t(unsigned int, er->tx_pending, in mv643xx_eth_set_ringparam()
1663 if (mp->tx_ring_size != er->tx_pending) in mv643xx_eth_set_ringparam()
1665 mp->tx_ring_size, er->tx_pending); in mv643xx_eth_set_ringparam()