Lines Matching defs:threshold
116 /* DMA FIFO threshold selection */
219 u32 threshold;
284 u32 threshold)
288 if (threshold == STM32_DMA_FIFO_THRESHOLD_FULL)
303 static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold,
308 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
318 (threshold + 1) / 4) % burst;
330 static bool stm32_dma_is_burst_possible(u32 buf_len, u32 threshold)
333 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE)
341 return ((buf_len % ((threshold + 1) * 4)) == 0);
344 static u32 stm32_dma_get_best_burst(u32 buf_len, u32 max_burst, u32 threshold,
349 if (best_burst == 1 || !stm32_dma_is_burst_possible(buf_len, threshold))
353 !stm32_dma_fifo_threshold_is_allowed(best_burst, threshold,
945 fifoth = chan->threshold;
994 /* Set FIFO threshold */
1051 /* Set FIFO threshold */
1249 u32 num_sgs, best_burst, threshold;
1258 threshold = chan->threshold;
1267 threshold, max_width);
1284 desc->sg_req[i].chan_reg.dma_sfcr |= FIELD_PREP(STM32_DMA_SFCR_FTH_MASK, threshold);
1494 chan->threshold = 0;
1513 chan->threshold = FIELD_GET(STM32_DMA_THRESHOLD_FTR_MASK, cfg->features);
1515 chan->threshold = STM32_DMA_FIFO_THRESHOLD_NONE;