Lines Matching full:sbr
1822 unsigned int sbr, brfa; in lpuart_set_termios() local
1940 sbr = sport->port.uartclk / (16 * baud); in lpuart_set_termios()
1941 brfa = ((sport->port.uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios()
1943 bdh |= (sbr >> 8) & 0x1F; in lpuart_set_termios()
1948 writeb(sbr & 0xFF, sport->port.membase + UARTBDL); in lpuart_set_termios()
1970 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
1980 * Baud Rate = baud clock / ((OSR+1) × SBR) in __lpuart32_serial_setbrg()
1984 sbr = 0; in __lpuart32_serial_setbrg()
1987 /* calculate the temporary sbr value */ in __lpuart32_serial_setbrg()
1994 * osr and sbr values in __lpuart32_serial_setbrg()
1998 /* select best values between sbr and sbr+1 */ in __lpuart32_serial_setbrg()
2011 sbr = tmp_sbr; in __lpuart32_serial_setbrg()
2032 tmp |= sbr & UARTBAUD_SBR_MASK; in __lpuart32_serial_setbrg()
2368 unsigned int sbr, uartclk, baud_raw; in lpuart_console_get_options() local
2395 sbr = bdh; in lpuart_console_get_options()
2396 sbr <<= 8; in lpuart_console_get_options()
2397 sbr |= bdl; in lpuart_console_get_options()
2403 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart_console_get_options()
2405 baud_raw = uartclk / (16 * (sbr + brfa / 32)); in lpuart_console_get_options()
2417 unsigned int sbr, uartclk, baud_raw; in lpuart32_console_get_options() local
2446 sbr = bd; in lpuart32_console_get_options()
2449 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart32_console_get_options()
2451 baud_raw = uartclk / (16 * sbr); in lpuart32_console_get_options()