Lines Matching full:tty

23 #include <linux/tty.h>
183 static int upd78f0730_tiocmget(struct tty_struct *tty) in upd78f0730_tiocmget() argument
186 struct usb_serial_port *port = tty->driver_data; in upd78f0730_tiocmget()
204 static int upd78f0730_tiocmset(struct tty_struct *tty, in upd78f0730_tiocmset() argument
207 struct usb_serial_port *port = tty->driver_data; in upd78f0730_tiocmset()
241 static int upd78f0730_break_ctl(struct tty_struct *tty, int break_state) in upd78f0730_break_ctl() argument
244 struct usb_serial_port *port = tty->driver_data; in upd78f0730_break_ctl()
270 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local
279 upd78f0730_tiocmset(tty, set, clear); in upd78f0730_dtr_rts()
282 static speed_t upd78f0730_get_baud_rate(struct tty_struct *tty) in upd78f0730_get_baud_rate() argument
284 const speed_t baud_rate = tty_get_baud_rate(tty); in upd78f0730_get_baud_rate()
296 tty_encode_baud_rate(tty, 9600, 9600); in upd78f0730_get_baud_rate()
298 return tty_get_baud_rate(tty); in upd78f0730_get_baud_rate()
301 static void upd78f0730_set_termios(struct tty_struct *tty, in upd78f0730_set_termios() argument
309 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in upd78f0730_set_termios()
312 if (C_BAUD(tty) == B0) in upd78f0730_set_termios()
317 baud_rate = upd78f0730_get_baud_rate(tty); in upd78f0730_set_termios()
323 switch (C_CSIZE(tty)) { in upd78f0730_set_termios()
329 tty->termios.c_cflag &= ~CSIZE; in upd78f0730_set_termios()
330 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios()
339 if (C_PARENB(tty)) { in upd78f0730_set_termios()
340 if (C_PARODD(tty)) { in upd78f0730_set_termios()
348 if (C_CMSPAR(tty)) { in upd78f0730_set_termios()
349 tty->termios.c_cflag &= ~CMSPAR; in upd78f0730_set_termios()
357 if (C_CSTOPB(tty)) { in upd78f0730_set_termios()
365 if (C_CRTSCTS(tty)) { in upd78f0730_set_termios()
366 tty->termios.c_cflag &= ~CRTSCTS; in upd78f0730_set_termios()
369 if (I_IXOFF(tty) || I_IXON(tty)) { in upd78f0730_set_termios()
370 tty->termios.c_iflag &= ~(IXOFF | IXON); in upd78f0730_set_termios()
379 static int upd78f0730_open(struct tty_struct *tty, struct usb_serial_port *port) in upd78f0730_open() argument
391 if (tty) in upd78f0730_open()
392 upd78f0730_set_termios(tty, port, NULL); in upd78f0730_open()
394 return usb_serial_generic_open(tty, port); in upd78f0730_open()