Lines Matching refs:ch_regs
150 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()
483 tdc_write(tdc, TEGRA_APBDMA_CHAN_AHBPTR, nsg_req->ch_regs.ahb_ptr); in tegra_dma_configure_for_next()
486 nsg_req->ch_regs.wcount); in tegra_dma_configure_for_next()
488 nsg_req->ch_regs.csr | TEGRA_APBDMA_CSR_ENB); in tegra_dma_configure_for_next()
1029 struct tegra_dma_channel_regs *ch_regs, in tegra_dma_prep_wcount() argument
1035 ch_regs->wcount = len_field; in tegra_dma_prep_wcount()
1037 ch_regs->csr |= len_field; in tegra_dma_prep_wcount()
1131 sg_req->ch_regs.apb_ptr = apb_ptr; in tegra_dma_prep_slave_sg()
1132 sg_req->ch_regs.ahb_ptr = mem; in tegra_dma_prep_slave_sg()
1133 sg_req->ch_regs.csr = csr; in tegra_dma_prep_slave_sg()
1134 tegra_dma_prep_wcount(tdc, &sg_req->ch_regs, len); in tegra_dma_prep_slave_sg()
1135 sg_req->ch_regs.apb_seq = apb_seq; in tegra_dma_prep_slave_sg()
1136 sg_req->ch_regs.ahb_seq = ahb_seq; in tegra_dma_prep_slave_sg()
1266 sg_req->ch_regs.apb_ptr = apb_ptr; in tegra_dma_prep_dma_cyclic()
1267 sg_req->ch_regs.ahb_ptr = mem; in tegra_dma_prep_dma_cyclic()
1268 sg_req->ch_regs.csr = csr; in tegra_dma_prep_dma_cyclic()
1269 tegra_dma_prep_wcount(tdc, &sg_req->ch_regs, len); in tegra_dma_prep_dma_cyclic()
1270 sg_req->ch_regs.apb_seq = apb_seq; in tegra_dma_prep_dma_cyclic()
1271 sg_req->ch_regs.ahb_seq = ahb_seq; in tegra_dma_prep_dma_cyclic()