Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/include/asm/
H 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 …]
H 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);
/openbmc/linux/arch/mips/include/asm/
H 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 …]
/openbmc/linux/arch/alpha/include/asm/
H 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 …]
/openbmc/linux/arch/powerpc/include/asm/
H 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 …]
H A Dfloppy.h38 void (*_disable_dma)(unsigned int dmanr);
39 void (*_free_dma)(unsigned int dmanr);
/openbmc/linux/arch/mips/include/asm/mach-au1x00/
H 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 …]
/openbmc/linux/arch/parisc/include/asm/
H A Ddma.h96 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue()
97 : ((dmanr&3)<<2) + 2 + IO_DMA2_BASE; in get_dma_residue()
105 return (dmanr<=3)? count : (count<<1); in get_dma_residue()
112 if (dmanr<=3) in enable_dma()
113 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
115 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma()
122 if (dmanr<=3) in disable_dma()
123 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
125 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
130 #define request_dma(dmanr, device_id) (0) argument
[all …]
H 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);
/openbmc/linux/arch/sparc/include/asm/
H A Dparport_64.h51 if (dmanr >= PARPORT_PC_MAX_PORTS) in request_dma()
53 if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) in request_dma()
58 static inline void free_dma(unsigned int dmanr) in free_dma() argument
60 if (dmanr >= PARPORT_PC_MAX_PORTS) { in free_dma()
64 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma()
70 static inline void enable_dma(unsigned int dmanr) in enable_dma() argument
72 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 1); in enable_dma()
75 sparc_ebus_dmas[dmanr].addr, in enable_dma()
76 sparc_ebus_dmas[dmanr].count)) in enable_dma()
97 sparc_ebus_dmas[dmanr].addr = addr; in set_dma_addr()
[all …]
/openbmc/linux/kernel/
H 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 …]
/openbmc/linux/arch/mips/alchemy/common/
H 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()
/openbmc/linux/include/asm-generic/
H A Ddma.h13 extern int request_dma(unsigned int dmanr, const char *device_id);
14 extern void free_dma(unsigned int dmanr);
/openbmc/linux/arch/xtensa/include/asm/
H A Ddma.h52 extern int request_dma(unsigned int dmanr, const char * device_id);
53 extern void free_dma(unsigned int dmanr);
/openbmc/linux/arch/m68k/include/asm/
H A Dfloppy.h132 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument
/openbmc/linux/Documentation/core-api/
H A Ddma-isa-lpc.rst77 extern int request_dma(unsigned int dmanr, const char * device_id);
78 extern void free_dma(unsigned int dmanr);