Home
last modified time | relevance | path

Searched refs:ringparam (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/net/ethtool/
Drings.c12 struct ethtool_ringparam ringparam; member
38 dev->ethtool_ops->get_ringparam(dev, &data->ringparam, in rings_prepare_data()
68 const struct ethtool_ringparam *ringparam = &data->ringparam; in rings_fill_reply() local
72 if ((ringparam->rx_max_pending && in rings_fill_reply()
74 ringparam->rx_max_pending) || in rings_fill_reply()
76 ringparam->rx_pending))) || in rings_fill_reply()
77 (ringparam->rx_mini_max_pending && in rings_fill_reply()
79 ringparam->rx_mini_max_pending) || in rings_fill_reply()
81 ringparam->rx_mini_pending))) || in rings_fill_reply()
82 (ringparam->rx_jumbo_max_pending && in rings_fill_reply()
[all …]
Dioctl.c1737 struct ethtool_ringparam ringparam = { .cmd = ETHTOOL_GRINGPARAM }; in ethtool_get_ringparam() local
1743 dev->ethtool_ops->get_ringparam(dev, &ringparam, in ethtool_get_ringparam()
1746 if (copy_to_user(useraddr, &ringparam, sizeof(ringparam))) in ethtool_get_ringparam()
1753 struct ethtool_ringparam ringparam, max = { .cmd = ETHTOOL_GRINGPARAM }; in ethtool_set_ringparam() local
1760 if (copy_from_user(&ringparam, useraddr, sizeof(ringparam))) in ethtool_set_ringparam()
1766 if (ringparam.rx_pending > max.rx_max_pending || in ethtool_set_ringparam()
1767 ringparam.rx_mini_pending > max.rx_mini_max_pending || in ethtool_set_ringparam()
1768 ringparam.rx_jumbo_pending > max.rx_jumbo_max_pending || in ethtool_set_ringparam()
1769 ringparam.tx_pending > max.tx_max_pending) in ethtool_set_ringparam()
1772 ret = dev->ethtool_ops->set_ringparam(dev, &ringparam, in ethtool_set_ringparam()
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c624 struct ethtool_ringparam *ringparam, in xgbe_get_ringparam() argument
630 ringparam->rx_max_pending = XGBE_RX_DESC_CNT_MAX; in xgbe_get_ringparam()
631 ringparam->tx_max_pending = XGBE_TX_DESC_CNT_MAX; in xgbe_get_ringparam()
632 ringparam->rx_pending = pdata->rx_desc_count; in xgbe_get_ringparam()
633 ringparam->tx_pending = pdata->tx_desc_count; in xgbe_get_ringparam()
637 struct ethtool_ringparam *ringparam, in xgbe_set_ringparam() argument
644 if (ringparam->rx_mini_pending || ringparam->rx_jumbo_pending) { in xgbe_set_ringparam()
649 if ((ringparam->rx_pending < XGBE_RX_DESC_CNT_MIN) || in xgbe_set_ringparam()
650 (ringparam->rx_pending > XGBE_RX_DESC_CNT_MAX)) { in xgbe_set_ringparam()
657 if ((ringparam->tx_pending < XGBE_TX_DESC_CNT_MIN) || in xgbe_set_ringparam()
[all …]
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c408 struct ethtool_ringparam *ringparam, in bnad_get_ringparam() argument
414 ringparam->rx_max_pending = BNAD_MAX_RXQ_DEPTH; in bnad_get_ringparam()
415 ringparam->tx_max_pending = BNAD_MAX_TXQ_DEPTH; in bnad_get_ringparam()
417 ringparam->rx_pending = bnad->rxq_depth; in bnad_get_ringparam()
418 ringparam->tx_pending = bnad->txq_depth; in bnad_get_ringparam()
423 struct ethtool_ringparam *ringparam, in bnad_set_ringparam() argument
432 if (ringparam->rx_pending == bnad->rxq_depth && in bnad_set_ringparam()
433 ringparam->tx_pending == bnad->txq_depth) { in bnad_set_ringparam()
438 if (ringparam->rx_pending < BNAD_MIN_Q_DEPTH || in bnad_set_ringparam()
439 ringparam->rx_pending > BNAD_MAX_RXQ_DEPTH || in bnad_set_ringparam()
[all …]