Lines Matching refs:baud_divisor
149 static void NS16550_setbrg(NS16550_t com_port, int baud_divisor) in NS16550_setbrg() argument
155 serial_out(baud_divisor & 0xff, &com_port->dll); in NS16550_setbrg()
156 serial_out((baud_divisor >> 8) & 0xff, &com_port->dlm); in NS16550_setbrg()
160 void NS16550_init(NS16550_t com_port, int baud_divisor) in NS16550_init() argument
171 if (baud_divisor != -1) in NS16550_init()
172 NS16550_setbrg(com_port, baud_divisor); in NS16550_init()
189 if (baud_divisor != -1) in NS16550_init()
190 NS16550_setbrg(com_port, baud_divisor); in NS16550_init()
202 void NS16550_reinit(NS16550_t com_port, int baud_divisor) in NS16550_reinit() argument
208 NS16550_setbrg(com_port, baud_divisor); in NS16550_reinit()
255 int baud_divisor; in _debug_uart_init() local
263 baud_divisor = ns16550_calc_divisor(com_port, CONFIG_DEBUG_UART_CLOCK, in _debug_uart_init()
270 serial_dout(&com_port->dll, baud_divisor & 0xff); in _debug_uart_init()
271 serial_dout(&com_port->dlm, (baud_divisor >> 8) & 0xff); in _debug_uart_init()