/linux-6.12.1/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);
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/arch/alpha/include/asm/ |
D | dma.h | 207 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 209 if (dmanr<=3) in enable_dma() 210 dma_outb(dmanr, DMA1_MASK_REG); in enable_dma() 212 dma_outb(dmanr & 3, DMA2_MASK_REG); in enable_dma() 215 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 217 if (dmanr<=3) in disable_dma() 218 dma_outb(dmanr | 4, DMA1_MASK_REG); in disable_dma() 220 dma_outb((dmanr & 3) | 4, DMA2_MASK_REG); in disable_dma() 230 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument 232 if (dmanr<=3) in clear_dma_ff() [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | dma.h | 181 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 …]
|
D | floppy.h | 38 void (*_disable_dma)(unsigned int dmanr); 39 void (*_free_dma)(unsigned int dmanr);
|
/linux-6.12.1/arch/mips/include/asm/mach-au1x00/ |
D | au1000_dma.h | 124 extern void free_au1000_dma(unsigned int dmanr); 129 static inline struct dma_chan *get_dma_chan(unsigned int dmanr) in get_dma_chan() argument 131 if (dmanr >= NUM_AU1000_DMA_CHANNELS || in get_dma_chan() 132 au1000_dma_table[dmanr].dev_id < 0) in get_dma_chan() 134 return &au1000_dma_table[dmanr]; in get_dma_chan() 153 static inline void enable_dma_buffer0(unsigned int dmanr) in enable_dma_buffer0() argument 155 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer0() 162 static inline void enable_dma_buffer1(unsigned int dmanr) in enable_dma_buffer1() argument 164 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer1() 170 static inline void enable_dma_buffers(unsigned int dmanr) in enable_dma_buffers() argument [all …]
|
/linux-6.12.1/arch/parisc/include/asm/ |
D | dma.h | 94 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument 96 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() 109 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument 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() 119 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument 122 if (dmanr<=3) in disable_dma() [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);
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | parport_64.h | 49 static inline int request_dma(unsigned int dmanr, const char *device_id) in request_dma() argument 51 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() 61 printk(KERN_WARNING "Trying to free DMA%d\n", dmanr); in free_dma() 64 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma() 65 printk(KERN_WARNING "Trying to free free DMA%d\n", dmanr); 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() [all …]
|
/linux-6.12.1/kernel/ |
D | dma.c | 70 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-6.12.1/include/asm-generic/ |
D | dma.h | 13 extern int request_dma(unsigned int dmanr, const char *device_id); 14 extern void free_dma(unsigned int dmanr);
|
/linux-6.12.1/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);
|
/linux-6.12.1/arch/mips/alchemy/common/ |
D | dma.c | 198 void free_au1000_dma(unsigned int dmanr) in free_au1000_dma() argument 200 struct dma_chan *chan = get_dma_chan(dmanr); in free_au1000_dma() 203 printk(KERN_ERR "Error trying to free DMA%d\n", dmanr); in free_au1000_dma() 207 disable_dma(dmanr); in free_au1000_dma()
|
/linux-6.12.1/arch/m68k/include/asm/ |
D | floppy.h | 132 static int vdma_request_dma(unsigned int dmanr, const char * device_id) in vdma_request_dma() argument
|
/linux-6.12.1/Documentation/core-api/ |
D | dma-isa-lpc.rst | 77 extern int request_dma(unsigned int dmanr, const char * device_id); 78 extern void free_dma(unsigned int dmanr);
|