Searched refs:usartdiv (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/drivers/tty/serial/ |
D | stm32-usart.c | 224 u32 usartdiv, baud, cr1, cr3; in stm32_usart_config_rs485() local 238 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_usart_config_rs485() 239 usartdiv = usartdiv & GENMASK(15, 0); in stm32_usart_config_rs485() 243 usartdiv = usartdiv | (usartdiv & GENMASK(4, 0)) in stm32_usart_config_rs485() 246 baud = DIV_ROUND_CLOSEST(port->uartclk, usartdiv); in stm32_usart_config_rs485() 1150 u32 usartdiv, mantissa, fraction, oversampling; in stm32_usart_set_termios() local 1261 usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); in stm32_usart_set_termios() 1269 if (usartdiv < 16) { in stm32_usart_set_termios() 1279 mantissa = (usartdiv / oversampling) << USART_BRR_DIV_M_SHIFT; in stm32_usart_set_termios() 1280 fraction = usartdiv % oversampling; in stm32_usart_set_termios()
|