Lines Matching refs:wcount
138 u32 wcount; member
450 tdc_write(tdc, TEGRA_APBDMA_CHAN_WCOUNT, ch_regs->wcount); in tegra_dma_start()
492 nsg_req->ch_regs.wcount); in tegra_dma_configure_for_next()
754 u32 status, wcount; in tegra_dma_terminate_all() local
772 wcount = tdc_read(tdc, TEGRA_APBDMA_CHAN_WORD_TRANSFER); in tegra_dma_terminate_all()
774 wcount = status; in tegra_dma_terminate_all()
783 get_current_xferred_count(tdc, sgreq, wcount); in tegra_dma_terminate_all()
842 u32 status, wcount = 0; in tegra_dma_sg_bytes_xferred() local
848 wcount = tdc_read(tdc, TEGRA_APBDMA_CHAN_WORD_TRANSFER); in tegra_dma_sg_bytes_xferred()
853 wcount = status; in tegra_dma_sg_bytes_xferred()
858 wcount = get_current_xferred_count(tdc, sg_req, wcount); in tegra_dma_sg_bytes_xferred()
860 if (!wcount) { in tegra_dma_sg_bytes_xferred()
876 wcount = sg_req->req_len - 4; in tegra_dma_sg_bytes_xferred()
878 } else if (wcount < sg_req->words_xferred) { in tegra_dma_sg_bytes_xferred()
890 wcount = sg_req->req_len - 4; in tegra_dma_sg_bytes_xferred()
892 sg_req->words_xferred = wcount; in tegra_dma_sg_bytes_xferred()
895 return wcount; in tegra_dma_sg_bytes_xferred()
1041 ch_regs->wcount = len_field; in tegra_dma_prep_wcount()