Lines Matching defs:threshold
117 /* DMA FIFO threshold selection */
220 u32 threshold;
285 u32 threshold)
289 if (threshold == STM32_DMA_FIFO_THRESHOLD_FULL)
304 static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold,
309 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
319 (threshold + 1) / 4) % burst;
331 static bool stm32_dma_is_burst_possible(u32 buf_len, u32 threshold)
334 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
342 return ((buf_len % ((threshold + 1) * 4)) == 0);
345 static u32 stm32_dma_get_best_burst(u32 buf_len, u32 max_burst, u32 threshold,
350 if (best_burst == 1 || !stm32_dma_is_burst_possible(buf_len, threshold))
354 !stm32_dma_fifo_threshold_is_allowed(best_burst, threshold,
946 fifoth = chan->threshold;
995 /* Set FIFO threshold */
1052 /* Set FIFO threshold */
1252 u32 num_sgs, best_burst, threshold;
1260 threshold = chan->threshold;
1269 threshold, max_width);
1286 desc->sg_req[i].chan_reg.dma_sfcr |= FIELD_PREP(STM32_DMA_SFCR_FTH_MASK, threshold);
1498 chan->threshold = 0;
1517 chan->threshold = FIELD_GET(STM32_DMA_THRESHOLD_FTR_MASK, cfg->features);
1519 chan->threshold = STM32_DMA_FIFO_THRESHOLD_NONE;