• Home
  • Raw
  • Download

Lines Matching refs:dmanr

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()
180 dmabp = (unsigned char *) dma_base_addr[dmanr]; in set_dma_mode()
181 dmawp = (unsigned short *) dma_base_addr[dmanr]; in set_dma_mode()
207 dmanr, (int) &dmabp[MCFDMA_DSR], dmabp[MCFDMA_DSR], in set_dma_mode()
213 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) in set_dma_addr() argument
219 printk("set_dma_addr(dmanr=%d,a=%x)\n", dmanr, a); in set_dma_addr()
222 dmawp = (unsigned short *) dma_base_addr[dmanr]; in set_dma_addr()
223 dmalp = (unsigned int *) dma_base_addr[dmanr]; in set_dma_addr()
230 dmalp[MCFDMA_DAR] = dma_device_address[dmanr]; in set_dma_addr()
235 dmalp[MCFDMA_SAR] = dma_device_address[dmanr]; in set_dma_addr()
240 __FILE__, __LINE__, dmanr, (int) &dmawp[MCFDMA_DCR], dmawp[MCFDMA_DCR], in set_dma_addr()
250 static __inline__ void set_dma_device_addr(unsigned int dmanr, unsigned int a) in set_dma_device_addr() argument
253 printk("set_dma_device_addr(dmanr=%d,a=%x)\n", dmanr, a); in set_dma_device_addr()
256 dma_device_address[dmanr] = a; in set_dma_device_addr()
262 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
267 printk("set_dma_count(dmanr=%d,count=%d)\n", dmanr, count); in set_dma_count()
270 dmawp = (unsigned short *) dma_base_addr[dmanr]; in set_dma_count()
280 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
286 printk("get_dma_residue(dmanr=%d)\n", dmanr); in get_dma_residue()
289 dmawp = (unsigned short *) dma_base_addr[dmanr]; in get_dma_residue()
319 static __inline__ void enable_dma(unsigned int dmanr) in enable_dma() argument
324 printk("enable_dma(dmanr=%d)\n", dmanr); in enable_dma()
327 dmalp = (unsigned int *) dma_base_addr[dmanr]; in enable_dma()
331 static __inline__ void disable_dma(unsigned int dmanr) in disable_dma() argument
336 printk("disable_dma(dmanr=%d)\n", dmanr); in disable_dma()
339 dmalp = (unsigned int *) dma_base_addr[dmanr]; in disable_dma()
356 static __inline__ void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
361 static __inline__ void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument
368 printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode); in set_dma_mode()
370 dmalp = (unsigned int *) dma_base_addr[dmanr]; in set_dma_mode()
371 dmawp = (unsigned short *) dma_base_addr[dmanr]; in set_dma_mode()
393 dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR], in set_dma_mode()
399 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) in set_dma_addr() argument
404 printk("set_dma_addr(dmanr=%d,a=%x)\n", dmanr, a); in set_dma_addr()
407 dmalp = (unsigned int *) dma_base_addr[dmanr]; in set_dma_addr()
414 dmalp[MCFDMA_DDAR] = dma_device_address[dmanr]; in set_dma_addr()
419 dmalp[MCFDMA_DSAR] = dma_device_address[dmanr]; in set_dma_addr()
424 __FILE__, __LINE__, dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR], in set_dma_addr()
434 static __inline__ void set_dma_device_addr(unsigned int dmanr, unsigned int a) in set_dma_device_addr() argument
437 printk("set_dma_device_addr(dmanr=%d,a=%x)\n", dmanr, a); in set_dma_device_addr()
440 dma_device_address[dmanr] = a; in set_dma_device_addr()
448 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
453 printk("set_dma_count(dmanr=%d,count=%d)\n", dmanr, count); in set_dma_count()
456 dmalp = (unsigned int *) dma_base_addr[dmanr]; in set_dma_count()
466 static __inline__ int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
472 printk("get_dma_residue(dmanr=%d)\n", dmanr); in get_dma_residue()
475 dmalp = (unsigned int *) dma_base_addr[dmanr]; in get_dma_residue()
489 extern int request_dma(unsigned int dmanr, const char * device_id); /* reserve a DMA channel */
490 extern void free_dma(unsigned int dmanr); /* release it again */