Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/dma/
Dtegra186-gpc-dma.c205 struct tegra_dma_channel_regs ch_regs; member
470 struct tegra_dma_channel_regs *ch_regs; in tegra_dma_configure_next_sg() local
489 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs; in tegra_dma_configure_next_sg()
491 tdc_write(tdc, TEGRA_GPCDMA_CHAN_WCOUNT, ch_regs->wcount); in tegra_dma_configure_next_sg()
492 tdc_write(tdc, TEGRA_GPCDMA_CHAN_SRC_PTR, ch_regs->src_ptr); in tegra_dma_configure_next_sg()
493 tdc_write(tdc, TEGRA_GPCDMA_CHAN_DST_PTR, ch_regs->dst_ptr); in tegra_dma_configure_next_sg()
494 tdc_write(tdc, TEGRA_GPCDMA_CHAN_HIGH_ADDR_PTR, ch_regs->high_addr_ptr); in tegra_dma_configure_next_sg()
498 ch_regs->csr | TEGRA_GPCDMA_CSR_ENB); in tegra_dma_configure_next_sg()
504 struct tegra_dma_channel_regs *ch_regs; in tegra_dma_start() local
520 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs; in tegra_dma_start()
[all …]
Dtegra210-adma.c118 struct tegra_adma_chan_regs ch_regs; member
139 struct tegra_adma_chan_regs ch_regs; member
351 struct tegra_adma_chan_regs *ch_regs; in tegra_adma_start() local
366 ch_regs = &desc->ch_regs; in tegra_adma_start()
370 tdma_ch_write(tdc, ADMA_CH_TC, ch_regs->tc); in tegra_adma_start()
371 tdma_ch_write(tdc, ADMA_CH_CTRL, ch_regs->ctrl); in tegra_adma_start()
372 tdma_ch_write(tdc, ADMA_CH_LOWER_SRC_ADDR, ch_regs->src_addr); in tegra_adma_start()
373 tdma_ch_write(tdc, ADMA_CH_LOWER_TRG_ADDR, ch_regs->trg_addr); in tegra_adma_start()
374 tdma_ch_write(tdc, ADMA_CH_FIFO_CTRL, ch_regs->fifo_ctrl); in tegra_adma_start()
375 tdma_ch_write(tdc, ADMA_CH_CONFIG, ch_regs->config); in tegra_adma_start()
[all …]
Dtegra20-apb-dma.c150 struct tegra_dma_channel_regs ch_regs; member
436 struct tegra_dma_channel_regs *ch_regs = &sg_req->ch_regs; in tegra_dma_start() local
438 tdc_write(tdc, TEGRA_APBDMA_CHAN_CSR, ch_regs->csr); in tegra_dma_start()
439 tdc_write(tdc, TEGRA_APBDMA_CHAN_APBSEQ, ch_regs->apb_seq); in tegra_dma_start()
440 tdc_write(tdc, TEGRA_APBDMA_CHAN_APBPTR, ch_regs->apb_ptr); in tegra_dma_start()
441 tdc_write(tdc, TEGRA_APBDMA_CHAN_AHBSEQ, ch_regs->ahb_seq); in tegra_dma_start()
442 tdc_write(tdc, TEGRA_APBDMA_CHAN_AHBPTR, ch_regs->ahb_ptr); in tegra_dma_start()
444 tdc_write(tdc, TEGRA_APBDMA_CHAN_WCOUNT, ch_regs->wcount); in tegra_dma_start()
448 ch_regs->csr | TEGRA_APBDMA_CSR_ENB); in tegra_dma_start()
482 tdc_write(tdc, TEGRA_APBDMA_CHAN_APBPTR, nsg_req->ch_regs.apb_ptr); in tegra_dma_configure_for_next()
[all …]
Dat_hdmac_regs.h63 #define ch_regs(x) (AT_DMA_CH_REGS_BASE + (x) * 0x28) /* Channel x base addr */ macro
272 void __iomem *ch_regs; member
291 __raw_readl((atchan)->ch_regs + ATC_##name##_OFFSET)
294 __raw_writel((val), (atchan)->ch_regs + ATC_##name##_OFFSET)
Dpch_dma.c120 struct pch_dma_desc_regs ch_regs[MAX_CHAN_NR]; member
752 pd->ch_regs[i].dev_addr = channel_readl(pd_chan, DEV_ADDR); in pch_dma_save_regs()
753 pd->ch_regs[i].mem_addr = channel_readl(pd_chan, MEM_ADDR); in pch_dma_save_regs()
754 pd->ch_regs[i].size = channel_readl(pd_chan, SIZE); in pch_dma_save_regs()
755 pd->ch_regs[i].next = channel_readl(pd_chan, NEXT); in pch_dma_save_regs()
775 channel_writel(pd_chan, DEV_ADDR, pd->ch_regs[i].dev_addr); in pch_dma_restore_regs()
776 channel_writel(pd_chan, MEM_ADDR, pd->ch_regs[i].mem_addr); in pch_dma_restore_regs()
777 channel_writel(pd_chan, SIZE, pd->ch_regs[i].size); in pch_dma_restore_regs()
778 channel_writel(pd_chan, NEXT, pd->ch_regs[i].next); in pch_dma_restore_regs()
Dtxx9dmac.h164 void __iomem *ch_regs; member
Dtxx9dmac.c26 return dc->ch_regs; in __dma_regs()
32 return dc->ch_regs; in __dma_regs32()
1130 dc->ch_regs = &__txx9dmac_regs(dc->ddev)->CHAN[ch]; in txx9dmac_chan_probe()
1132 dc->ch_regs = &__txx9dmac_regs32(dc->ddev)->CHAN[ch]; in txx9dmac_chan_probe()
Dat_xdmac.c217 void __iomem *ch_regs; member
315 #define at_xdmac_chan_read(atchan, reg) readl_relaxed((atchan)->ch_regs + (reg))
316 #define at_xdmac_chan_write(atchan, reg, value) writel_relaxed((value), (atchan)->ch_regs + (reg))
2150 atchan->ch_regs = at_xdmac_chan_reg_base(atxdmac, i); in at_xdmac_probe()
Dat_hdmac.c1876 atchan->ch_regs = atdma->regs + ch_regs(i); in at_dma_probe()
/linux-6.1.9/drivers/memory/tegra/
Dtegra186.c44 mc->ch_regs = devm_kcalloc(mc->dev, mc->soc->num_channels, sizeof(*mc->ch_regs), in tegra186_mc_probe()
46 if (!mc->ch_regs) in tegra186_mc_probe()
52 mc->ch_regs[i] = devm_platform_ioremap_resource_byname(pdev, name); in tegra186_mc_probe()
53 if (IS_ERR(mc->ch_regs[i])) in tegra186_mc_probe()
54 return PTR_ERR(mc->ch_regs[i]); in tegra186_mc_probe()
Dmc.h120 return readl_relaxed(mc->ch_regs[ch] + offset); in mc_ch_readl()
132 writel_relaxed(value, mc->ch_regs[ch] + offset); in mc_ch_writel()
/linux-6.1.9/drivers/dma/dw/
Dregs.h268 void __iomem *ch_regs; member
300 return dwc->ch_regs; in __dwc_regs()
Dcore.c1167 dwc->ch_regs = &__dw_regs(dw)->CHAN[i]; in do_dma_probe()
/linux-6.1.9/include/soc/tegra/
Dmc.h220 void __iomem **ch_regs; member