dma: more accurate ICR register handling