Lines Matching refs:driver
496 struct tty_driver *driver; in sclp_tty_init() local
506 driver = tty_alloc_driver(1, TTY_DRIVER_REAL_RAW); in sclp_tty_init()
507 if (IS_ERR(driver)) in sclp_tty_init()
508 return PTR_ERR(driver); in sclp_tty_init()
512 tty_driver_kref_put(driver); in sclp_tty_init()
519 tty_driver_kref_put(driver); in sclp_tty_init()
535 tty_driver_kref_put(driver); in sclp_tty_init()
541 driver->driver_name = "sclp_line"; in sclp_tty_init()
542 driver->name = "sclp_line"; in sclp_tty_init()
543 driver->major = TTY_MAJOR; in sclp_tty_init()
544 driver->minor_start = 64; in sclp_tty_init()
545 driver->type = TTY_DRIVER_TYPE_SYSTEM; in sclp_tty_init()
546 driver->subtype = SYSTEM_TYPE_TTY; in sclp_tty_init()
547 driver->init_termios = tty_std_termios; in sclp_tty_init()
548 driver->init_termios.c_iflag = IGNBRK | IGNPAR; in sclp_tty_init()
549 driver->init_termios.c_oflag = ONLCR; in sclp_tty_init()
550 driver->init_termios.c_lflag = ISIG | ECHO; in sclp_tty_init()
551 tty_set_operations(driver, &sclp_ops); in sclp_tty_init()
552 tty_port_link_device(&sclp_port, driver, 0); in sclp_tty_init()
553 rc = tty_register_driver(driver); in sclp_tty_init()
555 tty_driver_kref_put(driver); in sclp_tty_init()
559 sclp_tty_driver = driver; in sclp_tty_init()