Searched refs:RING_USED (Results 1 – 2 of 2) sorted by relevance
79 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam()81 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))