Home
last modified time | relevance | path

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

/linux-5.19.10/arch/x86/include/asm/
Ddma.h167 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 …]
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-5.19.10/arch/mips/include/asm/
Ddma.h173 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 …]
/linux-5.19.10/arch/alpha/include/asm/
Ddma.h214 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 …]
/linux-5.19.10/arch/powerpc/include/asm/
Ddma.h181 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument
185 if (dmanr != 4) { in enable_dma()
189 if (dmanr <= 3) { in enable_dma()
190 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma()
193 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma()
197 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument
199 if (dmanr <= 3) in disable_dma()
200 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma()
202 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma()
212 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
[all …]
Dfloppy.h38 void (*_disable_dma)(unsigned int dmanr);
39 void (*_free_dma)(unsigned int dmanr);
/linux-5.19.10/arch/mips/include/asm/mach-au1x00/
Dau1000_dma.h124 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 …]
/linux-5.19.10/arch/parisc/include/asm/
Ddma.h92 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 …]
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-5.19.10/arch/sparc/include/asm/
Dparport.h48 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 …]
/linux-5.19.10/kernel/
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-5.19.10/arch/mips/alchemy/common/
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-5.19.10/include/asm-generic/
Ddma.h13 extern int request_dma(unsigned int dmanr, const char *device_id);
14 extern void free_dma(unsigned int dmanr);
/linux-5.19.10/arch/xtensa/include/asm/
Ddma.h52 extern int request_dma(unsigned int dmanr, const char * device_id);
53 extern void free_dma(unsigned int dmanr);
/linux-5.19.10/arch/m68k/include/asm/
Dfloppy.h132 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument
/linux-5.19.10/Documentation/core-api/
Ddma-isa-lpc.rst77 extern int request_dma(unsigned int dmanr, const char * device_id);
78 extern void free_dma(unsigned int dmanr);