Home
last modified time | relevance | path

Searched refs:RING_USED (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/pasemi/
Dpasemi_mac_ethtool.c77 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()
Dpasemi_mac.h101 #define RING_USED(ring) (((ring)->next_to_fill - (ring)->next_to_clean) \ macro
103 #define RING_AVAIL(ring) ((ring->size) - RING_USED(ring))