ringparam 646 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_ringparam *ringparam) ringparam 650 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->rx_max_pending = XGBE_RX_DESC_CNT_MAX; ringparam 651 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->tx_max_pending = XGBE_TX_DESC_CNT_MAX; ringparam 652 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->rx_pending = pdata->rx_desc_count; ringparam 653 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->tx_pending = pdata->tx_desc_count; ringparam 657 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_ringparam *ringparam) ringparam 662 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (ringparam->rx_mini_pending || ringparam->rx_jumbo_pending) { ringparam 667 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if ((ringparam->rx_pending < XGBE_RX_DESC_CNT_MIN) || ringparam 668 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ringparam->rx_pending > XGBE_RX_DESC_CNT_MAX)) { ringparam 675 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if ((ringparam->tx_pending < XGBE_TX_DESC_CNT_MIN) || ringparam 676 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (ringparam->tx_pending > XGBE_TX_DESC_CNT_MAX)) { ringparam 683 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = __rounddown_pow_of_two(ringparam->rx_pending); ringparam 684 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (rx != ringparam->rx_pending) ringparam 689 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = __rounddown_pow_of_two(ringparam->tx_pending); ringparam 690 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (tx != ringparam->tx_pending) ringparam 405 drivers/net/ethernet/brocade/bna/bnad_ethtool.c struct ethtool_ringparam *ringparam) ringparam 409 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->rx_max_pending = BNAD_MAX_RXQ_DEPTH; ringparam 410 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->tx_max_pending = BNAD_MAX_TXQ_DEPTH; ringparam 412 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->rx_pending = bnad->rxq_depth; ringparam 413 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->tx_pending = bnad->txq_depth; ringparam 418 drivers/net/ethernet/brocade/bna/bnad_ethtool.c struct ethtool_ringparam *ringparam) ringparam 425 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (ringparam->rx_pending == bnad->rxq_depth && ringparam 426 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->tx_pending == bnad->txq_depth) { ringparam 431 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (ringparam->rx_pending < BNAD_MIN_Q_DEPTH || ringparam 432 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->rx_pending > BNAD_MAX_RXQ_DEPTH || ringparam 433 drivers/net/ethernet/brocade/bna/bnad_ethtool.c !is_power_of_2(ringparam->rx_pending)) { ringparam 437 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (ringparam->tx_pending < BNAD_MIN_Q_DEPTH || ringparam 438 drivers/net/ethernet/brocade/bna/bnad_ethtool.c ringparam->tx_pending > BNAD_MAX_TXQ_DEPTH || ringparam 439 drivers/net/ethernet/brocade/bna/bnad_ethtool.c !is_power_of_2(ringparam->tx_pending)) { ringparam 444 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (ringparam->rx_pending != bnad->rxq_depth) { ringparam 445 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->rxq_depth = ringparam->rx_pending; ringparam 472 drivers/net/ethernet/brocade/bna/bnad_ethtool.c if (ringparam->tx_pending != bnad->txq_depth) { ringparam 473 drivers/net/ethernet/brocade/bna/bnad_ethtool.c bnad->txq_depth = ringparam->tx_pending; ringparam 1631 net/core/ethtool.c struct ethtool_ringparam ringparam = { .cmd = ETHTOOL_GRINGPARAM }; ringparam 1636 net/core/ethtool.c dev->ethtool_ops->get_ringparam(dev, &ringparam); ringparam 1638 net/core/ethtool.c if (copy_to_user(useraddr, &ringparam, sizeof(ringparam))) ringparam 1645 net/core/ethtool.c struct ethtool_ringparam ringparam, max = { .cmd = ETHTOOL_GRINGPARAM }; ringparam 1650 net/core/ethtool.c if (copy_from_user(&ringparam, useraddr, sizeof(ringparam))) ringparam 1656 net/core/ethtool.c if (ringparam.rx_pending > max.rx_max_pending || ringparam 1657 net/core/ethtool.c ringparam.rx_mini_pending > max.rx_mini_max_pending || ringparam 1658 net/core/ethtool.c ringparam.rx_jumbo_pending > max.rx_jumbo_max_pending || ringparam 1659 net/core/ethtool.c ringparam.tx_pending > max.tx_max_pending) ringparam 1662 net/core/ethtool.c return dev->ethtool_ops->set_ringparam(dev, &ringparam);