Lines Matching refs:gs_tty_driver
1007 static struct tty_driver *gs_tty_driver;
1064 gs_tty_driver = alloc_tty_driver(count);
1065 if (!gs_tty_driver)
1068 gs_tty_driver->owner = THIS_MODULE;
1069 gs_tty_driver->driver_name = "g_serial";
1070 gs_tty_driver->name = PREFIX;
1073 gs_tty_driver->type = TTY_DRIVER_TYPE_SERIAL;
1074 gs_tty_driver->subtype = SERIAL_TYPE_NORMAL;
1075 gs_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
1076 gs_tty_driver->init_termios = tty_std_termios;
1082 gs_tty_driver->init_termios.c_cflag =
1084 gs_tty_driver->init_termios.c_ispeed = 9600;
1085 gs_tty_driver->init_termios.c_ospeed = 9600;
1092 tty_set_operations(gs_tty_driver, &gs_tty_ops);
1106 status = tty_register_driver(gs_tty_driver);
1117 tty_dev = tty_register_device(gs_tty_driver, i, &g->dev);
1130 put_tty_driver(gs_tty_driver);
1131 gs_tty_driver = NULL;
1162 if (!gs_tty_driver)
1167 tty_unregister_device(gs_tty_driver, i);
1187 tty_unregister_driver(gs_tty_driver);
1188 put_tty_driver(gs_tty_driver);
1189 gs_tty_driver = NULL;
1221 if (!gs_tty_driver || port_num >= n_ports)