Lines Matching full:sbr
1996 unsigned int sbr, brfa; in lpuart_set_termios() local
2114 sbr = port->uartclk / (16 * baud); in lpuart_set_termios()
2115 brfa = ((port->uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios()
2117 bdh |= (sbr >> 8) & 0x1F; in lpuart_set_termios()
2122 writeb(sbr & 0xFF, port->membase + UARTBDL); in lpuart_set_termios()
2144 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, baud; in __lpuart32_serial_setbrg() local
2154 * Baud Rate = baud clock / ((OSR+1) × SBR) in __lpuart32_serial_setbrg()
2158 sbr = 0; in __lpuart32_serial_setbrg()
2161 /* calculate the temporary sbr value */ in __lpuart32_serial_setbrg()
2168 * osr and sbr values in __lpuart32_serial_setbrg()
2172 /* select best values between sbr and sbr+1 */ in __lpuart32_serial_setbrg()
2185 sbr = tmp_sbr; in __lpuart32_serial_setbrg()
2206 baud |= sbr & UARTBAUD_SBR_MASK; in __lpuart32_serial_setbrg()
2565 unsigned int sbr, uartclk, baud_raw; in lpuart_console_get_options() local
2592 sbr = bdh; in lpuart_console_get_options()
2593 sbr <<= 8; in lpuart_console_get_options()
2594 sbr |= bdl; in lpuart_console_get_options()
2600 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart_console_get_options()
2602 baud_raw = uartclk / (16 * (sbr + brfa / 32)); in lpuart_console_get_options()
2614 unsigned int sbr, uartclk, baud_raw; in lpuart32_console_get_options() local
2643 sbr = bd; in lpuart32_console_get_options()
2646 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart32_console_get_options()
2648 baud_raw = uartclk / (16 * sbr); in lpuart32_console_get_options()