Lines Matching refs:dmanr
94 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
96 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue()
97 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; in get_dma_residue()
105 return (dmanr<=3)? count : (count<<1); in get_dma_residue()
109 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument
112 if (dmanr<=3) in enable_dma()
113 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
115 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma()
119 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument
122 if (dmanr<=3) in disable_dma()
123 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
125 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
130 #define request_dma(dmanr, device_id) (0) argument
139 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
144 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument
153 static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) in set_dma_page() argument
161 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) in set_dma_addr() argument
174 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
179 #define free_dma(dmanr) argument