/arch/mips/include/asm/ |
D | dma.h | 173 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 175 if (dmanr<=3) in enable_dma() 176 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 178 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 181 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 183 if (dmanr<=3) in disable_dma() 184 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma() 186 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma() 196 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 198 if (dmanr<=3) in clear_dma_ff() [all …]
|
/arch/x86/include/asm/ |
D | dma.h | 167 static inline void enable_dma(unsigned int dmanr) in enable_dma() argument 169 if (dmanr <= 3) in enable_dma() 170 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 172 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 175 static inline void disable_dma(unsigned int dmanr) in disable_dma() argument 177 if (dmanr <= 3) in disable_dma() 178 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma() 180 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma() 190 static inline void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 192 if (dmanr <= 3) in clear_dma_ff() [all …]
|
D | floppy.h | 128 static int vdma_request_dma(unsigned int dmanr, const char *device_id) in vdma_request_dma() argument 225 int (*_request_dma)(unsigned int dmanr, const char *device_id); 226 void (*_free_dma)(unsigned int dmanr);
|
/arch/cris/arch-v32/mach-fs/ |
D | dma.c | 20 int crisv32_request_dma(unsigned int dmanr, const char *device_id, in crisv32_request_dma() argument 28 if (crisv32_arbiter_allocate_bandwidth(dmanr, in crisv32_request_dma() 36 if (used_dma_channels[dmanr]) { in crisv32_request_dma() 41 dmanr, in crisv32_request_dma() 43 used_dma_channels_users[dmanr]); in crisv32_request_dma() 52 switch (dmanr) { in crisv32_request_dma() 81 dmanr, device_id, MAX_DMA_CHANNELS - 1); in crisv32_request_dma() 91 if (dmanr == 0) in crisv32_request_dma() 93 else if (dmanr == 1) in crisv32_request_dma() 99 if (dmanr == 6) in crisv32_request_dma() [all …]
|
/arch/m68k/include/asm/ |
D | dma.h | 126 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 131 printk("enable_dma(dmanr=%d)\n", dmanr); in enable_dma() 134 dmawp = (unsigned short *) dma_base_addr[dmanr]; in enable_dma() 138 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 144 printk("disable_dma(dmanr=%d)\n", dmanr); in disable_dma() 147 dmawp = (unsigned short *) dma_base_addr[dmanr]; in disable_dma() 148 dmapb = (unsigned char *) dma_base_addr[dmanr]; in disable_dma() 165 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 170 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument 177 printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode); in set_dma_mode() [all …]
|
D | floppy.h | 132 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument
|
/arch/alpha/include/asm/ |
D | dma.h | 214 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 216 if (dmanr<=3) in enable_dma() 217 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 219 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 222 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 224 if (dmanr<=3) in disable_dma() 225 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma() 227 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma() 237 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 239 if (dmanr<=3) in clear_dma_ff() [all …]
|
/arch/powerpc/include/asm/ |
D | dma.h | 182 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 186 if (dmanr != 4) { in enable_dma() 190 if (dmanr <= 3) { in enable_dma() 191 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 194 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 198 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 200 if (dmanr <= 3) in disable_dma() 201 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma() 203 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma() 213 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument [all …]
|
D | floppy.h | 39 void (*_disable_dma)(unsigned int dmanr); 40 void (*_free_dma)(unsigned int dmanr);
|
/arch/cris/arch-v32/mach-a3/ |
D | dma.c | 20 int crisv32_request_dma(unsigned int dmanr, const char *device_id, in crisv32_request_dma() argument 27 if (crisv32_arbiter_allocate_bandwidth(dmanr, in crisv32_request_dma() 34 if (used_dma_channels[dmanr]) { in crisv32_request_dma() 39 dmanr, in crisv32_request_dma() 41 used_dma_channels_users[dmanr]); in crisv32_request_dma() 50 switch (dmanr) { in crisv32_request_dma() 79 dmanr, device_id, MAX_DMA_CHANNELS-1); in crisv32_request_dma() 88 if (dmanr == 0) in crisv32_request_dma() 90 else if (dmanr == 1) in crisv32_request_dma() 96 if (dmanr == 0) in crisv32_request_dma() [all …]
|
/arch/mips/include/asm/mach-au1x00/ |
D | au1000_dma.h | 124 extern void free_au1000_dma(unsigned int dmanr); 127 extern void dump_au1000_dma_channel(unsigned int dmanr); 130 static inline struct dma_chan *get_dma_chan(unsigned int dmanr) in get_dma_chan() argument 132 if (dmanr >= NUM_AU1000_DMA_CHANNELS || in get_dma_chan() 133 au1000_dma_table[dmanr].dev_id < 0) in get_dma_chan() 135 return &au1000_dma_table[dmanr]; in get_dma_chan() 154 static inline void enable_dma_buffer0(unsigned int dmanr) in enable_dma_buffer0() argument 156 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer0() 163 static inline void enable_dma_buffer1(unsigned int dmanr) in enable_dma_buffer1() argument 165 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer1() [all …]
|
/arch/parisc/include/asm/ |
D | dma.h | 92 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument 94 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() 95 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; in get_dma_residue() 103 return (dmanr<=3)? count : (count<<1); in get_dma_residue() 107 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 110 if (dmanr<=3) in enable_dma() 111 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 113 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 117 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 120 if (dmanr<=3) in disable_dma() [all …]
|
D | floppy.h | 140 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument 237 int (*_request_dma)(unsigned int dmanr, const char * device_id); 238 void (*_free_dma)(unsigned int dmanr);
|
/arch/cris/arch-v10/kernel/ |
D | dma.c | 22 int cris_request_dma(unsigned int dmanr, const char * device_id, in cris_request_dma() argument 29 if (dmanr >= MAX_DMA_CHANNELS) { in cris_request_dma() 30 printk(KERN_CRIT "cris_request_dma: invalid DMA channel %u\n", dmanr); in cris_request_dma() 35 if (used_dma_channels[dmanr]) { in cris_request_dma() 38 …o request DMA %i for %s, already allocated by %s\n", dmanr, device_id, used_dma_channels_users[dma… in cris_request_dma() 51 if ((dmanr != NETWORK_TX_DMA_NBR) && in cris_request_dma() 52 (dmanr != NETWORK_RX_DMA_NBR)) { in cris_request_dma() 58 if (dmanr == SER0_TX_DMA_NBR) { in cris_request_dma() 60 } else if (dmanr == SER0_RX_DMA_NBR) { in cris_request_dma() 68 if (dmanr == SER1_TX_DMA_NBR) { in cris_request_dma() [all …]
|
/arch/mn10300/include/asm/ |
D | dma.h | 36 static inline void enable_dma(unsigned int dmanr) in enable_dma() argument 40 static inline void disable_dma(unsigned int dmanr) in disable_dma() argument 51 static inline void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 56 static inline void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument 65 static inline void set_dma_page(unsigned int dmanr, char pagenr) in set_dma_page() argument 73 static inline void set_dma_addr(unsigned int dmanr, unsigned int a) in set_dma_addr() argument 86 static inline void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument 99 static inline int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument 106 extern int request_dma(unsigned int dmanr, const char *device_id); 107 extern void free_dma(unsigned int dmanr);
|
/arch/sparc/include/asm/ |
D | parport.h | 48 static inline int request_dma(unsigned int dmanr, const char *device_id) in request_dma() argument 50 if (dmanr >= PARPORT_PC_MAX_PORTS) in request_dma() 52 if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) in request_dma() 57 static inline void free_dma(unsigned int dmanr) in free_dma() argument 59 if (dmanr >= PARPORT_PC_MAX_PORTS) { in free_dma() 60 printk(KERN_WARNING "Trying to free DMA%d\n", dmanr); in free_dma() 63 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma() 64 printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr); in free_dma() 69 static inline void enable_dma(unsigned int dmanr) in enable_dma() argument 71 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 1); in enable_dma() [all …]
|
/arch/mips/alchemy/common/ |
D | dma.c | 134 void dump_au1000_dma_channel(unsigned int dmanr) in dump_au1000_dma_channel() argument 138 if (dmanr >= NUM_AU1000_DMA_CHANNELS) in dump_au1000_dma_channel() 140 chan = &au1000_dma_table[dmanr]; in dump_au1000_dma_channel() 142 printk(KERN_INFO "Au1000 DMA%d Register Dump:\n", dmanr); in dump_au1000_dma_channel() 221 void free_au1000_dma(unsigned int dmanr) in free_au1000_dma() argument 223 struct dma_chan *chan = get_dma_chan(dmanr); in free_au1000_dma() 226 printk(KERN_ERR "Error trying to free DMA%d\n", dmanr); in free_au1000_dma() 230 disable_dma(dmanr); in free_au1000_dma()
|
/arch/xtensa/include/asm/ |
D | dma.h | 52 extern int request_dma(unsigned int dmanr, const char * device_id); 53 extern void free_dma(unsigned int dmanr);
|
/arch/cris/include/arch-v32/mach-a3/mach/ |
D | dma.h | 50 int crisv32_request_dma(unsigned int dmanr, const char *device_id, 52 void crisv32_free_dma(unsigned int dmanr);
|
/arch/cris/include/arch-v10/arch/ |
D | dma.h | 72 int cris_request_dma(unsigned int dmanr, const char * device_id, 75 void cris_free_dma(unsigned int dmanr, const char * device_id);
|
/arch/cris/include/arch-v32/mach-fs/mach/ |
D | dma.h | 70 int crisv32_request_dma(unsigned int dmanr, const char *device_id, 73 void crisv32_free_dma(unsigned int dmanr);
|