Lines Matching full:sbr
2003 unsigned int sbr, brfa; in lpuart_set_termios() local
2121 sbr = sport->port.uartclk / (16 * baud); in lpuart_set_termios()
2122 brfa = ((sport->port.uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios()
2124 bdh |= (sbr >> 8) & 0x1F; in lpuart_set_termios()
2129 writeb(sbr & 0xFF, sport->port.membase + UARTBDL); in lpuart_set_termios()
2151 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
2161 * Baud Rate = baud clock / ((OSR+1) × SBR) in __lpuart32_serial_setbrg()
2165 sbr = 0; in __lpuart32_serial_setbrg()
2168 /* calculate the temporary sbr value */ in __lpuart32_serial_setbrg()
2175 * osr and sbr values in __lpuart32_serial_setbrg()
2179 /* select best values between sbr and sbr+1 */ in __lpuart32_serial_setbrg()
2192 sbr = tmp_sbr; in __lpuart32_serial_setbrg()
2213 tmp |= sbr & UARTBAUD_SBR_MASK; in __lpuart32_serial_setbrg()
2560 unsigned int sbr, uartclk, baud_raw; in lpuart_console_get_options() local
2587 sbr = bdh; in lpuart_console_get_options()
2588 sbr <<= 8; in lpuart_console_get_options()
2589 sbr |= bdl; in lpuart_console_get_options()
2595 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart_console_get_options()
2597 baud_raw = uartclk / (16 * (sbr + brfa / 32)); in lpuart_console_get_options()
2609 unsigned int sbr, uartclk, baud_raw; in lpuart32_console_get_options() local
2638 sbr = bd; in lpuart32_console_get_options()
2641 * baud = mod_clk/(16*(sbr[13]+(brfa)/32) in lpuart32_console_get_options()
2643 baud_raw = uartclk / (16 * sbr); in lpuart32_console_get_options()