Searched refs:atchan (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/drivers/dma/ |
D | at_xdmac.c | 263 #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg)) argument 264 #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg)) argument 286 static inline int at_xdmac_chan_is_cyclic(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_cyclic() argument 288 return test_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); in at_xdmac_chan_is_cyclic() 291 static inline int at_xdmac_chan_is_paused(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_paused() argument 293 return test_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); in at_xdmac_chan_is_paused() 318 static bool at_xdmac_chan_is_enabled(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_enabled() argument 320 return at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask; in at_xdmac_chan_is_enabled() 335 static void at_xdmac_start_xfer(struct at_xdmac_chan *atchan, in at_xdmac_start_xfer() argument 338 struct at_xdmac *atxdmac = to_at_xdmac(atchan->chan.device); in at_xdmac_start_xfer() [all …]
|
D | at_hdmac.c | 83 static struct at_desc *atc_first_active(struct at_dma_chan *atchan) in atc_first_active() argument 85 return list_first_entry(&atchan->active_list, in atc_first_active() 89 static struct at_desc *atc_first_queued(struct at_dma_chan *atchan) in atc_first_queued() argument 91 return list_first_entry(&atchan->queue, in atc_first_queued() 130 static struct at_desc *atc_desc_get(struct at_dma_chan *atchan) in atc_desc_get() argument 138 spin_lock_irqsave(&atchan->lock, flags); in atc_desc_get() 139 list_for_each_entry_safe(desc, _desc, &atchan->free_list, desc_node) { in atc_desc_get() 146 dev_dbg(chan2dev(&atchan->chan_common), in atc_desc_get() 149 spin_unlock_irqrestore(&atchan->lock, flags); in atc_desc_get() 150 dev_vdbg(chan2dev(&atchan->chan_common), in atc_desc_get() [all …]
|
D | at_hdmac_regs.h | 265 #define channel_readl(atchan, name) \ argument 266 __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET) 268 #define channel_writel(atchan, name, val) \ argument 269 __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET) 352 static void vdbg_dump_regs(struct at_dma_chan *atchan) in vdbg_dump_regs() argument 354 struct at_dma *atdma = to_at_dma(atchan->chan_common.device); in vdbg_dump_regs() 356 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 358 atchan->chan_common.chan_id, in vdbg_dump_regs() 362 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 364 channel_readl(atchan, SADDR), in vdbg_dump_regs() [all …]
|