FreeBSD/sys/dev/nxge/xgehal/xgehal-channel.c
/*
 * __hal_channel_dtr_next_reservelist
 *
 * Walking through the all available DTRs.
 */
hal_channel_dtr_next_reservelist
Walking through the all available DTRs.
hal_channel_dtr_next_reservelist Walking through the all available DTRs .
static xge_hal_status_e
__hal_channel_dtr_next_reservelist(xge_hal_channel_h channelh,
	    xge_hal_dtr_h *dtrh)
{
	xge_hal_channel_t *channel = (xge_hal_channel_t *)channelh;
	if (channel->reserve_top >= channel->reserve_length) {
	    return XGE_HAL_INF_NO_MORE_FREED_DESCRIPTORS;
	}
	*dtrh = channel->reserve_arr[channel->reserve_top++];
	return XGE_HAL_OK;
}
static xge_hal_status_e __hal_channel_dtr_next_reservelist ( xge_hal_channel_h channelh , xge_hal_dtr_h * dtrh ) { xge_hal_channel_t * channel = ( xge_hal_channel_t * ) channelh ; if ( channel -> reserve_top >= channel -> reserve_length ) { return XGE_HAL_INF_NO_MORE_FREED_DESCRIPTORS ; } * dtrh = channel -> reserve_arr [ channel -> reserve_top ++ ] ; return XGE_HAL_OK ; }
__hal_channel_dtr_next_reservelist
 Walking through the all available DTRs.
__hal_channel_dtr_next_reservelist Walking through the all available DTRs .