dmanr             214 arch/alpha/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             216 arch/alpha/include/asm/dma.h 	if (dmanr<=3)
dmanr             217 arch/alpha/include/asm/dma.h 		dma_outb(dmanr,  DMA1_MASK_REG);
dmanr             219 arch/alpha/include/asm/dma.h 		dma_outb(dmanr & 3,  DMA2_MASK_REG);
dmanr             222 arch/alpha/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             224 arch/alpha/include/asm/dma.h 	if (dmanr<=3)
dmanr             225 arch/alpha/include/asm/dma.h 		dma_outb(dmanr | 4,  DMA1_MASK_REG);
dmanr             227 arch/alpha/include/asm/dma.h 		dma_outb((dmanr & 3) | 4,  DMA2_MASK_REG);
dmanr             237 arch/alpha/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             239 arch/alpha/include/asm/dma.h 	if (dmanr<=3)
dmanr             246 arch/alpha/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             248 arch/alpha/include/asm/dma.h 	if (dmanr<=3)
dmanr             249 arch/alpha/include/asm/dma.h 		dma_outb(mode | dmanr,  DMA1_MODE_REG);
dmanr             251 arch/alpha/include/asm/dma.h 		dma_outb(mode | (dmanr&3),  DMA2_MODE_REG);
dmanr             255 arch/alpha/include/asm/dma.h static __inline__ void set_dma_ext_mode(unsigned int dmanr, char ext_mode)
dmanr             257 arch/alpha/include/asm/dma.h 	if (dmanr<=3)
dmanr             258 arch/alpha/include/asm/dma.h 		dma_outb(ext_mode | dmanr,  DMA1_EXT_MODE_REG);
dmanr             260 arch/alpha/include/asm/dma.h 		dma_outb(ext_mode | (dmanr&3),  DMA2_EXT_MODE_REG);
dmanr             267 arch/alpha/include/asm/dma.h static __inline__ void set_dma_page(unsigned int dmanr, unsigned int pagenr)
dmanr             269 arch/alpha/include/asm/dma.h 	switch(dmanr) {
dmanr             305 arch/alpha/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             307 arch/alpha/include/asm/dma.h 	if (dmanr <= 3)  {
dmanr             308 arch/alpha/include/asm/dma.h 	    dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE );
dmanr             309 arch/alpha/include/asm/dma.h             dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE );
dmanr             311 arch/alpha/include/asm/dma.h 	    dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE );
dmanr             312 arch/alpha/include/asm/dma.h 	    dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE );
dmanr             314 arch/alpha/include/asm/dma.h 	set_dma_page(dmanr, a>>16);	/* set hipage last to enable 32-bit mode */
dmanr             326 arch/alpha/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             329 arch/alpha/include/asm/dma.h 	if (dmanr <= 3)  {
dmanr             330 arch/alpha/include/asm/dma.h 	    dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
dmanr             331 arch/alpha/include/asm/dma.h 	    dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
dmanr             333 arch/alpha/include/asm/dma.h 	    dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
dmanr             334 arch/alpha/include/asm/dma.h 	    dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
dmanr             347 arch/alpha/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr             349 arch/alpha/include/asm/dma.h 	unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE
dmanr             350 arch/alpha/include/asm/dma.h 					 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE;
dmanr             358 arch/alpha/include/asm/dma.h 	return (dmanr<=3)? count : (count<<1);
dmanr             363 arch/alpha/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char * device_id);	/* reserve a DMA channel */
dmanr             364 arch/alpha/include/asm/dma.h extern void free_dma(unsigned int dmanr);	/* release it again */
dmanr             366 arch/alpha/include/asm/dma.h extern int check_dma(unsigned int dmanr);
dmanr             126 arch/m68k/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             131 arch/m68k/include/asm/dma.h   printk("enable_dma(dmanr=%d)\n", dmanr);
dmanr             134 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             138 arch/m68k/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             144 arch/m68k/include/asm/dma.h   printk("disable_dma(dmanr=%d)\n", dmanr);
dmanr             147 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             148 arch/m68k/include/asm/dma.h   dmapb = (unsigned char *) dma_base_addr[dmanr];
dmanr             165 arch/m68k/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             170 arch/m68k/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             177 arch/m68k/include/asm/dma.h   printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode);
dmanr             180 arch/m68k/include/asm/dma.h   dmabp = (unsigned char *) dma_base_addr[dmanr];
dmanr             181 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             207 arch/m68k/include/asm/dma.h          dmanr, (int) &dmabp[MCFDMA_DSR], dmabp[MCFDMA_DSR],
dmanr             213 arch/m68k/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             219 arch/m68k/include/asm/dma.h   printk("set_dma_addr(dmanr=%d,a=%x)\n", dmanr, a);
dmanr             222 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             223 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             230 arch/m68k/include/asm/dma.h     dmalp[MCFDMA_DAR] = dma_device_address[dmanr];
dmanr             235 arch/m68k/include/asm/dma.h     dmalp[MCFDMA_SAR] = dma_device_address[dmanr];
dmanr             240 arch/m68k/include/asm/dma.h 	__FILE__, __LINE__, dmanr, (int) &dmawp[MCFDMA_DCR], dmawp[MCFDMA_DCR],
dmanr             250 arch/m68k/include/asm/dma.h static __inline__ void set_dma_device_addr(unsigned int dmanr, unsigned int a)
dmanr             253 arch/m68k/include/asm/dma.h   printk("set_dma_device_addr(dmanr=%d,a=%x)\n", dmanr, a);
dmanr             256 arch/m68k/include/asm/dma.h   dma_device_address[dmanr] = a;
dmanr             262 arch/m68k/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             267 arch/m68k/include/asm/dma.h   printk("set_dma_count(dmanr=%d,count=%d)\n", dmanr, count);
dmanr             270 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             280 arch/m68k/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr             286 arch/m68k/include/asm/dma.h   printk("get_dma_residue(dmanr=%d)\n", dmanr);
dmanr             289 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             319 arch/m68k/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             324 arch/m68k/include/asm/dma.h   printk("enable_dma(dmanr=%d)\n", dmanr);
dmanr             327 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             331 arch/m68k/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             336 arch/m68k/include/asm/dma.h   printk("disable_dma(dmanr=%d)\n", dmanr);
dmanr             339 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             356 arch/m68k/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             361 arch/m68k/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             368 arch/m68k/include/asm/dma.h   printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode);
dmanr             370 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             371 arch/m68k/include/asm/dma.h   dmawp = (unsigned short *) dma_base_addr[dmanr];
dmanr             393 arch/m68k/include/asm/dma.h 	 dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR],
dmanr             399 arch/m68k/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             404 arch/m68k/include/asm/dma.h   printk("set_dma_addr(dmanr=%d,a=%x)\n", dmanr, a);
dmanr             407 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             414 arch/m68k/include/asm/dma.h     dmalp[MCFDMA_DDAR] = dma_device_address[dmanr];
dmanr             419 arch/m68k/include/asm/dma.h     dmalp[MCFDMA_DSAR] = dma_device_address[dmanr];
dmanr             424 arch/m68k/include/asm/dma.h 	__FILE__, __LINE__, dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR],
dmanr             434 arch/m68k/include/asm/dma.h static __inline__ void set_dma_device_addr(unsigned int dmanr, unsigned int a)
dmanr             437 arch/m68k/include/asm/dma.h   printk("set_dma_device_addr(dmanr=%d,a=%x)\n", dmanr, a);
dmanr             440 arch/m68k/include/asm/dma.h   dma_device_address[dmanr] = a;
dmanr             448 arch/m68k/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             453 arch/m68k/include/asm/dma.h   printk("set_dma_count(dmanr=%d,count=%d)\n", dmanr, count);
dmanr             456 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             466 arch/m68k/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr             472 arch/m68k/include/asm/dma.h   printk("get_dma_residue(dmanr=%d)\n", dmanr);
dmanr             475 arch/m68k/include/asm/dma.h   dmalp = (unsigned int *) dma_base_addr[dmanr];
dmanr             489 arch/m68k/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char * device_id);	/* reserve a DMA channel */
dmanr             490 arch/m68k/include/asm/dma.h extern void free_dma(unsigned int dmanr);	/* release it again */
dmanr             132 arch/m68k/include/asm/floppy.h static int vdma_request_dma(unsigned int dmanr, const char * device_id)
dmanr             134 arch/mips/alchemy/common/dma.c void dump_au1000_dma_channel(unsigned int dmanr)
dmanr             138 arch/mips/alchemy/common/dma.c 	if (dmanr >= NUM_AU1000_DMA_CHANNELS)
dmanr             140 arch/mips/alchemy/common/dma.c 	chan = &au1000_dma_table[dmanr];
dmanr             142 arch/mips/alchemy/common/dma.c 	printk(KERN_INFO "Au1000 DMA%d Register Dump:\n", dmanr);
dmanr             221 arch/mips/alchemy/common/dma.c void free_au1000_dma(unsigned int dmanr)
dmanr             223 arch/mips/alchemy/common/dma.c 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             226 arch/mips/alchemy/common/dma.c 		printk(KERN_ERR "Error trying to free DMA%d\n", dmanr);
dmanr             230 arch/mips/alchemy/common/dma.c 	disable_dma(dmanr);
dmanr             173 arch/mips/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             175 arch/mips/include/asm/dma.h 	if (dmanr<=3)
dmanr             176 arch/mips/include/asm/dma.h 		dma_outb(dmanr,	 DMA1_MASK_REG);
dmanr             178 arch/mips/include/asm/dma.h 		dma_outb(dmanr & 3,  DMA2_MASK_REG);
dmanr             181 arch/mips/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             183 arch/mips/include/asm/dma.h 	if (dmanr<=3)
dmanr             184 arch/mips/include/asm/dma.h 		dma_outb(dmanr | 4,  DMA1_MASK_REG);
dmanr             186 arch/mips/include/asm/dma.h 		dma_outb((dmanr & 3) | 4,  DMA2_MASK_REG);
dmanr             196 arch/mips/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             198 arch/mips/include/asm/dma.h 	if (dmanr<=3)
dmanr             205 arch/mips/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             207 arch/mips/include/asm/dma.h 	if (dmanr<=3)
dmanr             208 arch/mips/include/asm/dma.h 		dma_outb(mode | dmanr,	DMA1_MODE_REG);
dmanr             210 arch/mips/include/asm/dma.h 		dma_outb(mode | (dmanr&3),  DMA2_MODE_REG);
dmanr             218 arch/mips/include/asm/dma.h static __inline__ void set_dma_page(unsigned int dmanr, char pagenr)
dmanr             220 arch/mips/include/asm/dma.h 	switch(dmanr) {
dmanr             249 arch/mips/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             251 arch/mips/include/asm/dma.h 	set_dma_page(dmanr, a>>16);
dmanr             252 arch/mips/include/asm/dma.h 	if (dmanr <= 3)	 {
dmanr             253 arch/mips/include/asm/dma.h 	    dma_outb( a & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE );
dmanr             254 arch/mips/include/asm/dma.h 	    dma_outb( (a>>8) & 0xff, ((dmanr&3)<<1) + IO_DMA1_BASE );
dmanr             256 arch/mips/include/asm/dma.h 	    dma_outb( (a>>1) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE );
dmanr             257 arch/mips/include/asm/dma.h 	    dma_outb( (a>>9) & 0xff, ((dmanr&3)<<2) + IO_DMA2_BASE );
dmanr             270 arch/mips/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             273 arch/mips/include/asm/dma.h 	if (dmanr <= 3)	 {
dmanr             274 arch/mips/include/asm/dma.h 	    dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
dmanr             275 arch/mips/include/asm/dma.h 	    dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE );
dmanr             277 arch/mips/include/asm/dma.h 	    dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
dmanr             278 arch/mips/include/asm/dma.h 	    dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE );
dmanr             291 arch/mips/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr             293 arch/mips/include/asm/dma.h 	unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE
dmanr             294 arch/mips/include/asm/dma.h 					 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE;
dmanr             302 arch/mips/include/asm/dma.h 	return (dmanr<=3)? count : (count<<1);
dmanr             307 arch/mips/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char * device_id);	/* reserve a DMA channel */
dmanr             308 arch/mips/include/asm/dma.h extern void free_dma(unsigned int dmanr);	/* release it again */
dmanr             124 arch/mips/include/asm/mach-au1x00/au1000_dma.h extern void free_au1000_dma(unsigned int dmanr);
dmanr             127 arch/mips/include/asm/mach-au1x00/au1000_dma.h extern void dump_au1000_dma_channel(unsigned int dmanr);
dmanr             130 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline struct dma_chan *get_dma_chan(unsigned int dmanr)
dmanr             132 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	if (dmanr >= NUM_AU1000_DMA_CHANNELS ||
dmanr             133 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	    au1000_dma_table[dmanr].dev_id < 0)
dmanr             135 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	return &au1000_dma_table[dmanr];
dmanr             154 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void enable_dma_buffer0(unsigned int dmanr)
dmanr             156 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             163 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void enable_dma_buffer1(unsigned int dmanr)
dmanr             165 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             171 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void enable_dma_buffers(unsigned int dmanr)
dmanr             173 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             180 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void start_dma(unsigned int dmanr)
dmanr             182 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             191 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void halt_dma(unsigned int dmanr)
dmanr             193 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             208 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void disable_dma(unsigned int dmanr)
dmanr             210 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             215 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	halt_dma(dmanr);
dmanr             221 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline int dma_halted(unsigned int dmanr)
dmanr             223 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             231 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void init_dma(unsigned int dmanr)
dmanr             233 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             239 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	disable_dma(dmanr);
dmanr             255 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_mode(unsigned int dmanr, unsigned int mode)
dmanr             257 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             271 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline unsigned int get_dma_mode(unsigned int dmanr)
dmanr             273 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             280 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline int get_dma_active_buffer(unsigned int dmanr)
dmanr             282 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             294 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_fifo_addr(unsigned int dmanr, unsigned int a)
dmanr             296 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             313 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void clear_dma_done0(unsigned int dmanr)
dmanr             315 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             322 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void clear_dma_done1(unsigned int dmanr)
dmanr             324 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             334 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_page(unsigned int dmanr, char pagenr)
dmanr             341 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_addr0(unsigned int dmanr, unsigned int a)
dmanr             343 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             353 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_addr1(unsigned int dmanr, unsigned int a)
dmanr             355 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             366 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_count0(unsigned int dmanr, unsigned int count)
dmanr             368 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             379 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_count1(unsigned int dmanr, unsigned int count)
dmanr             381 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             392 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             394 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             407 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline unsigned int get_dma_buffer_done(unsigned int dmanr)
dmanr             409 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             420 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline int get_dma_done_irq(unsigned int dmanr)
dmanr             422 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr             432 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline int get_dma_residue(unsigned int dmanr)
dmanr             435 arch/mips/include/asm/mach-au1x00/au1000_dma.h 	struct dma_chan *chan = get_dma_chan(dmanr);
dmanr              92 arch/parisc/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr              94 arch/parisc/include/asm/dma.h 	unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE
dmanr              95 arch/parisc/include/asm/dma.h 					 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE;
dmanr             103 arch/parisc/include/asm/dma.h 	return (dmanr<=3)? count : (count<<1);
dmanr             107 arch/parisc/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             110 arch/parisc/include/asm/dma.h 	if (dmanr<=3)
dmanr             111 arch/parisc/include/asm/dma.h 		dma_outb(dmanr,  DMA1_MASK_REG);
dmanr             113 arch/parisc/include/asm/dma.h 		dma_outb(dmanr & 3,  DMA2_MASK_REG);
dmanr             117 arch/parisc/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             120 arch/parisc/include/asm/dma.h 	if (dmanr<=3)
dmanr             121 arch/parisc/include/asm/dma.h 		dma_outb(dmanr | 4,  DMA1_MASK_REG);
dmanr             123 arch/parisc/include/asm/dma.h 		dma_outb((dmanr & 3) | 4,  DMA2_MASK_REG);
dmanr             128 arch/parisc/include/asm/dma.h #define request_dma(dmanr, device_id)	(0)
dmanr             137 arch/parisc/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             142 arch/parisc/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             151 arch/parisc/include/asm/dma.h static __inline__ void set_dma_page(unsigned int dmanr, char pagenr)
dmanr             159 arch/parisc/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             172 arch/parisc/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             177 arch/parisc/include/asm/dma.h #define free_dma(dmanr)
dmanr             127 arch/parisc/include/asm/floppy.h static int vdma_request_dma(unsigned int dmanr, const char * device_id)
dmanr             224 arch/parisc/include/asm/floppy.h 	int (*_request_dma)(unsigned int dmanr, const char * device_id);
dmanr             225 arch/parisc/include/asm/floppy.h 	void (*_free_dma)(unsigned int dmanr);
dmanr             182 arch/powerpc/include/asm/dma.h static __inline__ void enable_dma(unsigned int dmanr)
dmanr             186 arch/powerpc/include/asm/dma.h 	if (dmanr != 4) {
dmanr             190 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3) {
dmanr             191 arch/powerpc/include/asm/dma.h 		dma_outb(dmanr, DMA1_MASK_REG);
dmanr             194 arch/powerpc/include/asm/dma.h 		dma_outb(dmanr & 3, DMA2_MASK_REG);
dmanr             198 arch/powerpc/include/asm/dma.h static __inline__ void disable_dma(unsigned int dmanr)
dmanr             200 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3)
dmanr             201 arch/powerpc/include/asm/dma.h 		dma_outb(dmanr | 4, DMA1_MASK_REG);
dmanr             203 arch/powerpc/include/asm/dma.h 		dma_outb((dmanr & 3) | 4, DMA2_MASK_REG);
dmanr             213 arch/powerpc/include/asm/dma.h static __inline__ void clear_dma_ff(unsigned int dmanr)
dmanr             215 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3)
dmanr             222 arch/powerpc/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
dmanr             224 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3)
dmanr             225 arch/powerpc/include/asm/dma.h 		dma_outb(mode | dmanr, DMA1_MODE_REG);
dmanr             227 arch/powerpc/include/asm/dma.h 		dma_outb(mode | (dmanr & 3), DMA2_MODE_REG);
dmanr             235 arch/powerpc/include/asm/dma.h static __inline__ void set_dma_page(unsigned int dmanr, int pagenr)
dmanr             237 arch/powerpc/include/asm/dma.h 	switch (dmanr) {
dmanr             272 arch/powerpc/include/asm/dma.h static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int phys)
dmanr             274 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3) {
dmanr             276 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 1) + IO_DMA1_BASE);
dmanr             278 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 1) + IO_DMA1_BASE);
dmanr             281 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 2) + IO_DMA2_BASE);
dmanr             283 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 2) + IO_DMA2_BASE);
dmanr             285 arch/powerpc/include/asm/dma.h 	set_dma_page(dmanr, phys >> 16);
dmanr             297 arch/powerpc/include/asm/dma.h static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             300 arch/powerpc/include/asm/dma.h 	if (dmanr <= 3) {
dmanr             302 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE);
dmanr             304 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE);
dmanr             307 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE);
dmanr             309 arch/powerpc/include/asm/dma.h 			 ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE);
dmanr             322 arch/powerpc/include/asm/dma.h static __inline__ int get_dma_residue(unsigned int dmanr)
dmanr             324 arch/powerpc/include/asm/dma.h 	unsigned int io_port = (dmanr <= 3)
dmanr             325 arch/powerpc/include/asm/dma.h 	    ? ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE
dmanr             326 arch/powerpc/include/asm/dma.h 	    : ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE;
dmanr             334 arch/powerpc/include/asm/dma.h 	return (dmanr <= 3) ? count : (count << 1);
dmanr             340 arch/powerpc/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char *device_id);
dmanr             342 arch/powerpc/include/asm/dma.h extern void free_dma(unsigned int dmanr);
dmanr              38 arch/powerpc/include/asm/floppy.h 	void (*_disable_dma)(unsigned int dmanr);
dmanr              39 arch/powerpc/include/asm/floppy.h 	void (*_free_dma)(unsigned int dmanr);
dmanr              48 arch/sparc/include/asm/parport.h static inline int request_dma(unsigned int dmanr, const char *device_id)
dmanr              50 arch/sparc/include/asm/parport.h 	if (dmanr >= PARPORT_PC_MAX_PORTS)
dmanr              52 arch/sparc/include/asm/parport.h 	if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0)
dmanr              57 arch/sparc/include/asm/parport.h static inline void free_dma(unsigned int dmanr)
dmanr              59 arch/sparc/include/asm/parport.h 	if (dmanr >= PARPORT_PC_MAX_PORTS) {
dmanr              60 arch/sparc/include/asm/parport.h 		printk(KERN_WARNING "Trying to free DMA%d\n", dmanr);
dmanr              63 arch/sparc/include/asm/parport.h 	if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) {
dmanr              64 arch/sparc/include/asm/parport.h 		printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr);
dmanr              69 arch/sparc/include/asm/parport.h static inline void enable_dma(unsigned int dmanr)
dmanr              71 arch/sparc/include/asm/parport.h 	ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 1);
dmanr              73 arch/sparc/include/asm/parport.h 	if (ebus_dma_request(&sparc_ebus_dmas[dmanr].info,
dmanr              74 arch/sparc/include/asm/parport.h 			     sparc_ebus_dmas[dmanr].addr,
dmanr              75 arch/sparc/include/asm/parport.h 			     sparc_ebus_dmas[dmanr].count))
dmanr              79 arch/sparc/include/asm/parport.h static inline void disable_dma(unsigned int dmanr)
dmanr              81 arch/sparc/include/asm/parport.h 	ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 0);
dmanr              84 arch/sparc/include/asm/parport.h static inline void clear_dma_ff(unsigned int dmanr)
dmanr              89 arch/sparc/include/asm/parport.h static inline void set_dma_mode(unsigned int dmanr, char mode)
dmanr              91 arch/sparc/include/asm/parport.h 	ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE));
dmanr              94 arch/sparc/include/asm/parport.h static inline void set_dma_addr(unsigned int dmanr, unsigned int addr)
dmanr              96 arch/sparc/include/asm/parport.h 	sparc_ebus_dmas[dmanr].addr = addr;
dmanr              99 arch/sparc/include/asm/parport.h static inline void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             101 arch/sparc/include/asm/parport.h 	sparc_ebus_dmas[dmanr].count = count;
dmanr             104 arch/sparc/include/asm/parport.h static inline unsigned int get_dma_residue(unsigned int dmanr)
dmanr             106 arch/sparc/include/asm/parport.h 	return ebus_dma_residue(&sparc_ebus_dmas[dmanr].info);
dmanr             167 arch/x86/include/asm/dma.h static inline void enable_dma(unsigned int dmanr)
dmanr             169 arch/x86/include/asm/dma.h 	if (dmanr <= 3)
dmanr             170 arch/x86/include/asm/dma.h 		dma_outb(dmanr, DMA1_MASK_REG);
dmanr             172 arch/x86/include/asm/dma.h 		dma_outb(dmanr & 3, DMA2_MASK_REG);
dmanr             175 arch/x86/include/asm/dma.h static inline void disable_dma(unsigned int dmanr)
dmanr             177 arch/x86/include/asm/dma.h 	if (dmanr <= 3)
dmanr             178 arch/x86/include/asm/dma.h 		dma_outb(dmanr | 4, DMA1_MASK_REG);
dmanr             180 arch/x86/include/asm/dma.h 		dma_outb((dmanr & 3) | 4, DMA2_MASK_REG);
dmanr             190 arch/x86/include/asm/dma.h static inline void clear_dma_ff(unsigned int dmanr)
dmanr             192 arch/x86/include/asm/dma.h 	if (dmanr <= 3)
dmanr             199 arch/x86/include/asm/dma.h static inline void set_dma_mode(unsigned int dmanr, char mode)
dmanr             201 arch/x86/include/asm/dma.h 	if (dmanr <= 3)
dmanr             202 arch/x86/include/asm/dma.h 		dma_outb(mode | dmanr, DMA1_MODE_REG);
dmanr             204 arch/x86/include/asm/dma.h 		dma_outb(mode | (dmanr & 3), DMA2_MODE_REG);
dmanr             212 arch/x86/include/asm/dma.h static inline void set_dma_page(unsigned int dmanr, char pagenr)
dmanr             214 arch/x86/include/asm/dma.h 	switch (dmanr) {
dmanr             243 arch/x86/include/asm/dma.h static inline void set_dma_addr(unsigned int dmanr, unsigned int a)
dmanr             245 arch/x86/include/asm/dma.h 	set_dma_page(dmanr, a>>16);
dmanr             246 arch/x86/include/asm/dma.h 	if (dmanr <= 3)  {
dmanr             247 arch/x86/include/asm/dma.h 		dma_outb(a & 0xff, ((dmanr & 3) << 1) + IO_DMA1_BASE);
dmanr             248 arch/x86/include/asm/dma.h 		dma_outb((a >> 8) & 0xff, ((dmanr & 3) << 1) + IO_DMA1_BASE);
dmanr             250 arch/x86/include/asm/dma.h 		dma_outb((a >> 1) & 0xff, ((dmanr & 3) << 2) + IO_DMA2_BASE);
dmanr             251 arch/x86/include/asm/dma.h 		dma_outb((a >> 9) & 0xff, ((dmanr & 3) << 2) + IO_DMA2_BASE);
dmanr             264 arch/x86/include/asm/dma.h static inline void set_dma_count(unsigned int dmanr, unsigned int count)
dmanr             267 arch/x86/include/asm/dma.h 	if (dmanr <= 3)  {
dmanr             268 arch/x86/include/asm/dma.h 		dma_outb(count & 0xff, ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE);
dmanr             270 arch/x86/include/asm/dma.h 			 ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE);
dmanr             273 arch/x86/include/asm/dma.h 			 ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE);
dmanr             275 arch/x86/include/asm/dma.h 			 ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE);
dmanr             288 arch/x86/include/asm/dma.h static inline int get_dma_residue(unsigned int dmanr)
dmanr             294 arch/x86/include/asm/dma.h 	io_port = (dmanr <= 3) ? ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE
dmanr             295 arch/x86/include/asm/dma.h 		: ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE;
dmanr             300 arch/x86/include/asm/dma.h 	return (dmanr <= 3) ? count : (count << 1);
dmanr             306 arch/x86/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char *device_id);
dmanr             307 arch/x86/include/asm/dma.h extern void free_dma(unsigned int dmanr);
dmanr             128 arch/x86/include/asm/floppy.h static int vdma_request_dma(unsigned int dmanr, const char *device_id)
dmanr             225 arch/x86/include/asm/floppy.h 	int (*_request_dma)(unsigned int dmanr, const char *device_id);
dmanr             226 arch/x86/include/asm/floppy.h 	void (*_free_dma)(unsigned int dmanr);
dmanr              52 arch/xtensa/include/asm/dma.h extern int request_dma(unsigned int dmanr, const char * device_id);
dmanr              53 arch/xtensa/include/asm/dma.h extern void free_dma(unsigned int dmanr);
dmanr              13 include/asm-generic/dma.h extern int request_dma(unsigned int dmanr, const char *device_id);
dmanr              14 include/asm-generic/dma.h extern void free_dma(unsigned int dmanr);
dmanr              70 kernel/dma.c   int request_dma(unsigned int dmanr, const char * device_id)
dmanr              72 kernel/dma.c   	if (dmanr >= MAX_DMA_CHANNELS)
dmanr              75 kernel/dma.c   	if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0)
dmanr              78 kernel/dma.c   	dma_chan_busy[dmanr].device_id = device_id;
dmanr              88 kernel/dma.c   void free_dma(unsigned int dmanr)
dmanr              90 kernel/dma.c   	if (dmanr >= MAX_DMA_CHANNELS) {
dmanr              91 kernel/dma.c   		printk(KERN_WARNING "Trying to free DMA%d\n", dmanr);
dmanr              95 kernel/dma.c   	if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) {
dmanr              96 kernel/dma.c   		printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr);
dmanr             104 kernel/dma.c   int request_dma(unsigned int dmanr, const char *device_id)
dmanr             109 kernel/dma.c   void free_dma(unsigned int dmanr)