FreeBSD/sys/dev/e1000/if_em.h
/*
** Find the number of unrefreshed RX descriptors
*/
Find the number of unrefreshed RX descriptors
Find the number of unrefreshed RX descriptors
static inline u16
e1000_rx_unrefreshed(struct rx_ring *rxr)
{
	struct adapter	*adapter = rxr->adapter;
	if (rxr->next_to_check > rxr->next_to_refresh)
		return (rxr->next_to_check - rxr->next_to_refresh - 1);
	else
		return ((adapter->num_rx_desc + rxr->next_to_check) -
		    rxr->next_to_refresh - 1); 
}
static inline u16 e1000_rx_unrefreshed ( struct rx_ring * rxr ) { struct adapter * adapter = rxr -> adapter ; if ( rxr -> next_to_check > rxr -> next_to_refresh ) return ( rxr -> next_to_check - rxr -> next_to_refresh - 1 ) ; else return ( ( adapter -> num_rx_desc + rxr -> next_to_check ) - rxr -> next_to_refresh - 1 ) ; }
Find the number of unrefreshed RX descriptors
Find the number of unrefreshed RX descriptors