tag | line | file | source code |
dmanr | 128 | drivers/sound/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 130 | drivers/sound/dma.h | if (dmanr<=3) |
dmanr | 131 | drivers/sound/dma.h | deb_outb(dmanr, DMA1_MASK_REG) |
dmanr | 133 | drivers/sound/dma.h | deb_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 136 | drivers/sound/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 138 | drivers/sound/dma.h | if (dmanr<=3) |
dmanr | 139 | drivers/sound/dma.h | deb_outb(dmanr | 4, DMA1_MASK_REG) |
dmanr | 141 | drivers/sound/dma.h | deb_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 151 | drivers/sound/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 153 | drivers/sound/dma.h | if (dmanr<=3) |
dmanr | 160 | drivers/sound/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 162 | drivers/sound/dma.h | if (dmanr<=3) |
dmanr | 163 | drivers/sound/dma.h | deb_outb(mode | dmanr, DMA1_MODE_REG) |
dmanr | 165 | drivers/sound/dma.h | deb_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 173 | drivers/sound/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 175 | drivers/sound/dma.h | switch(dmanr) { |
dmanr | 204 | drivers/sound/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 206 | drivers/sound/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 207 | drivers/sound/dma.h | if (dmanr <= 3) { |
dmanr | 208 | drivers/sound/dma.h | deb_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 209 | drivers/sound/dma.h | deb_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ) |
dmanr | 211 | drivers/sound/dma.h | deb_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 212 | drivers/sound/dma.h | deb_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 225 | drivers/sound/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 228 | drivers/sound/dma.h | if (dmanr <= 3) { |
dmanr | 229 | drivers/sound/dma.h | deb_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 230 | drivers/sound/dma.h | deb_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 232 | drivers/sound/dma.h | deb_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 233 | drivers/sound/dma.h | deb_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 246 | drivers/sound/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 248 | drivers/sound/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 249 | drivers/sound/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 257 | drivers/sound/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 262 | drivers/sound/dma.h | extern int request_dma(unsigned int dmanr,char * deviceID); /* reserve a DMA channel */ |
dmanr | 263 | drivers/sound/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 128 | include/asm-i386/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 130 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 131 | include/asm-i386/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 133 | include/asm-i386/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 136 | include/asm-i386/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 138 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 139 | include/asm-i386/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 141 | include/asm-i386/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 151 | include/asm-i386/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 153 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 160 | include/asm-i386/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 162 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 163 | include/asm-i386/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 165 | include/asm-i386/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 173 | include/asm-i386/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 175 | include/asm-i386/dma.h | switch(dmanr) { |
dmanr | 204 | include/asm-i386/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 206 | include/asm-i386/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 207 | include/asm-i386/dma.h | if (dmanr <= 3) { |
dmanr | 208 | include/asm-i386/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 209 | include/asm-i386/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 211 | include/asm-i386/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 212 | include/asm-i386/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 225 | include/asm-i386/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 228 | include/asm-i386/dma.h | if (dmanr <= 3) { |
dmanr | 229 | include/asm-i386/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 230 | include/asm-i386/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 232 | include/asm-i386/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 233 | include/asm-i386/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 246 | include/asm-i386/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 248 | include/asm-i386/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 249 | include/asm-i386/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 257 | include/asm-i386/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 262 | include/asm-i386/dma.h | extern int request_dma(unsigned int dmanr, char * deviceID); /* reserve a DMA channel */ |
dmanr | 263 | include/asm-i386/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 386 | include/linux/tpqic02.h | # define QIC02_TAPE_DMA (qic02_tape_dynconf.dmanr) |
dmanr | 637 | include/linux/tpqic02.h | unsigned short dmanr; /* DMA channel to use */ |
dmanr | 87 | kernel/dma.c | int request_dma(unsigned int dmanr, char * deviceID) |
dmanr | 89 | kernel/dma.c | if (dmanr >= MAX_DMA_CHANNELS) |
dmanr | 92 | kernel/dma.c | if (mutex_atomic_swap((unsigned int *) &dma_chan_busy[dmanr], (unsigned int) deviceID) != 0) |
dmanr | 100 | kernel/dma.c | void free_dma(unsigned int dmanr) |
dmanr | 102 | kernel/dma.c | if (dmanr >= MAX_DMA_CHANNELS) { |
dmanr | 103 | kernel/dma.c | printk("Trying to free DMA%d\n", dmanr); |
dmanr | 107 | kernel/dma.c | if (mutex_atomic_swap((unsigned int *) &dma_chan_busy[dmanr], 0) == 0) { |
dmanr | 108 | kernel/dma.c | printk("Trying to free free DMA%d\n", dmanr); |
dmanr | 45 | kernel/ksyms.c | extern int request_dma(unsigned int dmanr, char * deviceID); |
dmanr | 46 | kernel/ksyms.c | extern void free_dma(unsigned int dmanr); |