Lines Matching refs:dma
47 static int isa_get_dma_residue(unsigned int chan, dma_t *dma) in isa_get_dma_residue() argument
58 static void isa_enable_dma(unsigned int chan, dma_t *dma) in isa_enable_dma() argument
60 if (dma->invalid) { in isa_enable_dma()
65 mode = (chan & 3) | dma->dma_mode; in isa_enable_dma()
66 switch (dma->dma_mode & DMA_MODE_MASK) { in isa_enable_dma()
84 if (!dma->sg) { in isa_enable_dma()
89 dma->sg = &dma->buf; in isa_enable_dma()
90 dma->sgcount = 1; in isa_enable_dma()
91 dma->buf.length = dma->count; in isa_enable_dma()
92 dma->buf.dma_address = dma_map_single(NULL, in isa_enable_dma()
93 dma->addr, dma->count, in isa_enable_dma()
97 address = dma->buf.dma_address; in isa_enable_dma()
98 length = dma->buf.length - 1; in isa_enable_dma()
117 dma->invalid = 0; in isa_enable_dma()
122 static void isa_disable_dma(unsigned int chan, dma_t *dma) in isa_disable_dma() argument