Lines Matching refs:gs_tty_driver
1026 static struct tty_driver *gs_tty_driver; variable
1083 gs_tty_driver = alloc_tty_driver(count); in gserial_setup()
1084 if (!gs_tty_driver) in gserial_setup()
1087 gs_tty_driver->driver_name = "g_serial"; in gserial_setup()
1088 gs_tty_driver->name = PREFIX; in gserial_setup()
1091 gs_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in gserial_setup()
1092 gs_tty_driver->subtype = SERIAL_TYPE_NORMAL; in gserial_setup()
1093 gs_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; in gserial_setup()
1094 gs_tty_driver->init_termios = tty_std_termios; in gserial_setup()
1100 gs_tty_driver->init_termios.c_cflag = in gserial_setup()
1102 gs_tty_driver->init_termios.c_ispeed = 9600; in gserial_setup()
1103 gs_tty_driver->init_termios.c_ospeed = 9600; in gserial_setup()
1110 tty_set_operations(gs_tty_driver, &gs_tty_ops); in gserial_setup()
1124 status = tty_register_driver(gs_tty_driver); in gserial_setup()
1135 tty_dev = tty_register_device(gs_tty_driver, i, &g->dev); in gserial_setup()
1148 put_tty_driver(gs_tty_driver); in gserial_setup()
1149 gs_tty_driver = NULL; in gserial_setup()
1180 if (!gs_tty_driver) in gserial_cleanup()
1185 tty_unregister_device(gs_tty_driver, i); in gserial_cleanup()
1205 tty_unregister_driver(gs_tty_driver); in gserial_cleanup()
1206 put_tty_driver(gs_tty_driver); in gserial_cleanup()
1207 gs_tty_driver = NULL; in gserial_cleanup()
1239 if (!gs_tty_driver || port_num >= n_ports) in gserial_connect()