Lines Matching refs:dma_outb
16 #define dma_outb(val,addr) (*((volatile unsigned char *)(addr+IO_BASE)) = (val)) macro
144 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
146 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma()
152 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
154 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
167 dma_outb(0, DMA1_CLEAR_FF_REG); in clear_dma_ff()
169 dma_outb(0, DMA2_CLEAR_FF_REG); in clear_dma_ff()
176 dma_outb(mode | dmanr, DMA1_MODE_REG); in set_dma_mode()
178 dma_outb(mode | (dmanr&3), DMA2_MODE_REG); in set_dma_mode()
187 dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); in set_dma_addr()
188 dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); in set_dma_addr()
190 dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); in set_dma_addr()
191 dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); in set_dma_addr()
208 dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count()
209 dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count()
211 dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count()
212 dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count()