Home
last modified time | relevance | path

Searched refs:nb_words (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/spi/
Dspi-stm32.c1531 static int stm32h7_spi_number_of_data(struct stm32_spi *spi, u32 nb_words) in stm32h7_spi_number_of_data() argument
1533 if (nb_words <= STM32H7_SPI_TSIZE_MAX) { in stm32h7_spi_number_of_data()
1534 writel_relaxed(FIELD_PREP(STM32H7_SPI_CR2_TSIZE, nb_words), in stm32h7_spi_number_of_data()
1557 int nb_words, ret = 0; in stm32_spi_transfer_one_setup() local
1592 nb_words = transfer->len; in stm32_spi_transfer_one_setup()
1594 nb_words = DIV_ROUND_UP(transfer->len * 8, 16); in stm32_spi_transfer_one_setup()
1596 nb_words = DIV_ROUND_UP(transfer->len * 8, 32); in stm32_spi_transfer_one_setup()
1599 ret = spi->cfg->set_number_of_data(spi, nb_words); in stm32_spi_transfer_one_setup()
1612 spi->cur_xferlen, nb_words); in stm32_spi_transfer_one_setup()