convert the DMA API to use dma_ops