Lines Matching refs:ringparam
621 struct ethtool_ringparam *ringparam) in xgbe_get_ringparam() argument
625 ringparam->rx_max_pending = XGBE_RX_DESC_CNT_MAX; in xgbe_get_ringparam()
626 ringparam->tx_max_pending = XGBE_TX_DESC_CNT_MAX; in xgbe_get_ringparam()
627 ringparam->rx_pending = pdata->rx_desc_count; in xgbe_get_ringparam()
628 ringparam->tx_pending = pdata->tx_desc_count; in xgbe_get_ringparam()
632 struct ethtool_ringparam *ringparam) in xgbe_set_ringparam() argument
637 if (ringparam->rx_mini_pending || ringparam->rx_jumbo_pending) { in xgbe_set_ringparam()
642 if ((ringparam->rx_pending < XGBE_RX_DESC_CNT_MIN) || in xgbe_set_ringparam()
643 (ringparam->rx_pending > XGBE_RX_DESC_CNT_MAX)) { in xgbe_set_ringparam()
650 if ((ringparam->tx_pending < XGBE_TX_DESC_CNT_MIN) || in xgbe_set_ringparam()
651 (ringparam->tx_pending > XGBE_TX_DESC_CNT_MAX)) { in xgbe_set_ringparam()
658 rx = __rounddown_pow_of_two(ringparam->rx_pending); in xgbe_set_ringparam()
659 if (rx != ringparam->rx_pending) in xgbe_set_ringparam()
664 tx = __rounddown_pow_of_two(ringparam->tx_pending); in xgbe_set_ringparam()
665 if (tx != ringparam->tx_pending) in xgbe_set_ringparam()