Lines Matching refs:tty

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 void 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()
267 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local
276 upd78f0730_tiocmset(tty, set, clear); in upd78f0730_dtr_rts()
279 static speed_t upd78f0730_get_baud_rate(struct tty_struct *tty) in upd78f0730_get_baud_rate() argument
281 const speed_t baud_rate = tty_get_baud_rate(tty); in upd78f0730_get_baud_rate()
293 tty_encode_baud_rate(tty, 9600, 9600); in upd78f0730_get_baud_rate()
295 return tty_get_baud_rate(tty); in upd78f0730_get_baud_rate()
298 static void upd78f0730_set_termios(struct tty_struct *tty, in upd78f0730_set_termios() argument
306 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in upd78f0730_set_termios()
309 if (C_BAUD(tty) == B0) in upd78f0730_set_termios()
314 baud_rate = upd78f0730_get_baud_rate(tty); in upd78f0730_set_termios()
320 switch (C_CSIZE(tty)) { in upd78f0730_set_termios()
326 tty->termios.c_cflag &= ~CSIZE; in upd78f0730_set_termios()
327 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios()
336 if (C_PARENB(tty)) { in upd78f0730_set_termios()
337 if (C_PARODD(tty)) { in upd78f0730_set_termios()
345 if (C_CMSPAR(tty)) { in upd78f0730_set_termios()
346 tty->termios.c_cflag &= ~CMSPAR; in upd78f0730_set_termios()
354 if (C_CSTOPB(tty)) { in upd78f0730_set_termios()
362 if (C_CRTSCTS(tty)) { in upd78f0730_set_termios()
363 tty->termios.c_cflag &= ~CRTSCTS; in upd78f0730_set_termios()
366 if (I_IXOFF(tty) || I_IXON(tty)) { in upd78f0730_set_termios()
367 tty->termios.c_iflag &= ~(IXOFF | IXON); in upd78f0730_set_termios()
376 static int upd78f0730_open(struct tty_struct *tty, struct usb_serial_port *port) in upd78f0730_open() argument
388 if (tty) in upd78f0730_open()
389 upd78f0730_set_termios(tty, port, NULL); in upd78f0730_open()
391 return usb_serial_generic_open(tty, port); in upd78f0730_open()