Lines Matching +full:auto +full:- +full:baud
1 // SPDX-License-Identifier: GPL-2.0
32 drv->minor = sunserial_current_minor; in sunserial_register_minors()
33 drv->nr += count; in sunserial_register_minors()
35 if (drv->nr == count) in sunserial_register_minors()
39 drv->tty_driver->name_base = drv->minor - 64; in sunserial_register_minors()
47 drv->nr -= count; in sunserial_unregister_minors()
48 sunserial_current_minor -= count; in sunserial_unregister_minors()
50 if (drv->nr == 0) in sunserial_unregister_minors()
61 drv->cons = con; in sunserial_console_match()
78 con->index = line; in sunserial_console_match()
79 add_preferred_console(con->name, line, NULL); in sunserial_console_match()
88 char mode_prop[] = "ttyX-mode"; in sunserial_console_termios()
89 int baud, bits, stop, cflag; in sunserial_console_termios() local
93 of_node_name_eq(uart_dp, "rsc-console") || in sunserial_console_termios()
94 of_node_name_eq(uart_dp, "rsc-control")) { in sunserial_console_termios()
96 "ssp-console-modes", NULL); in sunserial_console_termios()
98 mode = "115200,8,n,1,-"; in sunserial_console_termios()
99 } else if (of_node_name_eq(uart_dp, "lom-console")) { in sunserial_console_termios()
100 mode = "9600,8,n,1,-"; in sunserial_console_termios()
114 mode = "9600,8,n,1,-"; in sunserial_console_termios()
121 baud = simple_strtoul(s, NULL, 0); in sunserial_console_termios()
131 switch (baud) { in sunserial_console_termios()
145 default: baud = 9600; cflag |= B9600; break; in sunserial_console_termios()
167 con->cflag = cflag; in sunserial_console_termios()
170 /* Sun serial MOUSE auto baud rate detection. */
172 int baud; member
179 { -1, ~0 },
180 { -1, ~0 },
187 for (i = 0; mouse_baud_table[i].baud != -1; i++) in suncore_mouse_baud_cflag_next()
192 if (mouse_baud_table[i].baud == -1) in suncore_mouse_baud_cflag_next()
195 *new_baud = mouse_baud_table[i].baud; in suncore_mouse_baud_cflag_next()
201 /* Basically, when the baud rate is wrong the mouse spits out
211 * and say we need to try another baud rate. in suncore_mouse_baud_detection()
216 /* Ok, we need to try another baud. */ in suncore_mouse_baud_detection()
224 /* Correct baud rate determined. */ in suncore_mouse_baud_detection()