Lines Matching refs:dmanr
92 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
94 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue()
95 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; in get_dma_residue()
103 return (dmanr<=3)? count : (count<<1); in get_dma_residue()
107 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument
110 if (dmanr<=3) in enable_dma()
111 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
113 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma()
117 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument
120 if (dmanr<=3) in disable_dma()
121 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
123 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
128 #define request_dma(dmanr, device_id) (0) argument
137 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
142 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument
151 static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) in set_dma_page() argument
159 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) in set_dma_addr() argument
172 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
177 #define free_dma(dmanr) argument