Home
last modified time | relevance | path

Searched refs:chan_hw (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/dma/
H A Dswitchtec_dma.c253 static int wait_for_chan_status(struct chan_hw_regs __iomem *chan_hw, u32 mask, in wait_for_chan_status() argument
258 return readl_poll_timeout_atomic(&chan_hw->status, status, in wait_for_chan_status()
266 struct chan_hw_regs __iomem *chan_hw = swdma_chan->mmio_chan_hw; in halt_channel() local
278 writeb(SWITCHTEC_CHAN_CTRL_HALT, &chan_hw->ctrl); in halt_channel()
279 ret = wait_for_chan_status(chan_hw, SWITCHTEC_CHAN_STS_HALTED, true); in halt_channel()
289 struct chan_hw_regs __iomem *chan_hw = swdma_chan->mmio_chan_hw; in unhalt_channel() local
302 ctrl = readb(&chan_hw->ctrl); in unhalt_channel()
304 writeb(ctrl, &chan_hw->ctrl); in unhalt_channel()
305 ret = wait_for_chan_status(chan_hw, SWITCHTEC_CHAN_STS_HALTED, false); in unhalt_channel()
313 static void flush_pci_write(struct chan_hw_regs __iomem *chan_hw) in flush_pci_write() argument
[all …]