tag | line | file | source code |
dmanr | 134 | include/asm-alpha/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 136 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 137 | include/asm-alpha/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 139 | include/asm-alpha/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 142 | include/asm-alpha/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 144 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 145 | include/asm-alpha/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 147 | include/asm-alpha/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 157 | include/asm-alpha/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 159 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 166 | include/asm-alpha/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 168 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 169 | include/asm-alpha/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 171 | include/asm-alpha/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 179 | include/asm-alpha/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 181 | include/asm-alpha/dma.h | switch(dmanr) { |
dmanr | 210 | include/asm-alpha/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 212 | include/asm-alpha/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 213 | include/asm-alpha/dma.h | if (dmanr <= 3) { |
dmanr | 214 | include/asm-alpha/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 215 | include/asm-alpha/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 217 | include/asm-alpha/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 218 | include/asm-alpha/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 231 | include/asm-alpha/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 234 | include/asm-alpha/dma.h | if (dmanr <= 3) { |
dmanr | 235 | include/asm-alpha/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 236 | include/asm-alpha/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 238 | include/asm-alpha/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 239 | include/asm-alpha/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 252 | include/asm-alpha/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 254 | include/asm-alpha/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 255 | include/asm-alpha/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 263 | include/asm-alpha/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 268 | include/asm-alpha/dma.h | extern int request_dma(unsigned int dmanr, char * device_id); /* reserve a DMA channel */ |
dmanr | 269 | include/asm-alpha/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 133 | include/asm-i386/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 135 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 136 | include/asm-i386/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 138 | include/asm-i386/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 141 | include/asm-i386/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 143 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 144 | include/asm-i386/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 146 | include/asm-i386/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 156 | include/asm-i386/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 158 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 165 | include/asm-i386/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 167 | include/asm-i386/dma.h | if (dmanr<=3) |
dmanr | 168 | include/asm-i386/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 170 | include/asm-i386/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 178 | include/asm-i386/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 180 | include/asm-i386/dma.h | switch(dmanr) { |
dmanr | 209 | include/asm-i386/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 211 | include/asm-i386/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 212 | include/asm-i386/dma.h | if (dmanr <= 3) { |
dmanr | 213 | include/asm-i386/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 214 | include/asm-i386/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 216 | include/asm-i386/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 217 | include/asm-i386/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 230 | include/asm-i386/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 233 | include/asm-i386/dma.h | if (dmanr <= 3) { |
dmanr | 234 | include/asm-i386/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 235 | include/asm-i386/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 237 | include/asm-i386/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 238 | include/asm-i386/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 251 | include/asm-i386/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 253 | include/asm-i386/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 254 | include/asm-i386/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 262 | include/asm-i386/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 267 | include/asm-i386/dma.h | extern int request_dma(unsigned int dmanr, char * device_id); /* reserve a DMA channel */ |
dmanr | 268 | 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 | 638 | include/linux/tpqic02.h | unsigned short dmanr; /* DMA channel to use */ |
dmanr | 72 | kernel/dma.c | int request_dma(unsigned int dmanr, char * device_id) |
dmanr | 74 | kernel/dma.c | if (dmanr >= MAX_DMA_CHANNELS) |
dmanr | 77 | kernel/dma.c | if (xchg_u32(&dma_chan_busy[dmanr].lock, 1) != 0) |
dmanr | 80 | kernel/dma.c | dma_chan_busy[dmanr].device_id = device_id; |
dmanr | 87 | kernel/dma.c | void free_dma(unsigned int dmanr) |
dmanr | 89 | kernel/dma.c | if (dmanr >= MAX_DMA_CHANNELS) { |
dmanr | 90 | kernel/dma.c | printk("Trying to free DMA%d\n", dmanr); |
dmanr | 94 | kernel/dma.c | if (xchg_u32(&dma_chan_busy[dmanr].lock, 0) == 0) { |
dmanr | 95 | kernel/dma.c | printk("Trying to free free DMA%d\n", dmanr); |
dmanr | 61 | kernel/ksyms.c | extern int request_dma(unsigned int dmanr, char * deviceID); |
dmanr | 62 | kernel/ksyms.c | extern void free_dma(unsigned int dmanr); |