/* free range of receive DMA buffers (i to last)  */
static void free_rbufs(struct slgt_info *info, unsigned int first, unsigned int last)
/* free range of receive DMA buffers (i to last)  */
static void free_rbufs(struct slgt_info *info, unsigned int first, unsigned int last)
{
	int done = 0;
	while(!done) {
		info->rbufs[i].status = 0;
		set_desc_count(info->rbufs[i], info->rbuf_fill_level);
		if (i == last)
			done = 1;
		if (++i == info->rbuf_count)
			i = 0;
	}
	info->rbuf_current = i;
}