Lines Matching refs:ering
1917 struct ethtool_ringparam *ering, in bnx2x_get_ringparam() argument
1923 ering->rx_max_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1932 ering->rx_pending = bp->rx_ring_size; in bnx2x_get_ringparam()
1934 ering->rx_pending = MAX_RX_AVAIL / BNX2X_NUM_RX_QUEUES(bp); in bnx2x_get_ringparam()
1936 ering->rx_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1938 ering->tx_max_pending = IS_MF_FCOE_AFEX(bp) ? 0 : MAX_TX_AVAIL; in bnx2x_get_ringparam()
1939 ering->tx_pending = bp->tx_ring_size; in bnx2x_get_ringparam()
1943 struct ethtool_ringparam *ering, in bnx2x_set_ringparam() argument
1951 ering->rx_pending, ering->tx_pending); in bnx2x_set_ringparam()
1965 if ((ering->rx_pending > MAX_RX_AVAIL) || in bnx2x_set_ringparam()
1966 (ering->rx_pending < (bp->disable_tpa ? MIN_RX_SIZE_NONTPA : in bnx2x_set_ringparam()
1968 (ering->tx_pending > (IS_MF_STORAGE_ONLY(bp) ? 0 : MAX_TX_AVAIL)) || in bnx2x_set_ringparam()
1969 (ering->tx_pending <= MAX_SKB_FRAGS + 4)) { in bnx2x_set_ringparam()
1974 bp->rx_ring_size = ering->rx_pending; in bnx2x_set_ringparam()
1975 bp->tx_ring_size = ering->tx_pending; in bnx2x_set_ringparam()