Searched refs:usartdiv (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/tty/serial/ |
H A D | stm32-usart.c | 228 u32 usartdiv, baud, cr1, cr3; in stm32_usart_config_rs485() local 236 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_usart_config_rs485() 237 usartdiv = usartdiv & GENMASK(15, 0); in stm32_usart_config_rs485() 241 usartdiv = usartdiv | (usartdiv & GENMASK(4, 0)) in stm32_usart_config_rs485() 244 baud = DIV_ROUND_CLOSEST(port->uartclk, usartdiv); in stm32_usart_config_rs485() 1162 u32 usartdiv, mantissa, fraction, oversampling; in stm32_usart_set_termios() local 1277 usartdiv = DIV_ROUND_CLOSEST(uart_clk_pres, baud); in stm32_usart_set_termios() 1285 if (usartdiv < 16) { in stm32_usart_set_termios() 1295 mantissa = (usartdiv / oversampling) << USART_BRR_DIV_M_SHIFT; in stm32_usart_set_termios() 1296 fraction = usartdiv % oversampling; in stm32_usart_set_termios()
|