Lines Matching full:dma

3  *  ISA DMA support functions
9 * ISA DMA controllers.
15 #include <linux/isa-dma.h>
19 * snd_dma_program - program an ISA DMA transfer
20 * @dma: the dma number
22 * @size: the DMA transfer size
23 * @mode: the DMA transfer mode, DMA_MODE_XXX
25 * Programs an ISA DMA transfer for the given buffer.
27 void snd_dma_program(unsigned long dma, in snd_dma_program() argument
34 disable_dma(dma); in snd_dma_program()
35 clear_dma_ff(dma); in snd_dma_program()
36 set_dma_mode(dma, mode); in snd_dma_program()
37 set_dma_addr(dma, addr); in snd_dma_program()
38 set_dma_count(dma, size); in snd_dma_program()
40 enable_dma(dma); in snd_dma_program()
46 * snd_dma_disable - stop the ISA DMA transfer
47 * @dma: the dma number
49 * Stops the ISA DMA transfer.
51 void snd_dma_disable(unsigned long dma) in snd_dma_disable() argument
56 clear_dma_ff(dma); in snd_dma_disable()
57 disable_dma(dma); in snd_dma_disable()
63 * snd_dma_pointer - return the current pointer to DMA transfer buffer in bytes
64 * @dma: the dma number
65 * @size: the dma transfer size
67 * Return: The current pointer in DMA transfer buffer in bytes.
69 unsigned int snd_dma_pointer(unsigned long dma, unsigned int size) in snd_dma_pointer() argument
75 clear_dma_ff(dma); in snd_dma_pointer()
77 disable_dma(dma); in snd_dma_pointer()
78 result = get_dma_residue(dma); in snd_dma_pointer()
84 result1 = get_dma_residue(dma); in snd_dma_pointer()
86 enable_dma(dma); in snd_dma_pointer()
92 …pr_err("ALSA: pointer (0x%x) for DMA #%ld is greater than transfer size (0x%x)\n", result, dma, si… in snd_dma_pointer()
102 int dma; member
109 snd_dma_disable(p->dma); in __snd_release_dma()
110 free_dma(p->dma); in __snd_release_dma()
116 * @dma: the dma number
119 * The requested DMA will be automatically released at unbinding via devres.
123 int snd_devm_request_dma(struct device *dev, int dma, const char *name) in snd_devm_request_dma() argument
127 if (request_dma(dma, name)) in snd_devm_request_dma()
131 free_dma(dma); in snd_devm_request_dma()
134 p->dma = dma; in snd_devm_request_dma()