Return dma position that doesn't wrap around dma buffer size