Searched refs:atchan (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/dma/ |
D | at_xdmac.c | 256 #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg)) argument 257 #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg)) argument 279 static inline int at_xdmac_chan_is_cyclic(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_cyclic() argument 281 return test_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); in at_xdmac_chan_is_cyclic() 284 static inline int at_xdmac_chan_is_paused(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_paused() argument 286 return test_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); in at_xdmac_chan_is_paused() 316 static bool at_xdmac_chan_is_enabled(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_enabled() argument 318 return at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask; in at_xdmac_chan_is_enabled() 333 static void at_xdmac_start_xfer(struct at_xdmac_chan *atchan, in at_xdmac_start_xfer() argument 336 struct at_xdmac *atxdmac = to_at_xdmac(atchan->chan.device); in at_xdmac_start_xfer() [all …]
|
D | at_hdmac.c | 80 static struct at_desc *atc_first_active(struct at_dma_chan *atchan) in atc_first_active() argument 82 return list_first_entry(&atchan->active_list, in atc_first_active() 86 static struct at_desc *atc_first_queued(struct at_dma_chan *atchan) in atc_first_queued() argument 88 return list_first_entry(&atchan->queue, in atc_first_queued() 126 static struct at_desc *atc_desc_get(struct at_dma_chan *atchan) in atc_desc_get() argument 133 spin_lock_irqsave(&atchan->lock, flags); in atc_desc_get() 134 list_for_each_entry_safe(desc, _desc, &atchan->free_list, desc_node) { in atc_desc_get() 141 dev_dbg(chan2dev(&atchan->chan_common), in atc_desc_get() 144 spin_unlock_irqrestore(&atchan->lock, flags); in atc_desc_get() 145 dev_vdbg(chan2dev(&atchan->chan_common), in atc_desc_get() [all …]
|
D | at_hdmac_regs.h | 268 #define channel_readl(atchan, name) \ argument 269 __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET) 271 #define channel_writel(atchan, name, val) \ argument 272 __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET) 356 static void vdbg_dump_regs(struct at_dma_chan *atchan) in vdbg_dump_regs() argument 358 struct at_dma *atdma = to_at_dma(atchan->chan_common.device); in vdbg_dump_regs() 360 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 362 atchan->chan_common.chan_id, in vdbg_dump_regs() 366 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 368 channel_readl(atchan, SADDR), in vdbg_dump_regs() [all …]
|