Searched refs:atchan (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/dma/ |
D | at_xdmac.c | 266 #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg)) argument 267 #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg)) argument 289 static inline int at_xdmac_chan_is_cyclic(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_cyclic() argument 291 return test_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); in at_xdmac_chan_is_cyclic() 294 static inline int at_xdmac_chan_is_paused(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_paused() argument 296 return test_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); in at_xdmac_chan_is_paused() 321 static bool at_xdmac_chan_is_enabled(struct at_xdmac_chan *atchan) in at_xdmac_chan_is_enabled() argument 323 return at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask; in at_xdmac_chan_is_enabled() 338 static void at_xdmac_start_xfer(struct at_xdmac_chan *atchan, in at_xdmac_start_xfer() argument 341 struct at_xdmac *atxdmac = to_at_xdmac(atchan->chan.device); in at_xdmac_start_xfer() [all …]
|
D | at_hdmac.c | 85 static struct at_desc *atc_first_active(struct at_dma_chan *atchan) in atc_first_active() argument 87 return list_first_entry(&atchan->active_list, in atc_first_active() 91 static struct at_desc *atc_first_queued(struct at_dma_chan *atchan) in atc_first_queued() argument 93 return list_first_entry(&atchan->queue, in atc_first_queued() 131 static struct at_desc *atc_desc_get(struct at_dma_chan *atchan) in atc_desc_get() argument 139 spin_lock_irqsave(&atchan->lock, flags); in atc_desc_get() 140 list_for_each_entry_safe(desc, _desc, &atchan->free_list, desc_node) { in atc_desc_get() 147 dev_dbg(chan2dev(&atchan->chan_common), in atc_desc_get() 150 spin_unlock_irqrestore(&atchan->lock, flags); in atc_desc_get() 151 dev_vdbg(chan2dev(&atchan->chan_common), in atc_desc_get() [all …]
|
D | at_hdmac_regs.h | 274 #define channel_readl(atchan, name) \ argument 275 __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET) 277 #define channel_writel(atchan, name, val) \ argument 278 __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET) 362 static void vdbg_dump_regs(struct at_dma_chan *atchan) in vdbg_dump_regs() argument 364 struct at_dma *atdma = to_at_dma(atchan->chan_common.device); in vdbg_dump_regs() 366 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 368 atchan->chan_common.chan_id, in vdbg_dump_regs() 372 dev_err(chan2dev(&atchan->chan_common), in vdbg_dump_regs() 374 channel_readl(atchan, SADDR), in vdbg_dump_regs() [all …]
|