Lines Matching refs:tty

93 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty)  in goldfish_tty_activate()  argument
108 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) in goldfish_tty_open() argument
110 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; in goldfish_tty_open()
111 return tty_port_open(&qtty->port, tty, filp); in goldfish_tty_open()
114 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) in goldfish_tty_close() argument
116 tty_port_close(tty->port, tty, filp); in goldfish_tty_close()
119 static void goldfish_tty_hangup(struct tty_struct *tty) in goldfish_tty_hangup() argument
121 tty_port_hangup(tty->port); in goldfish_tty_hangup()
124 static int goldfish_tty_write(struct tty_struct *tty, const unsigned char *buf, in goldfish_tty_write() argument
127 goldfish_tty_do_write(tty->index, buf, count); in goldfish_tty_write()
131 static int goldfish_tty_write_room(struct tty_struct *tty) in goldfish_tty_write_room() argument
136 static int goldfish_tty_chars_in_buffer(struct tty_struct *tty) in goldfish_tty_chars_in_buffer() argument
138 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; in goldfish_tty_chars_in_buffer()
182 struct tty_driver *tty; in goldfish_tty_create_driver() local
190 tty = alloc_tty_driver(goldfish_tty_line_count); in goldfish_tty_create_driver()
191 if (tty == NULL) { in goldfish_tty_create_driver()
195 tty->driver_name = "goldfish"; in goldfish_tty_create_driver()
196 tty->name = "ttyGF"; in goldfish_tty_create_driver()
197 tty->type = TTY_DRIVER_TYPE_SERIAL; in goldfish_tty_create_driver()
198 tty->subtype = SERIAL_TYPE_NORMAL; in goldfish_tty_create_driver()
199 tty->init_termios = tty_std_termios; in goldfish_tty_create_driver()
200 tty->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW | in goldfish_tty_create_driver()
202 tty_set_operations(tty, &goldfish_tty_ops); in goldfish_tty_create_driver()
203 ret = tty_register_driver(tty); in goldfish_tty_create_driver()
207 goldfish_tty_driver = tty; in goldfish_tty_create_driver()
211 put_tty_driver(tty); in goldfish_tty_create_driver()