Lines Matching full:sbr

1993 	unsigned int sbr, brfa;  in lpuart_set_termios()  local
2111 sbr = port->uartclk / (16 * baud); in lpuart_set_termios()
2112 brfa = ((port->uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios()
2114 bdh |= (sbr >> 8) & 0x1F; in lpuart_set_termios()
2119 writeb(sbr & 0xFF, port->membase + UARTBDL); in lpuart_set_termios()
2141 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
2151 * Baud Rate = baud clock / ((OSR+1) × SBR) in __lpuart32_serial_setbrg()
2155 sbr = 0; in __lpuart32_serial_setbrg()
2158 /* calculate the temporary sbr value */ in __lpuart32_serial_setbrg()
2165 * osr and sbr values in __lpuart32_serial_setbrg()
2169 /* select best values between sbr and sbr+1 */ in __lpuart32_serial_setbrg()
2182 sbr = tmp_sbr; in __lpuart32_serial_setbrg()
2203 tmp |= sbr & UARTBAUD_SBR_MASK; in __lpuart32_serial_setbrg()
2562 unsigned int sbr, uartclk, baud_raw; in lpuart_console_get_options() local
2589 sbr = bdh; in lpuart_console_get_options()
2590 sbr <<= 8; in lpuart_console_get_options()
2591 sbr |= bdl; in lpuart_console_get_options()
2597 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart_console_get_options()
2599 baud_raw = uartclk / (16 * (sbr + brfa / 32)); in lpuart_console_get_options()
2611 unsigned int sbr, uartclk, baud_raw; in lpuart32_console_get_options() local
2640 sbr = bd; in lpuart32_console_get_options()
2643 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart32_console_get_options()
2645 baud_raw = uartclk / (16 * sbr); in lpuart32_console_get_options()