Lines Matching refs:dmanr
124 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()
171 static inline void enable_dma_buffers(unsigned int dmanr) in enable_dma_buffers() argument
173 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffers()
180 static inline void start_dma(unsigned int dmanr) in start_dma() argument
182 struct dma_chan *chan = get_dma_chan(dmanr); in start_dma()
191 static inline void halt_dma(unsigned int dmanr) in halt_dma() argument
193 struct dma_chan *chan = get_dma_chan(dmanr); in halt_dma()
208 static inline void disable_dma(unsigned int dmanr) in disable_dma() argument
210 struct dma_chan *chan = get_dma_chan(dmanr); in disable_dma()
215 halt_dma(dmanr); in disable_dma()
221 static inline int dma_halted(unsigned int dmanr) in dma_halted() argument
223 struct dma_chan *chan = get_dma_chan(dmanr); in dma_halted()
231 static inline void init_dma(unsigned int dmanr) in init_dma() argument
233 struct dma_chan *chan = get_dma_chan(dmanr); in init_dma()
239 disable_dma(dmanr); in init_dma()
255 static inline void set_dma_mode(unsigned int dmanr, unsigned int mode) in set_dma_mode() argument
257 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_mode()
271 static inline unsigned int get_dma_mode(unsigned int dmanr) in get_dma_mode() argument
273 struct dma_chan *chan = get_dma_chan(dmanr); in get_dma_mode()
280 static inline int get_dma_active_buffer(unsigned int dmanr) in get_dma_active_buffer() argument
282 struct dma_chan *chan = get_dma_chan(dmanr); in get_dma_active_buffer()
294 static inline void set_dma_fifo_addr(unsigned int dmanr, unsigned int a) in set_dma_fifo_addr() argument
296 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_fifo_addr()
313 static inline void clear_dma_done0(unsigned int dmanr) in clear_dma_done0() argument
315 struct dma_chan *chan = get_dma_chan(dmanr); in clear_dma_done0()
322 static inline void clear_dma_done1(unsigned int dmanr) in clear_dma_done1() argument
324 struct dma_chan *chan = get_dma_chan(dmanr); in clear_dma_done1()
334 static inline void set_dma_page(unsigned int dmanr, char pagenr) in set_dma_page() argument
341 static inline void set_dma_addr0(unsigned int dmanr, unsigned int a) in set_dma_addr0() argument
343 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_addr0()
353 static inline void set_dma_addr1(unsigned int dmanr, unsigned int a) in set_dma_addr1() argument
355 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_addr1()
366 static inline void set_dma_count0(unsigned int dmanr, unsigned int count) in set_dma_count0() argument
368 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_count0()
379 static inline void set_dma_count1(unsigned int dmanr, unsigned int count) in set_dma_count1() argument
381 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_count1()
392 static inline void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
394 struct dma_chan *chan = get_dma_chan(dmanr); in set_dma_count()
407 static inline unsigned int get_dma_buffer_done(unsigned int dmanr) in get_dma_buffer_done() argument
409 struct dma_chan *chan = get_dma_chan(dmanr); in get_dma_buffer_done()
420 static inline int get_dma_done_irq(unsigned int dmanr) in get_dma_done_irq() argument
422 struct dma_chan *chan = get_dma_chan(dmanr); in get_dma_done_irq()
432 static inline int get_dma_residue(unsigned int dmanr) in get_dma_residue() argument
435 struct dma_chan *chan = get_dma_chan(dmanr); in get_dma_residue()