Lines Matching refs:ctr1

241 	u32 ctr1;  member
371 dev_dbg(chan2dev(chan), "| C%dTR1: %08x\n", chan->id, hwdesc->ctr1); in stm32_dma3_chan_dump_hwdesc()
457 u32 ctr1 = readl_relaxed(ddata->base + STM32_DMA3_CTR1(chan->id)); in stm32_dma3_check_user_setting() local
463 u32 sdw = 1 << FIELD_GET(CTR1_SDW_LOG2, ctr1); in stm32_dma3_check_user_setting()
464 u32 ddw = 1 << FIELD_GET(CTR1_DDW_LOG2, ctr1); in stm32_dma3_check_user_setting()
465 u32 sap = FIELD_GET(CTR1_SAP, ctr1); in stm32_dma3_check_user_setting()
466 u32 dap = FIELD_GET(CTR1_DAP, ctr1); in stm32_dma3_check_user_setting()
472 if (FIELD_GET(CTR1_PAM, ctr1) == CTR1_PAM_PACK_UNPACK && bndt % ddw) in stm32_dma3_check_user_setting()
487 u32 ctr1, u32 ctr2, bool is_last, bool is_cyclic) in stm32_dma3_chan_prep_hwdesc() argument
494 hwdesc->ctr1 = ctr1; in stm32_dma3_chan_prep_hwdesc()
552 u32 *ccr, u32 *ctr1, u32 *ctr2, in stm32_dma3_chan_prep_hw() argument
726 *ctr1 = _ctr1; in stm32_dma3_chan_prep_hw()
756 writel_relaxed(hwdesc->ctr1, ddata->base + STM32_DMA3_CTR1(id)); in stm32_dma3_chan_start()
896 fifol = FIELD_GET(CSR_FIFOL, csr) * (1 << FIELD_GET(CTR1_DDW_LOG2, hwdesc->ctr1)); in stm32_dma3_chan_set_residue()
914 pack_unpack = !!(FIELD_GET(CTR1_PAM, hwdesc->ctr1) == CTR1_PAM_PACK_UNPACK); in stm32_dma3_chan_set_residue()
915 if (pack_unpack && (hwdesc->ctr1 & CTR1_DINC)) { in stm32_dma3_chan_set_residue()
1152 u32 count, i, ctr1, ctr2; in stm32_dma3_prep_dma_memcpy() local
1170 ret = stm32_dma3_chan_prep_hw(chan, DMA_MEM_TO_MEM, &swdesc->ccr, &ctr1, &ctr2, in stm32_dma3_prep_dma_memcpy()
1176 ctr1, ctr2, next_size == remaining, false); in stm32_dma3_prep_dma_memcpy()
1205 u32 i, j, count, ctr1, ctr2; in stm32_dma3_prep_slave_sg() local
1234 ret = stm32_dma3_chan_prep_hw(chan, dir, &swdesc->ccr, &ctr1, &ctr2, in stm32_dma3_prep_slave_sg()
1237 if (FIELD_GET(CTR1_DINC, ctr1)) in stm32_dma3_prep_slave_sg()
1243 ret = stm32_dma3_chan_prep_hw(chan, dir, &swdesc->ccr, &ctr1, &ctr2, in stm32_dma3_prep_slave_sg()
1246 if (FIELD_GET(CTR1_SINC, ctr1)) in stm32_dma3_prep_slave_sg()
1254 ctr1, ctr2, j == (count - 1), false); in stm32_dma3_prep_slave_sg()
1286 u32 count, i, ctr1, ctr2; in stm32_dma3_prep_dma_cyclic() local
1308 ret = stm32_dma3_chan_prep_hw(chan, DMA_MEM_TO_DEV, &swdesc->ccr, &ctr1, &ctr2, in stm32_dma3_prep_dma_cyclic()
1314 ret = stm32_dma3_chan_prep_hw(chan, DMA_DEV_TO_MEM, &swdesc->ccr, &ctr1, &ctr2, in stm32_dma3_prep_dma_cyclic()
1334 ctr1, ctr2, i == (count - 1), true); in stm32_dma3_prep_dma_cyclic()