Searched refs:usartdiv (Results 1 – 1 of 1) sorted by relevance
/drivers/tty/serial/ |
D | stm32-usart.c | 154 u32 usartdiv, baud, cr1, cr3; in stm32_usart_config_rs485() local 166 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_usart_config_rs485() 167 usartdiv = usartdiv & GENMASK(15, 0); in stm32_usart_config_rs485() 171 usartdiv = usartdiv | (usartdiv & GENMASK(4, 0)) in stm32_usart_config_rs485() 174 baud = DIV_ROUND_CLOSEST(port->uartclk, usartdiv); in stm32_usart_config_rs485() 814 u32 usartdiv, mantissa, fraction, oversampling; in stm32_usart_set_termios() local 923 usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); in stm32_usart_set_termios() 931 if (usartdiv < 16) { in stm32_usart_set_termios() 941 mantissa = (usartdiv / oversampling) << USART_BRR_DIV_M_SHIFT; in stm32_usart_set_termios() 942 fraction = usartdiv % oversampling; in stm32_usart_set_termios()
|