Lines Matching refs:driver
106 struct tty_driver *driver; in rs_init() local
109 driver = tty_alloc_driver(SERIAL_MAX_NUM_LINES, TTY_DRIVER_REAL_RAW); in rs_init()
110 if (IS_ERR(driver)) in rs_init()
111 return PTR_ERR(driver); in rs_init()
117 driver->driver_name = "iss_serial"; in rs_init()
118 driver->name = "ttyS"; in rs_init()
119 driver->major = TTY_MAJOR; in rs_init()
120 driver->minor_start = 64; in rs_init()
121 driver->type = TTY_DRIVER_TYPE_SERIAL; in rs_init()
122 driver->subtype = SERIAL_TYPE_NORMAL; in rs_init()
123 driver->init_termios = tty_std_termios; in rs_init()
124 driver->init_termios.c_cflag = in rs_init()
127 tty_set_operations(driver, &serial_ops); in rs_init()
128 tty_port_link_device(&serial_port, driver, 0); in rs_init()
130 ret = tty_register_driver(driver); in rs_init()
133 tty_driver_kref_put(driver); in rs_init()
139 serial_driver = driver; in rs_init()