• Home
  • Raw
  • Download

Lines Matching refs:dmanr

48 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()
73 if (ebus_dma_request(&sparc_ebus_dmas[dmanr].info, in enable_dma()
74 sparc_ebus_dmas[dmanr].addr, in enable_dma()
75 sparc_ebus_dmas[dmanr].count)) in enable_dma()
79 static inline void disable_dma(unsigned int dmanr) in disable_dma() argument
81 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 0); in disable_dma()
84 static inline void clear_dma_ff(unsigned int dmanr) in clear_dma_ff() argument
89 static inline void set_dma_mode(unsigned int dmanr, char mode) in set_dma_mode() argument
91 ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE)); in set_dma_mode()
94 static inline void set_dma_addr(unsigned int dmanr, unsigned int addr) in set_dma_addr() argument
96 sparc_ebus_dmas[dmanr].addr = addr; in set_dma_addr()
99 static inline void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
101 sparc_ebus_dmas[dmanr].count = count; in set_dma_count()
104 static inline unsigned int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
106 return ebus_dma_residue(&sparc_ebus_dmas[dmanr].info); in get_dma_residue()