Lines Matching refs:chan
25 #define ADMA_ACCR(chan) (chan->mmr_base + 0x0) argument
26 #define ADMA_ACSR(chan) (chan->mmr_base + 0x4) argument
27 #define ADMA_ADAR(chan) (chan->mmr_base + 0x8) argument
28 #define ADMA_IIPCR(chan) (chan->mmr_base + 0x18) argument
29 #define ADMA_IIPAR(chan) (chan->mmr_base + 0x1c) argument
30 #define ADMA_IIPUAR(chan) (chan->mmr_base + 0x20) argument
31 #define ADMA_ANDAR(chan) (chan->mmr_base + 0x24) argument
32 #define ADMA_ADCR(chan) (chan->mmr_base + 0x28) argument
33 #define ADMA_CARMD(chan) (chan->mmr_base + 0x2c) argument
34 #define ADMA_ABCR(chan) (chan->mmr_base + 0x30) argument
35 #define ADMA_DLADR(chan) (chan->mmr_base + 0x34) argument
36 #define ADMA_DUADR(chan) (chan->mmr_base + 0x38) argument
37 #define ADMA_SLAR(src, chan) (chan->mmr_base + (0x3c + (src << 3))) argument
38 #define ADMA_SUAR(src, chan) (chan->mmr_base + (0x40 + (src << 3))) argument
155 static inline u32 iop_chan_get_current_descriptor(struct iop_adma_chan *chan) in iop_chan_get_current_descriptor() argument
157 return __raw_readl(ADMA_ADAR(chan)); in iop_chan_get_current_descriptor()
160 static inline void iop_chan_set_next_descriptor(struct iop_adma_chan *chan, in iop_chan_set_next_descriptor() argument
163 __raw_writel(next_desc_addr, ADMA_ANDAR(chan)); in iop_chan_set_next_descriptor()
168 static inline char iop_chan_is_busy(struct iop_adma_chan *chan) in iop_chan_is_busy() argument
170 if (__raw_readl(ADMA_ACSR(chan)) & in iop_chan_is_busy()
178 iop_chan_get_desc_align(struct iop_adma_chan *chan, int num_slots) in iop_chan_get_desc_align() argument
222 struct iop_adma_chan *chan) in iop_desc_get_dest_addr() argument
229 struct iop_adma_chan *chan) in iop_desc_get_qdest_addr() argument
236 struct iop_adma_chan *chan) in iop_desc_get_byte_count() argument
243 struct iop_adma_chan *chan, in iop_desc_get_src_addr() argument
251 struct iop_adma_chan *chan) in iop_desc_get_src_count() argument
387 struct iop_adma_chan *chan, in iop_desc_set_byte_count() argument
421 struct iop_adma_chan *chan, in iop_desc_set_dest_addr() argument
491 struct iop_adma_chan *chan) in iop_desc_init_interrupt() argument
494 iop_desc_set_byte_count(desc, chan, 0); in iop_desc_init_interrupt()
495 iop_desc_set_dest_addr(desc, chan, 0); in iop_desc_init_interrupt()
554 static inline void iop_chan_append(struct iop_adma_chan *chan) in iop_chan_append() argument
558 adma_accr = __raw_readl(ADMA_ACCR(chan)); in iop_chan_append()
560 __raw_writel(adma_accr, ADMA_ACCR(chan)); in iop_chan_append()
563 static inline u32 iop_chan_get_status(struct iop_adma_chan *chan) in iop_chan_get_status() argument
565 return __raw_readl(ADMA_ACSR(chan)); in iop_chan_get_status()
568 static inline void iop_chan_disable(struct iop_adma_chan *chan) in iop_chan_disable() argument
570 u32 adma_chan_ctrl = __raw_readl(ADMA_ACCR(chan)); in iop_chan_disable()
572 __raw_writel(adma_chan_ctrl, ADMA_ACCR(chan)); in iop_chan_disable()
575 static inline void iop_chan_enable(struct iop_adma_chan *chan) in iop_chan_enable() argument
579 adma_chan_ctrl = __raw_readl(ADMA_ACCR(chan)); in iop_chan_enable()
581 __raw_writel(adma_chan_ctrl, ADMA_ACCR(chan)); in iop_chan_enable()
584 static inline void iop_adma_device_clear_eot_status(struct iop_adma_chan *chan) in iop_adma_device_clear_eot_status() argument
586 u32 status = __raw_readl(ADMA_ACSR(chan)); in iop_adma_device_clear_eot_status()
588 __raw_writel(status, ADMA_ACSR(chan)); in iop_adma_device_clear_eot_status()
591 static inline void iop_adma_device_clear_eoc_status(struct iop_adma_chan *chan) in iop_adma_device_clear_eoc_status() argument
593 u32 status = __raw_readl(ADMA_ACSR(chan)); in iop_adma_device_clear_eoc_status()
595 __raw_writel(status, ADMA_ACSR(chan)); in iop_adma_device_clear_eoc_status()
598 static inline void iop_adma_device_clear_err_status(struct iop_adma_chan *chan) in iop_adma_device_clear_err_status() argument
600 u32 status = __raw_readl(ADMA_ACSR(chan)); in iop_adma_device_clear_err_status()
602 __raw_writel(status, ADMA_ACSR(chan)); in iop_adma_device_clear_err_status()
606 iop_is_err_int_parity(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_int_parity() argument
612 iop_is_err_mcu_abort(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_mcu_abort() argument
618 iop_is_err_int_tabort(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_int_tabort() argument
624 iop_is_err_int_mabort(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_int_mabort() argument
630 iop_is_err_pci_tabort(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_pci_tabort() argument
636 iop_is_err_pci_mabort(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_pci_mabort() argument
642 iop_is_err_split_tx(unsigned long status, struct iop_adma_chan *chan) in iop_is_err_split_tx() argument