Lines Matching refs:dmanr

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()
74 if (ebus_dma_request(&sparc_ebus_dmas[dmanr].info, in enable_dma()
75 sparc_ebus_dmas[dmanr].addr, in enable_dma()
76 sparc_ebus_dmas[dmanr].count)) in enable_dma()
80 static inline void disable_dma(unsigned int dmanr) in disable_dma() argument
82 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 0); in disable_dma()
85 static inline void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
90 static inline void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument
92 ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE)); in set_dma_mode()
95 static inline void set_dma_addr(unsigned int dmanr, unsigned int addr) in set_dma_addr() argument
97 sparc_ebus_dmas[dmanr].addr = addr; in set_dma_addr()
100 static inline void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
102 sparc_ebus_dmas[dmanr].count = count; in set_dma_count()
105 static inline unsigned int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
107 return ebus_dma_residue(&sparc_ebus_dmas[dmanr].info); in get_dma_residue()