Home
last modified time | relevance | path

Searched refs:dmanr (Results 1 – 17 of 17) sorted by relevance

/linux/arch/m68k/include/asm/
A Ddma.h131 printk("enable_dma(dmanr=%d)\n", dmanr); in enable_dma()
144 printk("disable_dma(dmanr=%d)\n", dmanr); in disable_dma()
148 dmapb = (unsigned char *) dma_base_addr[dmanr]; in disable_dma()
180 dmabp = (unsigned char *) dma_base_addr[dmanr]; in set_dma_mode()
223 dmalp = (unsigned int *) dma_base_addr[dmanr]; in set_dma_addr()
256 dma_device_address[dmanr] = a; in set_dma_device_addr()
286 printk("get_dma_residue(dmanr=%d)\n", dmanr); in get_dma_residue()
324 printk("enable_dma(dmanr=%d)\n", dmanr); in enable_dma()
336 printk("disable_dma(dmanr=%d)\n", dmanr); in disable_dma()
440 dma_device_address[dmanr] = a; in set_dma_device_addr()
[all …]
A Dfloppy.h132 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument
/linux/arch/alpha/include/asm/
A Ddma.h216 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()
224 if (dmanr<=3) in disable_dma()
239 if (dmanr<=3) in clear_dma_ff()
248 if (dmanr<=3) in set_dma_mode()
257 if (dmanr<=3) in set_dma_ext_mode()
269 switch(dmanr) { in set_dma_page()
307 if (dmanr <= 3) { in set_dma_addr()
329 if (dmanr <= 3) { in set_dma_count()
[all …]
/linux/arch/x86/include/asm/
A Ddma.h169 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()
177 if (dmanr <= 3) in disable_dma()
192 if (dmanr <= 3) in clear_dma_ff()
201 if (dmanr <= 3) in set_dma_mode()
214 switch (dmanr) { in set_dma_page()
245 set_dma_page(dmanr, a>>16); in set_dma_addr()
246 if (dmanr <= 3) { in set_dma_addr()
267 if (dmanr <= 3) { in set_dma_count()
[all …]
A Dfloppy.h128 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);
/linux/arch/mips/include/asm/
A Ddma.h175 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()
183 if (dmanr<=3) in disable_dma()
198 if (dmanr<=3) in clear_dma_ff()
207 if (dmanr<=3) in set_dma_mode()
220 switch(dmanr) { in set_dma_page()
251 set_dma_page(dmanr, a>>16); in set_dma_addr()
252 if (dmanr <= 3) { in set_dma_addr()
273 if (dmanr <= 3) { in set_dma_count()
[all …]
/linux/arch/mips/include/asm/mach-au1x00/
A Dau1000_dma.h132 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()
156 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer0()
165 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer1()
173 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffers()
182 struct dma_chan *chan = get_dma_chan(dmanr); in start_dma()
193 struct dma_chan *chan = get_dma_chan(dmanr); in halt_dma()
210 struct dma_chan *chan = get_dma_chan(dmanr); in disable_dma()
215 halt_dma(dmanr); in disable_dma()
[all …]
/linux/arch/powerpc/include/asm/
A Ddma.h185 if (dmanr != 4) { in enable_dma()
189 if (dmanr <= 3) { in enable_dma()
190 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
199 if (dmanr <= 3) in disable_dma()
214 if (dmanr <= 3) in clear_dma_ff()
223 if (dmanr <= 3) in set_dma_mode()
236 switch (dmanr) { in set_dma_page()
273 if (dmanr <= 3) { in set_dma_addr()
284 set_dma_page(dmanr, phys >> 16); in set_dma_addr()
299 if (dmanr <= 3) { in set_dma_count()
[all …]
A Dfloppy.h38 void (*_disable_dma)(unsigned int dmanr);
39 void (*_free_dma)(unsigned int dmanr);
/linux/arch/parisc/include/asm/
A Ddma.h94 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()
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()
120 if (dmanr<=3) in disable_dma()
121 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
123 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
128 #define request_dma(dmanr, device_id) (0) argument
[all …]
A Dfloppy.h128 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);
/linux/arch/sparc/include/asm/
A Dparport.h50 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()
63 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { 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()
74 sparc_ebus_dmas[dmanr].addr, in enable_dma()
75 sparc_ebus_dmas[dmanr].count)) in enable_dma()
96 sparc_ebus_dmas[dmanr].addr = addr; in set_dma_addr()
[all …]
/linux/kernel/
A Ddma.c70 int request_dma(unsigned int dmanr, const char * device_id) in request_dma() argument
72 if (dmanr >= MAX_DMA_CHANNELS) in request_dma()
75 if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0) in request_dma()
78 dma_chan_busy[dmanr].device_id = device_id; in request_dma()
88 void free_dma(unsigned int dmanr) in free_dma() argument
90 if (dmanr >= MAX_DMA_CHANNELS) { in free_dma()
91 printk(KERN_WARNING "Trying to free DMA%d\n", dmanr); in free_dma()
95 if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) { in free_dma()
96 printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr); in free_dma()
104 int request_dma(unsigned int dmanr, const char *device_id) in request_dma() argument
[all …]
/linux/arch/mips/alchemy/common/
A Ddma.c134 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()
/linux/include/asm-generic/
A Ddma.h13 extern int request_dma(unsigned int dmanr, const char *device_id);
14 extern void free_dma(unsigned int dmanr);
/linux/arch/xtensa/include/asm/
A Ddma.h52 extern int request_dma(unsigned int dmanr, const char * device_id);
53 extern void free_dma(unsigned int dmanr);
/linux/Documentation/core-api/
A Ddma-isa-lpc.rst77 extern int request_dma(unsigned int dmanr, const char * device_id);
78 extern void free_dma(unsigned int dmanr);

Completed in 22 milliseconds