Lines Matching refs:fthlv
476 u32 fthlv, half_fifo, packet; in stm32h7_spi_prepare_fthlv() local
488 fthlv = packet; in stm32h7_spi_prepare_fthlv()
490 fthlv = packet / 2; in stm32h7_spi_prepare_fthlv()
492 fthlv = packet / 4; in stm32h7_spi_prepare_fthlv()
496 fthlv += (fthlv % 2) ? 1 : 0; in stm32h7_spi_prepare_fthlv()
498 fthlv += (fthlv % 4) ? (4 - (fthlv % 4)) : 0; in stm32h7_spi_prepare_fthlv()
500 if (!fthlv) in stm32h7_spi_prepare_fthlv()
501 fthlv = 1; in stm32h7_spi_prepare_fthlv()
503 return fthlv; in stm32h7_spi_prepare_fthlv()
1399 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local
1409 fthlv = spi->cur_fthlv - 1; in stm32h7_spi_set_bpw()
1412 cfg1_setb |= (fthlv << STM32H7_SPI_CFG1_FTHLV_SHIFT) & in stm32h7_spi_set_bpw()