dma: Re-arrange argument consistency checks.