Searched refs:ringparam (Results 1 – 4 of 4) sorted by relevance
12 struct ethtool_ringparam ringparam; member36 dev->ethtool_ops->get_ringparam(dev, &data->ringparam); in rings_prepare_data()60 const struct ethtool_ringparam *ringparam = &data->ringparam; in rings_fill_reply() local62 if ((ringparam->rx_max_pending && in rings_fill_reply()64 ringparam->rx_max_pending) || in rings_fill_reply()66 ringparam->rx_pending))) || in rings_fill_reply()67 (ringparam->rx_mini_max_pending && in rings_fill_reply()69 ringparam->rx_mini_max_pending) || in rings_fill_reply()71 ringparam->rx_mini_pending))) || in rings_fill_reply()72 (ringparam->rx_jumbo_max_pending && in rings_fill_reply()[all …]
1609 struct ethtool_ringparam ringparam = { .cmd = ETHTOOL_GRINGPARAM }; in ethtool_get_ringparam() local1614 dev->ethtool_ops->get_ringparam(dev, &ringparam); in ethtool_get_ringparam()1616 if (copy_to_user(useraddr, &ringparam, sizeof(ringparam))) in ethtool_get_ringparam()1623 struct ethtool_ringparam ringparam, max = { .cmd = ETHTOOL_GRINGPARAM }; in ethtool_set_ringparam() local1629 if (copy_from_user(&ringparam, useraddr, sizeof(ringparam))) in ethtool_set_ringparam()1635 if (ringparam.rx_pending > max.rx_max_pending || in ethtool_set_ringparam()1636 ringparam.rx_mini_pending > max.rx_mini_max_pending || in ethtool_set_ringparam()1637 ringparam.rx_jumbo_pending > max.rx_jumbo_max_pending || in ethtool_set_ringparam()1638 ringparam.tx_pending > max.tx_max_pending) in ethtool_set_ringparam()1641 ret = dev->ethtool_ops->set_ringparam(dev, &ringparam); in ethtool_set_ringparam()
621 struct ethtool_ringparam *ringparam) in xgbe_get_ringparam() argument625 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() argument637 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()[all …]
404 struct ethtool_ringparam *ringparam) in bnad_get_ringparam() argument408 ringparam->rx_max_pending = BNAD_MAX_RXQ_DEPTH; in bnad_get_ringparam()409 ringparam->tx_max_pending = BNAD_MAX_TXQ_DEPTH; in bnad_get_ringparam()411 ringparam->rx_pending = bnad->rxq_depth; in bnad_get_ringparam()412 ringparam->tx_pending = bnad->txq_depth; in bnad_get_ringparam()417 struct ethtool_ringparam *ringparam) in bnad_set_ringparam() argument424 if (ringparam->rx_pending == bnad->rxq_depth && in bnad_set_ringparam()425 ringparam->tx_pending == bnad->txq_depth) { in bnad_set_ringparam()430 if (ringparam->rx_pending < BNAD_MIN_Q_DEPTH || in bnad_set_ringparam()431 ringparam->rx_pending > BNAD_MAX_RXQ_DEPTH || in bnad_set_ringparam()[all …]