Searched refs:atchan (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/dma/ |
D | at_xdmac.c | 315 #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg)) argument 316 #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg)) argument 338 static inline int at_xdmac_chan_is_cyclic(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_cyclic() argument 340 return test_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); in at_xdmac_chan_is_cyclic() 343 static inline int at_xdmac_chan_is_paused(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_paused() argument 345 return test_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); in at_xdmac_chan_is_paused() 364 static bool at_xdmac_chan_is_enabled(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_enabled() argument 366 return at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask; in at_xdmac_chan_is_enabled() 381 static void at_xdmac_start_xfer(struct at_xdmac_chan *atchan, in at_xdmac_start_xfer() argument 384 struct at_xdmac *atxdmac = to_at_xdmac(atchan->chan.device); in at_xdmac_start_xfer() [all …]
|
D | at_hdmac.c | 99 static struct at_desc *atc_first_active(struct at_dma_chan *atchan) in atc_first_active() argument 101 return list_first_entry(&atchan->active_list, in atc_first_active() 105 static struct at_desc *atc_first_queued(struct at_dma_chan *atchan) in atc_first_queued() argument 107 return list_first_entry(&atchan->queue, in atc_first_queued() 145 static struct at_desc *atc_desc_get(struct at_dma_chan *atchan) in atc_desc_get() argument 152 spin_lock_irqsave(&atchan->lock, flags); in atc_desc_get() 153 list_for_each_entry_safe(desc, _desc, &atchan->free_list, desc_node) { in atc_desc_get() 160 dev_dbg(chan2dev(&atchan->chan_common), in atc_desc_get() 163 spin_unlock_irqrestore(&atchan->lock, flags); in atc_desc_get() 164 dev_vdbg(chan2dev(&atchan->chan_common), in atc_desc_get() [all …]
|
D | at_hdmac_regs.h | 290 #define channel_readl(atchan, name) \ argument 291 __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET) 293 #define channel_writel(atchan, name, val) \ argument 294 __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET) 378 static void vdbg_dump_regs(struct at_dma_chan *atchan) in vdbg_dump_regs() argument 380 struct at_dma *atdma = to_at_dma(atchan->chan_common.device); in vdbg_dump_regs() 382 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 384 atchan->chan_common.chan_id, in vdbg_dump_regs() 388 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 390 channel_readl(atchan, SADDR), in vdbg_dump_regs() [all …]
|