Searched refs:RING_USED (Results 1 – 2 of 2) sorted by relevance
77 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam()79 ering->rx_pending = RING_USED(mac->rx)/4; in pasemi_mac_ethtool_get_ringparam()
101 #define RING_USED(ring) (((ring)->next_to_fill - (ring)->next_to_clean) \ macro103 #define RING_AVAIL(ring) ((ring->size) - RING_USED(ring))