tag | line | file | source code |
dmanr | 158 | include/asm-alpha/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 160 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 161 | include/asm-alpha/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 163 | include/asm-alpha/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 166 | include/asm-alpha/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 168 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 169 | include/asm-alpha/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 171 | include/asm-alpha/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 181 | include/asm-alpha/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 183 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 190 | include/asm-alpha/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 192 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 193 | include/asm-alpha/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 195 | include/asm-alpha/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 199 | include/asm-alpha/dma.h | static __inline__ void set_dma_ext_mode(unsigned int dmanr, char ext_mode) |
dmanr | 201 | include/asm-alpha/dma.h | if (dmanr<=3) |
dmanr | 202 | include/asm-alpha/dma.h | dma_outb(ext_mode | dmanr, DMA1_EXT_MODE_REG); |
dmanr | 204 | include/asm-alpha/dma.h | dma_outb(ext_mode | (dmanr&3), DMA2_EXT_MODE_REG); |
dmanr | 211 | include/asm-alpha/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, unsigned int pagenr) |
dmanr | 213 | include/asm-alpha/dma.h | switch(dmanr) { |
dmanr | 249 | include/asm-alpha/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 251 | include/asm-alpha/dma.h | if (dmanr <= 3) { |
dmanr | 252 | include/asm-alpha/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 253 | include/asm-alpha/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 255 | include/asm-alpha/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 256 | include/asm-alpha/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 258 | include/asm-alpha/dma.h | set_dma_page(dmanr, a>>16); /* set hipage last to enable 32-bit mode */ |
dmanr | 270 | include/asm-alpha/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 273 | include/asm-alpha/dma.h | if (dmanr <= 3) { |
dmanr | 274 | include/asm-alpha/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 275 | include/asm-alpha/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 277 | include/asm-alpha/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 278 | include/asm-alpha/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 291 | include/asm-alpha/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 293 | include/asm-alpha/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 294 | include/asm-alpha/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 302 | include/asm-alpha/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 307 | include/asm-alpha/dma.h | extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */ |
dmanr | 308 | 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, const 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 | 157 | include/asm-i386/floppy.h | static int vdma_request_dma(unsigned int dmanr, const char * device_id) |
dmanr | 221 | include/asm-i386/floppy.h | int (*_request_dma)(unsigned int dmanr, const char * device_id); |
dmanr | 222 | include/asm-i386/floppy.h | void (*_free_dma)(unsigned int dmanr); |
dmanr | 9 | include/asm-m68k/dma.h | extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */ |
dmanr | 10 | include/asm-m68k/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 142 | include/asm-mips/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 144 | include/asm-mips/dma.h | if (dmanr<=3) |
dmanr | 145 | include/asm-mips/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 147 | include/asm-mips/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 150 | include/asm-mips/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 152 | include/asm-mips/dma.h | if (dmanr<=3) |
dmanr | 153 | include/asm-mips/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 155 | include/asm-mips/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 165 | include/asm-mips/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 167 | include/asm-mips/dma.h | if (dmanr<=3) |
dmanr | 174 | include/asm-mips/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 176 | include/asm-mips/dma.h | if (dmanr<=3) |
dmanr | 177 | include/asm-mips/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 179 | include/asm-mips/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 187 | include/asm-mips/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 189 | include/asm-mips/dma.h | switch(dmanr) { |
dmanr | 218 | include/asm-mips/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 220 | include/asm-mips/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 221 | include/asm-mips/dma.h | if (dmanr <= 3) { |
dmanr | 222 | include/asm-mips/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 223 | include/asm-mips/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 225 | include/asm-mips/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 226 | include/asm-mips/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 239 | include/asm-mips/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 242 | include/asm-mips/dma.h | if (dmanr <= 3) { |
dmanr | 243 | include/asm-mips/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 244 | include/asm-mips/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 246 | include/asm-mips/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 247 | include/asm-mips/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 260 | include/asm-mips/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 262 | include/asm-mips/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 263 | include/asm-mips/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 271 | include/asm-mips/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 276 | include/asm-mips/dma.h | extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */ |
dmanr | 277 | include/asm-mips/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 133 | include/asm-ppc/dma.h | static __inline__ void enable_dma(unsigned int dmanr) |
dmanr | 135 | include/asm-ppc/dma.h | if (dmanr<=3) |
dmanr | 136 | include/asm-ppc/dma.h | dma_outb(dmanr, DMA1_MASK_REG); |
dmanr | 138 | include/asm-ppc/dma.h | dma_outb(dmanr & 3, DMA2_MASK_REG); |
dmanr | 141 | include/asm-ppc/dma.h | static __inline__ void disable_dma(unsigned int dmanr) |
dmanr | 143 | include/asm-ppc/dma.h | if (dmanr<=3) |
dmanr | 144 | include/asm-ppc/dma.h | dma_outb(dmanr | 4, DMA1_MASK_REG); |
dmanr | 146 | include/asm-ppc/dma.h | dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); |
dmanr | 156 | include/asm-ppc/dma.h | static __inline__ void clear_dma_ff(unsigned int dmanr) |
dmanr | 158 | include/asm-ppc/dma.h | if (dmanr<=3) |
dmanr | 165 | include/asm-ppc/dma.h | static __inline__ void set_dma_mode(unsigned int dmanr, char mode) |
dmanr | 167 | include/asm-ppc/dma.h | if (dmanr<=3) |
dmanr | 168 | include/asm-ppc/dma.h | dma_outb(mode | dmanr, DMA1_MODE_REG); |
dmanr | 170 | include/asm-ppc/dma.h | dma_outb(mode | (dmanr&3), DMA2_MODE_REG); |
dmanr | 178 | include/asm-ppc/dma.h | static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) |
dmanr | 180 | include/asm-ppc/dma.h | switch(dmanr) { |
dmanr | 209 | include/asm-ppc/dma.h | static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) |
dmanr | 211 | include/asm-ppc/dma.h | set_dma_page(dmanr, a>>16); |
dmanr | 212 | include/asm-ppc/dma.h | if (dmanr <= 3) { |
dmanr | 213 | include/asm-ppc/dma.h | dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 214 | include/asm-ppc/dma.h | dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE ); |
dmanr | 216 | include/asm-ppc/dma.h | dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 217 | include/asm-ppc/dma.h | dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE ); |
dmanr | 230 | include/asm-ppc/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
dmanr | 233 | include/asm-ppc/dma.h | if (dmanr <= 3) { |
dmanr | 234 | include/asm-ppc/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 235 | include/asm-ppc/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
dmanr | 237 | include/asm-ppc/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 238 | include/asm-ppc/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
dmanr | 251 | include/asm-ppc/dma.h | static __inline__ int get_dma_residue(unsigned int dmanr) |
dmanr | 253 | include/asm-ppc/dma.h | unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE |
dmanr | 254 | include/asm-ppc/dma.h | : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; |
dmanr | 262 | include/asm-ppc/dma.h | return (dmanr<=3)? count : (count<<1); |
dmanr | 268 | include/asm-ppc/dma.h | extern void free_dma(unsigned int dmanr); /* release it again */ |
dmanr | 150 | include/linux/mtio.h | unsigned short dmanr; /* DMA channel to use */ |
dmanr | 386 | include/linux/tpqic02.h | # define QIC02_TAPE_DMA (qic02_tape_dynconf.dmanr) |
dmanr | 72 | kernel/dma.c | int request_dma(unsigned int dmanr, const char * device_id) |
dmanr | 74 | kernel/dma.c | if (dmanr >= MAX_DMA_CHANNELS) |
dmanr | 77 | kernel/dma.c | if (xchg(&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(&dma_chan_busy[dmanr].lock, 0) == 0) { |
dmanr | 95 | kernel/dma.c | printk("Trying to free free DMA%d\n", dmanr); |
dmanr | 74 | kernel/ksyms.c | extern int request_dma(unsigned int dmanr, char * deviceID); |
dmanr | 75 | kernel/ksyms.c | extern void free_dma(unsigned int dmanr); |