Lines Matching refs:tlen
374 u32 buf_len, u32 tlen) in stm32_mdma_get_max_width() argument
386 tlen >= max_width) in stm32_mdma_get_max_width()
393 static u32 stm32_mdma_get_best_burst(u32 buf_len, u32 tlen, u32 max_burst, in stm32_mdma_get_best_burst() argument
398 best_burst = min((u32)1 << __ffs(tlen | buf_len), in stm32_mdma_get_best_burst()
484 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
506 tlen = STM32_MDMA_CTCR_LEN2_GET(ctcr); in stm32_mdma_set_xfer_param()
508 ctcr |= STM32_MDMA_CTCR_TLEN((tlen - 1)); in stm32_mdma_set_xfer_param()
564 dst_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
572 src_addr_width = stm32_mdma_get_max_width(addr, buf_len, tlen); in stm32_mdma_set_xfer_param()
584 src_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
624 src_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
631 dst_addr_width = stm32_mdma_get_max_width(addr, buf_len, tlen); in stm32_mdma_set_xfer_param()
643 dst_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
946 u32 best_burst, tlen; in stm32_mdma_prep_dma_memcpy() local
1012 tlen = STM32_MDMA_MAX_BUF_LEN; in stm32_mdma_prep_dma_memcpy()
1013 ctcr |= STM32_MDMA_CTCR_TLEN((tlen - 1)); in stm32_mdma_prep_dma_memcpy()
1016 max_width = stm32_mdma_get_max_width(src, len, tlen); in stm32_mdma_prep_dma_memcpy()
1019 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1020 best_burst = stm32_mdma_get_best_burst(len, tlen, max_burst, in stm32_mdma_prep_dma_memcpy()
1029 max_width = stm32_mdma_get_max_width(dest, len, tlen); in stm32_mdma_prep_dma_memcpy()
1032 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1033 best_burst = stm32_mdma_get_best_burst(len, tlen, max_burst, in stm32_mdma_prep_dma_memcpy()
1062 tlen = STM32_MDMA_MAX_BUF_LEN; in stm32_mdma_prep_dma_memcpy()
1070 max_width = stm32_mdma_get_max_width(src, len, tlen); in stm32_mdma_prep_dma_memcpy()
1073 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1074 best_burst = stm32_mdma_get_best_burst(len, tlen, in stm32_mdma_prep_dma_memcpy()
1084 max_width = stm32_mdma_get_max_width(dest, len, tlen); in stm32_mdma_prep_dma_memcpy()
1087 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1088 best_burst = stm32_mdma_get_best_burst(len, tlen, in stm32_mdma_prep_dma_memcpy()