Lines Matching refs:csr
186 u32 csr; member
448 u32 csr, status; in tegra_dma_disable() local
450 csr = tdc_read(tdc, TEGRA_GPCDMA_CHAN_CSR); in tegra_dma_disable()
453 csr &= ~TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_disable()
456 csr &= ~TEGRA_GPCDMA_CSR_ENB; in tegra_dma_disable()
457 tdc_write(tdc, TEGRA_GPCDMA_CHAN_CSR, csr); in tegra_dma_disable()
498 ch_regs->csr | TEGRA_GPCDMA_CSR_ENB); in tegra_dma_configure_next_sg()
530 tdc_write(tdc, TEGRA_GPCDMA_CHAN_CSR, ch_regs->csr); in tegra_dma_start()
534 ch_regs->csr | TEGRA_GPCDMA_CSR_ENB); in tegra_dma_start()
659 u32 status, csr; in tegra_dma_stop_client() local
666 csr = tdc_read(tdc, TEGRA_GPCDMA_CHAN_CSR); in tegra_dma_stop_client()
667 csr &= ~(TEGRA_GPCDMA_CSR_REQ_SEL_MASK); in tegra_dma_stop_client()
668 csr |= TEGRA_GPCDMA_CSR_REQ_SEL_UNUSED; in tegra_dma_stop_client()
669 tdc_write(tdc, TEGRA_GPCDMA_CHAN_CSR, csr); in tegra_dma_stop_client()
825 u32 *csr, in get_transfer_param() argument
835 *csr = TEGRA_GPCDMA_CSR_DMA_MEM2IO_FC; in get_transfer_param()
842 *csr = TEGRA_GPCDMA_CSR_DMA_IO2MEM_FC; in get_transfer_param()
859 u32 csr, mc_seq; in tegra_dma_prep_dma_memset() local
868 csr = TEGRA_GPCDMA_CSR_DMA_FIXED_PAT; in tegra_dma_prep_dma_memset()
870 csr |= TEGRA_GPCDMA_CSR_ONCE; in tegra_dma_prep_dma_memset()
872 csr |= TEGRA_GPCDMA_CSR_IRQ_MASK; in tegra_dma_prep_dma_memset()
875 csr |= TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_prep_dma_memset()
877 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_WEIGHT, 1); in tegra_dma_prep_dma_memset()
909 sg_req[0].ch_regs.csr = csr; in tegra_dma_prep_dma_memset()
926 u32 csr, mc_seq; in tegra_dma_prep_dma_memcpy() local
936 csr = TEGRA_GPCDMA_CSR_DMA_MEM2MEM; in tegra_dma_prep_dma_memcpy()
938 csr |= TEGRA_GPCDMA_CSR_ONCE; in tegra_dma_prep_dma_memcpy()
940 csr |= TEGRA_GPCDMA_CSR_IRQ_MASK; in tegra_dma_prep_dma_memcpy()
943 csr |= TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_prep_dma_memcpy()
945 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_WEIGHT, 1); in tegra_dma_prep_dma_memcpy()
979 sg_req[0].ch_regs.csr = csr; in tegra_dma_prep_dma_memcpy()
996 u32 csr, mc_seq, apb_ptr = 0, mmio_seq = 0; in tegra_dma_prep_slave_sg() local
1017 ret = get_transfer_param(tdc, direction, &apb_ptr, &mmio_seq, &csr, in tegra_dma_prep_slave_sg()
1023 csr |= TEGRA_GPCDMA_CSR_ONCE; in tegra_dma_prep_slave_sg()
1025 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_slave_sg()
1027 csr |= TEGRA_GPCDMA_CSR_IRQ_MASK; in tegra_dma_prep_slave_sg()
1029 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_WEIGHT, 1); in tegra_dma_prep_slave_sg()
1033 csr |= TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_prep_slave_sg()
1098 sg_req[i].ch_regs.csr = csr; in tegra_dma_prep_slave_sg()
1114 u32 csr, mc_seq, apb_ptr = 0, mmio_seq = 0, burst_size; in tegra_dma_prep_dma_cyclic() local
1152 ret = get_transfer_param(tdc, direction, &apb_ptr, &mmio_seq, &csr, in tegra_dma_prep_dma_cyclic()
1158 csr &= ~TEGRA_GPCDMA_CSR_ONCE; in tegra_dma_prep_dma_cyclic()
1160 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_dma_cyclic()
1162 csr |= TEGRA_GPCDMA_CSR_IRQ_MASK; in tegra_dma_prep_dma_cyclic()
1164 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_WEIGHT, 1); in tegra_dma_prep_dma_cyclic()
1168 csr |= TEGRA_GPCDMA_CSR_IE_EOC; in tegra_dma_prep_dma_cyclic()
1219 sg_req[i].ch_regs.csr = csr; in tegra_dma_prep_dma_cyclic()