FreeBSD/sys/dev/ixl/ixl.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
ixl_rx_unrefreshed(struct ixl_queue *que)
{       
        struct rx_ring	*rxr = &que->rxr;
	if (rxr->next_check > rxr->next_refresh)
		return (rxr->next_check - rxr->next_refresh - 1);
	else
		return ((que->num_desc + rxr->next_check) -
		    rxr->next_refresh - 1);
}
static inline u16 ixl_rx_unrefreshed ( struct ixl_queue * que ) { struct rx_ring * rxr = & que -> rxr ; if ( rxr -> next_check > rxr -> next_refresh ) return ( rxr -> next_check - rxr -> next_refresh - 1 ) ; else return ( ( que -> num_desc + rxr -> next_check ) - rxr -> next_refresh - 1 ) ; }
Find the number of unrefreshed RX descriptors
Find the number of unrefreshed RX descriptors