Lines Matching full:sbr
1986 unsigned int sbr, brfa; in lpuart_set_termios() local
2104 sbr = sport->port.uartclk / (16 * baud); in lpuart_set_termios()
2105 brfa = ((sport->port.uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios()
2107 bdh |= (sbr >> 8) & 0x1F; in lpuart_set_termios()
2112 writeb(sbr & 0xFF, sport->port.membase + UARTBDL); in lpuart_set_termios()
2134 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
2144 * Baud Rate = baud clock / ((OSR+1) × SBR) in __lpuart32_serial_setbrg()
2148 sbr = 0; in __lpuart32_serial_setbrg()
2151 /* calculate the temporary sbr value */ in __lpuart32_serial_setbrg()
2158 * osr and sbr values in __lpuart32_serial_setbrg()
2162 /* select best values between sbr and sbr+1 */ in __lpuart32_serial_setbrg()
2175 sbr = tmp_sbr; in __lpuart32_serial_setbrg()
2196 tmp |= sbr & UARTBAUD_SBR_MASK; in __lpuart32_serial_setbrg()
2543 unsigned int sbr, uartclk, baud_raw; in lpuart_console_get_options() local
2570 sbr = bdh; in lpuart_console_get_options()
2571 sbr <<= 8; in lpuart_console_get_options()
2572 sbr |= bdl; in lpuart_console_get_options()
2578 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart_console_get_options()
2580 baud_raw = uartclk / (16 * (sbr + brfa / 32)); in lpuart_console_get_options()
2592 unsigned int sbr, uartclk, baud_raw; in lpuart32_console_get_options() local
2621 sbr = bd; in lpuart32_console_get_options()
2624 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart32_console_get_options()
2626 baud_raw = uartclk / (16 * sbr); in lpuart32_console_get_options()