Lines Matching refs:threshold
208 u32 threshold; member
270 u32 threshold) in stm32_dma_get_max_width() argument
274 if (threshold == STM32_DMA_FIFO_THRESHOLD_FULL) in stm32_dma_get_max_width()
289 static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold, in stm32_dma_fifo_threshold_is_allowed() argument
294 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE) in stm32_dma_fifo_threshold_is_allowed()
304 (threshold + 1) / 4) % burst; in stm32_dma_fifo_threshold_is_allowed()
316 static bool stm32_dma_is_burst_possible(u32 buf_len, u32 threshold) in stm32_dma_is_burst_possible() argument
319 if (threshold == STM32_DMA_FIFO_THRESHOLD_NONE) in stm32_dma_is_burst_possible()
327 return ((buf_len % ((threshold + 1) * 4)) == 0); in stm32_dma_is_burst_possible()
330 static u32 stm32_dma_get_best_burst(u32 buf_len, u32 max_burst, u32 threshold, in stm32_dma_get_best_burst() argument
335 if (best_burst == 1 || !stm32_dma_is_burst_possible(buf_len, threshold)) in stm32_dma_get_best_burst()
339 !stm32_dma_fifo_threshold_is_allowed(best_burst, threshold, in stm32_dma_get_best_burst()
728 fifoth = chan->threshold; in stm32_dma_set_xfer_param()
1021 u32 num_sgs, best_burst, dma_burst, threshold; in stm32_dma_prep_dma_memcpy() local
1029 threshold = chan->threshold; in stm32_dma_prep_dma_memcpy()
1038 threshold, max_width); in stm32_dma_prep_dma_memcpy()
1052 STM32_DMA_SFCR_FTH(threshold); in stm32_dma_prep_dma_memcpy()
1246 chan->threshold = 0; in stm32_dma_free_chan_resources()
1265 chan->threshold = STM32_DMA_THRESHOLD_FTR_GET(cfg->features); in stm32_dma_set_config()
1267 chan->threshold = STM32_DMA_FIFO_THRESHOLD_NONE; in stm32_dma_set_config()