Lines Matching refs:nfcon_tty_driver
24 static struct tty_driver *nfcon_tty_driver; variable
52 return (con->flags & CON_ENABLED) ? nfcon_tty_driver : NULL; in nfcon_device()
129 nfcon_tty_driver = alloc_tty_driver(1); in nfcon_init()
130 if (!nfcon_tty_driver) in nfcon_init()
135 nfcon_tty_driver->driver_name = "nfcon"; in nfcon_init()
136 nfcon_tty_driver->name = "nfcon"; in nfcon_init()
137 nfcon_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; in nfcon_init()
138 nfcon_tty_driver->subtype = SYSTEM_TYPE_TTY; in nfcon_init()
139 nfcon_tty_driver->init_termios = tty_std_termios; in nfcon_init()
140 nfcon_tty_driver->flags = TTY_DRIVER_REAL_RAW; in nfcon_init()
142 tty_set_operations(nfcon_tty_driver, &nfcon_tty_ops); in nfcon_init()
143 tty_port_link_device(&nfcon_tty_port, nfcon_tty_driver, 0); in nfcon_init()
144 res = tty_register_driver(nfcon_tty_driver); in nfcon_init()
147 put_tty_driver(nfcon_tty_driver); in nfcon_init()
161 tty_unregister_driver(nfcon_tty_driver); in nfcon_exit()
162 put_tty_driver(nfcon_tty_driver); in nfcon_exit()