Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/spi/
Dspi-stm32.c434 u32 div, mbrdiv; in stm32_spi_prepare_mbr() local
451 mbrdiv = fls(div); in stm32_spi_prepare_mbr()
453 mbrdiv = fls(div) - 1; in stm32_spi_prepare_mbr()
455 spi->cur_speed = spi->clk_rate / (1 << mbrdiv); in stm32_spi_prepare_mbr()
457 return mbrdiv - 1; in stm32_spi_prepare_mbr()
1361 static void stm32_spi_set_mbr(struct stm32_spi *spi, u32 mbrdiv) in stm32_spi_set_mbr() argument
1366 setb |= (mbrdiv << spi->cfg->regs->br.shift) & spi->cfg->regs->br.mask; in stm32_spi_set_mbr()