termios            82 arch/alpha/include/asm/termios.h 	copy_from_user(k, u, sizeof(struct termios))
termios            85 arch/alpha/include/asm/termios.h 	copy_to_user(u, k, sizeof(struct termios))
termios            21 arch/alpha/include/uapi/asm/ioctls.h #define TCGETS		_IOR('t', 19, struct termios)
termios            22 arch/alpha/include/uapi/asm/ioctls.h #define TCSETS		_IOW('t', 20, struct termios)
termios            23 arch/alpha/include/uapi/asm/ioctls.h #define TCSETSW		_IOW('t', 21, struct termios)
termios            24 arch/alpha/include/uapi/asm/ioctls.h #define TCSETSF		_IOW('t', 22, struct termios)
termios            25 arch/ia64/include/asm/termios.h #define SET_LOW_TERMIOS_BITS(termios, termio, x) {	\
termios            28 arch/ia64/include/asm/termios.h 	*(unsigned short *) &(termios)->x = __tmp;	\
termios            31 arch/ia64/include/asm/termios.h #define user_termio_to_kernel_termios(termios, termio)		\
termios            33 arch/ia64/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_iflag);		\
termios            34 arch/ia64/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_oflag);		\
termios            35 arch/ia64/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_cflag);		\
termios            36 arch/ia64/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_lflag);		\
termios            37 arch/ia64/include/asm/termios.h 	copy_from_user((termios)->c_cc, (termio)->c_cc, NCC);	\
termios            43 arch/ia64/include/asm/termios.h #define kernel_termios_to_user_termio(termio, termios)		\
termios            45 arch/ia64/include/asm/termios.h 	put_user((termios)->c_iflag, &(termio)->c_iflag);	\
termios            46 arch/ia64/include/asm/termios.h 	put_user((termios)->c_oflag, &(termio)->c_oflag);	\
termios            47 arch/ia64/include/asm/termios.h 	put_user((termios)->c_cflag, &(termio)->c_cflag);	\
termios            48 arch/ia64/include/asm/termios.h 	put_user((termios)->c_lflag, &(termio)->c_lflag);	\
termios            49 arch/ia64/include/asm/termios.h 	put_user((termios)->c_line,  &(termio)->c_line);	\
termios            50 arch/ia64/include/asm/termios.h 	copy_to_user((termio)->c_cc, (termios)->c_cc, NCC);	\
termios            55 arch/ia64/include/asm/termios.h #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
termios            56 arch/ia64/include/asm/termios.h #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
termios            29 arch/mips/include/asm/termios.h static inline int user_termio_to_kernel_termios(struct ktermios *termios,
termios            39 arch/mips/include/asm/termios.h 	termios->c_iflag = (termios->c_iflag & 0xffff0000) | iflag;
termios            41 arch/mips/include/asm/termios.h 	termios->c_oflag = (termios->c_oflag & 0xffff0000) | oflag;
termios            43 arch/mips/include/asm/termios.h 	termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag;
termios            45 arch/mips/include/asm/termios.h 	termios->c_lflag = (termios->c_lflag & 0xffff0000) | lflag;
termios            46 arch/mips/include/asm/termios.h 	err |=__get_user(termios->c_line, &termio->c_line);
termios            50 arch/mips/include/asm/termios.h 	if (__copy_from_user(termios->c_cc, termio->c_cc, NCC))
termios            60 arch/mips/include/asm/termios.h 	struct ktermios *termios)
termios            67 arch/mips/include/asm/termios.h 	err = __put_user(termios->c_iflag, &termio->c_iflag);
termios            68 arch/mips/include/asm/termios.h 	err |= __put_user(termios->c_oflag, &termio->c_oflag);
termios            69 arch/mips/include/asm/termios.h 	err |= __put_user(termios->c_cflag, &termio->c_cflag);
termios            70 arch/mips/include/asm/termios.h 	err |= __put_user(termios->c_lflag, &termio->c_lflag);
termios            71 arch/mips/include/asm/termios.h 	err |= __put_user(termios->c_line, &termio->c_line);
termios            75 arch/mips/include/asm/termios.h 	if (__copy_to_user(termio->c_cc, termios->c_cc, NCC))
termios            94 arch/mips/include/asm/termios.h 	struct termios __user *u)
termios            96 arch/mips/include/asm/termios.h 	return copy_from_user(k, u, sizeof(struct termios)) ? -EFAULT : 0;
termios            99 arch/mips/include/asm/termios.h static inline int kernel_termios_to_user_termios_1(struct termios __user *u,
termios           102 arch/mips/include/asm/termios.h 	return copy_to_user(u, k, sizeof(struct termios)) ? -EFAULT : 0;
termios            19 arch/parisc/include/asm/termios.h #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
termios            22 arch/parisc/include/asm/termios.h 	*(unsigned short *) &(termios)->x = __tmp; \
termios            25 arch/parisc/include/asm/termios.h #define user_termio_to_kernel_termios(termios, termio) \
termios            27 arch/parisc/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
termios            28 arch/parisc/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
termios            29 arch/parisc/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
termios            30 arch/parisc/include/asm/termios.h 	SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
termios            31 arch/parisc/include/asm/termios.h 	copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
termios            37 arch/parisc/include/asm/termios.h #define kernel_termios_to_user_termio(termio, termios) \
termios            39 arch/parisc/include/asm/termios.h 	put_user((termios)->c_iflag, &(termio)->c_iflag); \
termios            40 arch/parisc/include/asm/termios.h 	put_user((termios)->c_oflag, &(termio)->c_oflag); \
termios            41 arch/parisc/include/asm/termios.h 	put_user((termios)->c_cflag, &(termio)->c_cflag); \
termios            42 arch/parisc/include/asm/termios.h 	put_user((termios)->c_lflag, &(termio)->c_lflag); \
termios            43 arch/parisc/include/asm/termios.h 	put_user((termios)->c_line,  &(termio)->c_line); \
termios            44 arch/parisc/include/asm/termios.h 	copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
termios            49 arch/parisc/include/asm/termios.h #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
termios            50 arch/parisc/include/asm/termios.h #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
termios             9 arch/parisc/include/uapi/asm/ioctls.h #define TCGETS		_IOR('T', 16, struct termios) /* TCGETATTR */
termios            10 arch/parisc/include/uapi/asm/ioctls.h #define TCSETS		_IOW('T', 17, struct termios) /* TCSETATTR */
termios            11 arch/parisc/include/uapi/asm/ioctls.h #define TCSETSW		_IOW('T', 18, struct termios) /* TCSETATTRD */
termios            12 arch/parisc/include/uapi/asm/ioctls.h #define TCSETSF		_IOW('T', 19, struct termios) /* TCSETATTRF */
termios            21 arch/powerpc/include/uapi/asm/ioctls.h #define TCGETS		_IOR('t', 19, struct termios)
termios            22 arch/powerpc/include/uapi/asm/ioctls.h #define TCSETS		_IOW('t', 20, struct termios)
termios            23 arch/powerpc/include/uapi/asm/ioctls.h #define TCSETSW		_IOW('t', 21, struct termios)
termios            24 arch/powerpc/include/uapi/asm/ioctls.h #define TCSETSF		_IOW('t', 22, struct termios)
termios            30 arch/sparc/include/asm/termios.h #define user_termio_to_kernel_termios(termios, termio) \
termios            35 arch/sparc/include/asm/termios.h 	(termios)->c_iflag = (0xffff0000 & ((termios)->c_iflag)) | tmp; \
termios            37 arch/sparc/include/asm/termios.h 	(termios)->c_oflag = (0xffff0000 & ((termios)->c_oflag)) | tmp; \
termios            39 arch/sparc/include/asm/termios.h 	(termios)->c_cflag = (0xffff0000 & ((termios)->c_cflag)) | tmp; \
termios            41 arch/sparc/include/asm/termios.h 	(termios)->c_lflag = (0xffff0000 & ((termios)->c_lflag)) | tmp; \
termios            42 arch/sparc/include/asm/termios.h 	err |= copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
termios            51 arch/sparc/include/asm/termios.h #define kernel_termios_to_user_termio(termio, termios) \
termios            54 arch/sparc/include/asm/termios.h 	err  = put_user((termios)->c_iflag, &(termio)->c_iflag); \
termios            55 arch/sparc/include/asm/termios.h 	err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \
termios            56 arch/sparc/include/asm/termios.h 	err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \
termios            57 arch/sparc/include/asm/termios.h 	err |= put_user((termios)->c_lflag, &(termio)->c_lflag); \
termios            58 arch/sparc/include/asm/termios.h 	err |= put_user((termios)->c_line,  &(termio)->c_line); \
termios            59 arch/sparc/include/asm/termios.h 	err |= copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
termios            60 arch/sparc/include/asm/termios.h 	if (!((termios)->c_lflag & ICANON)) { \
termios            61 arch/sparc/include/asm/termios.h 		err |= put_user((termios)->c_cc[VMIN], &(termio)->c_cc[_VMIN]); \
termios            62 arch/sparc/include/asm/termios.h 		err |= put_user((termios)->c_cc[VTIME], &(termio)->c_cc[_VTIME]); \
termios            15 arch/sparc/include/uapi/asm/ioctls.h #define TCGETS		_IOR('T', 8, struct termios)
termios            16 arch/sparc/include/uapi/asm/ioctls.h #define TCSETS		_IOW('T', 9, struct termios)
termios            17 arch/sparc/include/uapi/asm/ioctls.h #define TCSETSW		_IOW('T', 10, struct termios)
termios            18 arch/sparc/include/uapi/asm/ioctls.h #define TCSETSF		_IOW('T', 11, struct termios)
termios            37 arch/sparc/include/uapi/asm/termbits.h #define SIZEOF_USER_TERMIOS sizeof (struct termios) - (2*sizeof (cc_t))
termios            77 arch/um/drivers/chan_user.c 	struct termios save, new;
termios            18 arch/um/drivers/fd.c 	struct termios tt;
termios            19 arch/um/drivers/port_user.c 	struct termios tt;
termios            22 arch/um/drivers/pty.c 	struct termios tt;
termios            30 arch/um/drivers/slip_user.c 	struct termios tios;
termios            16 arch/um/drivers/tty.c 	struct termios tt;
termios            24 arch/um/drivers/xterm.c 	struct termios tt;
termios            28 arch/um/os-Linux/util.c 	struct termios tt;
termios           325 drivers/bluetooth/hci_ldisc.c 		ktermios = tty->termios;
termios           359 drivers/bluetooth/hci_ldisc.c 		ktermios = tty->termios;
termios           379 drivers/bluetooth/hci_ldisc.c 	ktermios = tty->termios;
termios           387 drivers/bluetooth/hci_ldisc.c 	       tty->termios.c_ispeed, tty->termios.c_ospeed);
termios          1413 drivers/char/pcmcia/synclink_cs.c 	cflag = tty->termios.c_cflag;
termios          2293 drivers/char/pcmcia/synclink_cs.c 	if ((tty->termios.c_cflag == old_termios->c_cflag)
termios          2294 drivers/char/pcmcia/synclink_cs.c 	    && (RELEVANT_IFLAG(tty->termios.c_iflag)
termios           487 drivers/ipack/devices/ipoctal.c 	cflag = tty->termios.c_cflag;
termios           504 drivers/ipack/devices/ipoctal.c 		tty->termios.c_cflag = (cflag & ~CSIZE) | CS8;
termios           518 drivers/ipack/devices/ipoctal.c 	tty->termios.c_cflag &= ~CMSPAR;
termios           551 drivers/ipack/devices/ipoctal.c 	tty_termios_encode_baud_rate(&tty->termios, baud, baud);
termios           595 drivers/ipack/devices/ipoctal.c 		tty_termios_encode_baud_rate(&tty->termios, 38400, 38400);
termios           247 drivers/mmc/core/sdio_uart.c 				   struct ktermios *termios,
termios           253 drivers/mmc/core/sdio_uart.c 	switch (termios->c_cflag & CSIZE) {
termios           269 drivers/mmc/core/sdio_uart.c 	if (termios->c_cflag & CSTOPB)
termios           271 drivers/mmc/core/sdio_uart.c 	if (termios->c_cflag & PARENB)
termios           273 drivers/mmc/core/sdio_uart.c 	if (!(termios->c_cflag & PARODD))
termios           277 drivers/mmc/core/sdio_uart.c 		baud = tty_termios_baud_rate(termios);
termios           286 drivers/mmc/core/sdio_uart.c 		termios->c_cflag &= ~CBAUD;
termios           288 drivers/mmc/core/sdio_uart.c 			termios->c_cflag |= old->c_cflag & CBAUD;
termios           291 drivers/mmc/core/sdio_uart.c 			termios->c_cflag |= B9600;
termios           301 drivers/mmc/core/sdio_uart.c 	if (termios->c_iflag & INPCK)
termios           303 drivers/mmc/core/sdio_uart.c 	if (termios->c_iflag & (BRKINT | PARMRK))
termios           310 drivers/mmc/core/sdio_uart.c 	if (termios->c_iflag & IGNPAR)
termios           312 drivers/mmc/core/sdio_uart.c 	if (termios->c_iflag & IGNBRK) {
termios           318 drivers/mmc/core/sdio_uart.c 		if (termios->c_iflag & IGNPAR)
termios           325 drivers/mmc/core/sdio_uart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           332 drivers/mmc/core/sdio_uart.c 	if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL))
termios           643 drivers/mmc/core/sdio_uart.c 	sdio_uart_change_speed(port, &tty->termios, NULL);
termios           878 drivers/mmc/core/sdio_uart.c 	unsigned int cflag = tty->termios.c_cflag;
termios           883 drivers/mmc/core/sdio_uart.c 	sdio_uart_change_speed(port, &tty->termios, old_termios);
termios          1046 drivers/net/usb/hso.c static void hso_init_termios(struct ktermios *termios)
termios          1051 drivers/net/usb/hso.c 	termios->c_iflag &=
termios          1062 drivers/net/usb/hso.c 	termios->c_oflag &= ~OPOST;
termios          1064 drivers/net/usb/hso.c 	termios->c_lflag &=
termios          1073 drivers/net/usb/hso.c 	termios->c_cflag &=
termios          1079 drivers/net/usb/hso.c 	termios->c_cflag |= CS8;	/* character size 8 bits */
termios          1082 drivers/net/usb/hso.c 	tty_termios_encode_baud_rate(termios, 115200, 115200);
termios          1100 drivers/net/usb/hso.c 	tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */
termios          1102 drivers/net/usb/hso.c 	tty->termios.c_cflag &=
termios          1108 drivers/net/usb/hso.c 	tty->termios.c_cflag |= CS8;	/* character size 8 bits */
termios          1393 drivers/net/usb/hso.c 			tty->termios.c_cflag, old->c_cflag);
termios          1400 drivers/net/usb/hso.c 		tty->termios = *old;
termios           929 drivers/staging/fwserial/fwserial.c 	baud = tty_termios_baud_rate(&tty->termios);
termios           930 drivers/staging/fwserial/fwserial.c 	tty_termios_encode_baud_rate(&tty->termios, baud, baud);
termios           967 drivers/staging/fwserial/fwserial.c 		tty->termios.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHOKE |
termios           969 drivers/staging/fwserial/fwserial.c 		tty->termios.c_oflag &= ~ONLCR;
termios           497 drivers/staging/greybus/uart.c 	struct ktermios *termios = &tty->termios;
termios           502 drivers/staging/greybus/uart.c 	newline.format = termios->c_cflag & CSTOPB ?
termios           504 drivers/staging/greybus/uart.c 	newline.parity = termios->c_cflag & PARENB ?
termios           505 drivers/staging/greybus/uart.c 				(termios->c_cflag & PARODD ? 1 : 2) +
termios           506 drivers/staging/greybus/uart.c 				(termios->c_cflag & CMSPAR ? 2 : 0) : 0;
termios           508 drivers/staging/greybus/uart.c 	switch (termios->c_cflag & CSIZE) {
termios           525 drivers/staging/greybus/uart.c 	gb_tty->clocal = ((termios->c_cflag & CLOCAL) != 0);
termios           594 drivers/staging/greybus/uart.c 	if (tty->termios.c_cflag & CRTSCTS) {
termios           613 drivers/staging/greybus/uart.c 	if (tty->termios.c_cflag & CRTSCTS) {
termios           424 drivers/staging/isdn/gigaset/interface.c 	iflag = tty->termios.c_iflag;
termios           425 drivers/staging/isdn/gigaset/interface.c 	cflag = tty->termios.c_cflag;
termios           135 drivers/staging/speakup/spk_ttyio.c 	*out_termios = tty->termios;
termios           655 drivers/tty/amiserial.c 	cflag = tty->termios.c_cflag;
termios           692 drivers/tty/amiserial.c 		tty->termios.c_cflag &= ~CBAUD;
termios           693 drivers/tty/amiserial.c 		tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD);
termios          1281 drivers/tty/amiserial.c 	unsigned int cflag = tty->termios.c_cflag;
termios          1973 drivers/tty/cyclades.c 	cflag = tty->termios.c_cflag;
termios          1974 drivers/tty/cyclades.c 	iflag = tty->termios.c_iflag;
termios           402 drivers/tty/hvc/hvsi_lib.c 		if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL))
termios           696 drivers/tty/isicom.c 			tty->termios.c_cflag &= ~CBAUDEX;
termios          1162 drivers/tty/isicom.c 	if (tty->termios.c_cflag == old_termios->c_cflag &&
termios          1163 drivers/tty/isicom.c 			tty->termios.c_iflag == old_termios->c_iflag)
termios           369 drivers/tty/moxa.c 					tmp.cflag = ttyp->termios.c_cflag;
termios          1185 drivers/tty/moxa.c 		moxa_set_tty_param(tty, &tty->termios);
termios          1200 drivers/tty/moxa.c 	ch->cflag = tty->termios.c_cflag;
termios          1468 drivers/tty/moxa.c 	register struct ktermios *ts = &tty->termios;
termios           648 drivers/tty/mxser.c 	cflag = tty->termios.c_cflag;
termios          1541 drivers/tty/mxser.c 					ms.cflag = tty->termios.c_cflag;
termios          1612 drivers/tty/mxser.c 					cflag = tty->termios.c_cflag;
termios          1613 drivers/tty/mxser.c 					iflag = tty->termios.c_iflag;
termios          3145 drivers/tty/n_gsm.c 	tty_termios_copy_hw(&tty->termios, old);
termios          1798 drivers/tty/n_tty.c 	if (!old || (old->c_lflag ^ tty->termios.c_lflag) & (ICANON | EXTPROC)) {
termios           290 drivers/tty/pty.c 	tty->termios.c_cflag &= ~(CSIZE | PARENB);
termios           291 drivers/tty/pty.c 	tty->termios.c_cflag |= (CS8 | CREAD);
termios           416 drivers/tty/pty.c 		tty->termios = driver->init_termios;
termios           418 drivers/tty/pty.c 		o_tty->termios = driver->other->init_termios;
termios           703 drivers/tty/rocket.c 	struct ktermios *t = &tty->termios;
termios          1051 drivers/tty/rocket.c 	cflag = tty->termios.c_cflag;
termios          1057 drivers/tty/rocket.c 		tty->termios.c_cflag =
termios          1060 drivers/tty/rocket.c 	tty->termios.c_cflag &= ~CMSPAR;
termios           129 drivers/tty/serdev/serdev-ttyport.c 	ktermios = tty->termios;
termios           173 drivers/tty/serdev/serdev-ttyport.c 	struct ktermios ktermios = tty->termios;
termios           187 drivers/tty/serdev/serdev-ttyport.c 	struct ktermios ktermios = tty->termios;
termios           202 drivers/tty/serdev/serdev-ttyport.c 	struct ktermios ktermios = tty->termios;
termios           213 drivers/tty/serdev/serdev-ttyport.c 	if ((tty->termios.c_cflag & (PARENB | PARODD | CMSPAR)) !=
termios           210 drivers/tty/serial/21285.c serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
termios           219 drivers/tty/serial/21285.c 	termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR);
termios           220 drivers/tty/serial/21285.c 	termios->c_cflag |= CLOCAL;
termios           225 drivers/tty/serial/21285.c 	termios->c_iflag &= ~(IGNBRK | BRKINT);
termios           230 drivers/tty/serial/21285.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 
termios           233 drivers/tty/serial/21285.c 	tty_termios_encode_baud_rate(termios, b, b);
termios           235 drivers/tty/serial/21285.c 	switch (termios->c_cflag & CSIZE) {
termios           250 drivers/tty/serial/21285.c 	if (termios->c_cflag & CSTOPB)
termios           252 drivers/tty/serial/21285.c 	if (termios->c_cflag & PARENB) {
termios           254 drivers/tty/serial/21285.c 		if (!(termios->c_cflag & PARODD))
termios           266 drivers/tty/serial/21285.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           272 drivers/tty/serial/21285.c 	if (termios->c_iflag & INPCK)
termios           279 drivers/tty/serial/21285.c 	if (termios->c_iflag & IGNPAR)
termios           281 drivers/tty/serial/21285.c 	if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR)
termios           287 drivers/tty/serial/21285.c 	if ((termios->c_cflag & CREAD) == 0)
termios           275 drivers/tty/serial/8250/8250_dw.c static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,
termios           278 drivers/tty/serial/8250/8250_dw.c 	unsigned int baud = tty_termios_baud_rate(termios);
termios           301 drivers/tty/serial/8250/8250_dw.c 	if (termios->c_cflag & CRTSCTS)
termios           304 drivers/tty/serial/8250/8250_dw.c 	serial8250_do_set_termios(p, termios, old);
termios           307 drivers/tty/serial/8250/8250_dw.c static void dw8250_set_ldisc(struct uart_port *p, struct ktermios *termios)
termios           313 drivers/tty/serial/8250/8250_dw.c 		if (termios->c_line == N_IRDA)
termios           320 drivers/tty/serial/8250/8250_dw.c 	serial8250_do_set_ldisc(p, termios);
termios           307 drivers/tty/serial/8250/8250_fintek.c 				    struct ktermios *termios,
termios           311 drivers/tty/serial/8250/8250_fintek.c 	unsigned int baud = tty_termios_baud_rate(termios);
termios           363 drivers/tty/serial/8250/8250_fintek.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           367 drivers/tty/serial/8250/8250_fintek.c 	serial8250_do_set_termios(port, termios, old);
termios            72 drivers/tty/serial/8250/8250_lpss.c static void byt_set_termios(struct uart_port *p, struct ktermios *termios,
termios            75 drivers/tty/serial/8250/8250_lpss.c 	unsigned int baud = tty_termios_baud_rate(termios);
termios           104 drivers/tty/serial/8250/8250_lpss.c 	if (termios->c_cflag & CRTSCTS)
termios           107 drivers/tty/serial/8250/8250_lpss.c 	serial8250_do_set_termios(p, termios, old);
termios           200 drivers/tty/serial/8250/8250_mid.c 				struct ktermios *termios,
termios           203 drivers/tty/serial/8250/8250_mid.c 	unsigned int baud = tty_termios_baud_rate(termios);
termios           232 drivers/tty/serial/8250/8250_mid.c 	serial8250_do_set_termios(p, termios, old);
termios           283 drivers/tty/serial/8250/8250_mtk.c mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
termios           308 drivers/tty/serial/8250/8250_mtk.c 	serial8250_do_set_termios(port, termios, old);
termios           323 drivers/tty/serial/8250/8250_mtk.c 	baud = uart_get_baud_rate(port, termios, old,
termios           370 drivers/tty/serial/8250/8250_mtk.c 	if ((termios->c_cflag & CRTSCTS) && (!(termios->c_iflag & CRTSCTS)))
termios           372 drivers/tty/serial/8250/8250_mtk.c 	else if (termios->c_iflag & CRTSCTS)
termios           380 drivers/tty/serial/8250/8250_mtk.c 		up->port.cons->cflag = termios->c_cflag;
termios           384 drivers/tty/serial/8250/8250_mtk.c 	if (tty_termios_baud_rate(termios))
termios           385 drivers/tty/serial/8250/8250_mtk.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           333 drivers/tty/serial/8250/8250_omap.c 				  struct ktermios *termios,
termios           341 drivers/tty/serial/8250/8250_omap.c 	switch (termios->c_cflag & CSIZE) {
termios           357 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_cflag & CSTOPB)
termios           359 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_cflag & PARENB)
termios           361 drivers/tty/serial/8250/8250_omap.c 	if (!(termios->c_cflag & PARODD))
termios           363 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_cflag & CMSPAR)
termios           369 drivers/tty/serial/8250/8250_omap.c 	baud = uart_get_baud_rate(port, termios, old,
termios           384 drivers/tty/serial/8250/8250_omap.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           387 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_iflag & INPCK)
termios           389 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_iflag & (IGNBRK | PARMRK))
termios           396 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_iflag & IGNPAR)
termios           398 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_iflag & IGNBRK) {
termios           404 drivers/tty/serial/8250/8250_omap.c 		if (termios->c_iflag & IGNPAR)
termios           411 drivers/tty/serial/8250/8250_omap.c 	if ((termios->c_cflag & CREAD) == 0)
termios           418 drivers/tty/serial/8250/8250_omap.c 	if (UART_ENABLE_MS(&up->port, termios->c_cflag))
termios           452 drivers/tty/serial/8250/8250_omap.c 	priv->xon = termios->c_cc[VSTART];
termios           453 drivers/tty/serial/8250/8250_omap.c 	priv->xoff = termios->c_cc[VSTOP];
termios           458 drivers/tty/serial/8250/8250_omap.c 	if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW &&
termios           475 drivers/tty/serial/8250/8250_omap.c 		if (termios->c_iflag & IXOFF) {
termios           493 drivers/tty/serial/8250/8250_omap.c 	if (tty_termios_baud_rate(termios))
termios           494 drivers/tty/serial/8250/8250_omap.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          2539 drivers/tty/serial/8250/8250_port.c 					     struct ktermios *termios,
termios          2548 drivers/tty/serial/8250/8250_port.c 	return uart_get_baud_rate(port, termios, old,
termios          2554 drivers/tty/serial/8250/8250_port.c serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
termios          2563 drivers/tty/serial/8250/8250_port.c 		termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CMSPAR);
termios          2564 drivers/tty/serial/8250/8250_port.c 		if ((termios->c_cflag & CSIZE) == CS5 ||
termios          2565 drivers/tty/serial/8250/8250_port.c 		    (termios->c_cflag & CSIZE) == CS6)
termios          2566 drivers/tty/serial/8250/8250_port.c 			termios->c_cflag = (termios->c_cflag & ~CSIZE) | CS7;
termios          2568 drivers/tty/serial/8250/8250_port.c 	cval = serial8250_compute_lcr(up, termios->c_cflag);
termios          2570 drivers/tty/serial/8250/8250_port.c 	baud = serial8250_get_baud_rate(port, termios, old);
termios          2597 drivers/tty/serial/8250/8250_port.c 		if (termios->c_cflag & CRTSCTS)
termios          2604 drivers/tty/serial/8250/8250_port.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          2607 drivers/tty/serial/8250/8250_port.c 	if (termios->c_iflag & INPCK)
termios          2609 drivers/tty/serial/8250/8250_port.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          2616 drivers/tty/serial/8250/8250_port.c 	if (termios->c_iflag & IGNPAR)
termios          2618 drivers/tty/serial/8250/8250_port.c 	if (termios->c_iflag & IGNBRK) {
termios          2624 drivers/tty/serial/8250/8250_port.c 		if (termios->c_iflag & IGNPAR)
termios          2631 drivers/tty/serial/8250/8250_port.c 	if ((termios->c_cflag & CREAD) == 0)
termios          2639 drivers/tty/serial/8250/8250_port.c 			UART_ENABLE_MS(&up->port, termios->c_cflag))
termios          2655 drivers/tty/serial/8250/8250_port.c 		if (termios->c_cflag & CRTSCTS)
termios          2686 drivers/tty/serial/8250/8250_port.c 	if (tty_termios_baud_rate(termios))
termios          2687 drivers/tty/serial/8250/8250_port.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          2692 drivers/tty/serial/8250/8250_port.c serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
termios          2696 drivers/tty/serial/8250/8250_port.c 		port->set_termios(port, termios, old);
termios          2698 drivers/tty/serial/8250/8250_port.c 		serial8250_do_set_termios(port, termios, old);
termios          2701 drivers/tty/serial/8250/8250_port.c void serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios)
termios          2703 drivers/tty/serial/8250/8250_port.c 	if (termios->c_line == N_PPS) {
termios          2710 drivers/tty/serial/8250/8250_port.c 		if (!UART_ENABLE_MS(port, termios->c_cflag)) {
termios          2720 drivers/tty/serial/8250/8250_port.c serial8250_set_ldisc(struct uart_port *port, struct ktermios *termios)
termios          2723 drivers/tty/serial/8250/8250_port.c 		port->set_ldisc(port, termios);
termios          2725 drivers/tty/serial/8250/8250_port.c 		serial8250_do_set_ldisc(port, termios);
termios          3124 drivers/tty/serial/8250/8250_port.c 	struct ktermios termios;
termios          3127 drivers/tty/serial/8250/8250_port.c 	termios.c_cflag = port->cons->cflag;
termios          3128 drivers/tty/serial/8250/8250_port.c 	if (port->state->port.tty && termios.c_cflag == 0)
termios          3129 drivers/tty/serial/8250/8250_port.c 		termios.c_cflag = port->state->port.tty->termios.c_cflag;
termios          3131 drivers/tty/serial/8250/8250_port.c 	baud = serial8250_get_baud_rate(port, &termios, NULL);
termios           109 drivers/tty/serial/altera_jtaguart.c 					struct ktermios *termios,
termios           114 drivers/tty/serial/altera_jtaguart.c 		tty_termios_copy_hw(termios, old);
termios           177 drivers/tty/serial/altera_uart.c 				    struct ktermios *termios,
termios           183 drivers/tty/serial/altera_uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
termios           187 drivers/tty/serial/altera_uart.c 		tty_termios_copy_hw(termios, old);
termios           188 drivers/tty/serial/altera_uart.c 	tty_termios_encode_baud_rate(termios, baud, baud);
termios           191 drivers/tty/serial/altera_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           381 drivers/tty/serial/amba-pl010.c pl010_set_termios(struct uart_port *port, struct ktermios *termios,
termios           393 drivers/tty/serial/amba-pl010.c 	baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16); 
termios           396 drivers/tty/serial/amba-pl010.c 	switch (termios->c_cflag & CSIZE) {
termios           410 drivers/tty/serial/amba-pl010.c 	if (termios->c_cflag & CSTOPB)
termios           412 drivers/tty/serial/amba-pl010.c 	if (termios->c_cflag & PARENB) {
termios           414 drivers/tty/serial/amba-pl010.c 		if (!(termios->c_cflag & PARODD))
termios           425 drivers/tty/serial/amba-pl010.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           428 drivers/tty/serial/amba-pl010.c 	if (termios->c_iflag & INPCK)
termios           430 drivers/tty/serial/amba-pl010.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           437 drivers/tty/serial/amba-pl010.c 	if (termios->c_iflag & IGNPAR)
termios           439 drivers/tty/serial/amba-pl010.c 	if (termios->c_iflag & IGNBRK) {
termios           445 drivers/tty/serial/amba-pl010.c 		if (termios->c_iflag & IGNPAR)
termios           452 drivers/tty/serial/amba-pl010.c 	if ((termios->c_cflag & CREAD) == 0)
termios           458 drivers/tty/serial/amba-pl010.c 	if (UART_ENABLE_MS(port, termios->c_cflag))
termios           479 drivers/tty/serial/amba-pl010.c static void pl010_set_ldisc(struct uart_port *port, struct ktermios *termios)
termios           481 drivers/tty/serial/amba-pl010.c 	if (termios->c_line == N_PPS) {
termios           488 drivers/tty/serial/amba-pl010.c 		if (!UART_ENABLE_MS(port, termios->c_cflag)) {
termios          1914 drivers/tty/serial/amba-pl011.c pl011_setup_status_masks(struct uart_port *port, struct ktermios *termios)
termios          1917 drivers/tty/serial/amba-pl011.c 	if (termios->c_iflag & INPCK)
termios          1919 drivers/tty/serial/amba-pl011.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          1926 drivers/tty/serial/amba-pl011.c 	if (termios->c_iflag & IGNPAR)
termios          1928 drivers/tty/serial/amba-pl011.c 	if (termios->c_iflag & IGNBRK) {
termios          1934 drivers/tty/serial/amba-pl011.c 		if (termios->c_iflag & IGNPAR)
termios          1941 drivers/tty/serial/amba-pl011.c 	if ((termios->c_cflag & CREAD) == 0)
termios          1946 drivers/tty/serial/amba-pl011.c pl011_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1963 drivers/tty/serial/amba-pl011.c 	baud = uart_get_baud_rate(port, termios, old, 0,
termios          1978 drivers/tty/serial/amba-pl011.c 	switch (termios->c_cflag & CSIZE) {
termios          1992 drivers/tty/serial/amba-pl011.c 	if (termios->c_cflag & CSTOPB)
termios          1994 drivers/tty/serial/amba-pl011.c 	if (termios->c_cflag & PARENB) {
termios          1996 drivers/tty/serial/amba-pl011.c 		if (!(termios->c_cflag & PARODD))
termios          1998 drivers/tty/serial/amba-pl011.c 		if (termios->c_cflag & CMSPAR)
termios          2009 drivers/tty/serial/amba-pl011.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          2011 drivers/tty/serial/amba-pl011.c 	pl011_setup_status_masks(port, termios);
termios          2013 drivers/tty/serial/amba-pl011.c 	if (UART_ENABLE_MS(port, termios->c_cflag))
termios          2020 drivers/tty/serial/amba-pl011.c 	if (termios->c_cflag & CRTSCTS) {
termios          2067 drivers/tty/serial/amba-pl011.c sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios,
termios          2074 drivers/tty/serial/amba-pl011.c 	tty_termios_encode_baud_rate(termios, uap->fixed_baud, uap->fixed_baud);
termios          2077 drivers/tty/serial/amba-pl011.c 	termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
termios          2078 drivers/tty/serial/amba-pl011.c 	termios->c_cflag &= ~(CMSPAR | CRTSCTS);
termios          2079 drivers/tty/serial/amba-pl011.c 	termios->c_cflag |= CS8 | CLOCAL;
termios          2083 drivers/tty/serial/amba-pl011.c 	pl011_setup_status_masks(port, termios);
termios           237 drivers/tty/serial/apbuart.c 				struct ktermios *termios, struct ktermios *old)
termios           244 drivers/tty/serial/apbuart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios           253 drivers/tty/serial/apbuart.c 	if (termios->c_cflag & PARENB) {
termios           255 drivers/tty/serial/apbuart.c 		if ((termios->c_cflag & PARODD))
termios           260 drivers/tty/serial/apbuart.c 	if (termios->c_cflag & CRTSCTS)
termios           266 drivers/tty/serial/apbuart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           269 drivers/tty/serial/apbuart.c 	if (termios->c_iflag & INPCK)
termios           274 drivers/tty/serial/apbuart.c 	if (termios->c_iflag & IGNPAR)
termios           278 drivers/tty/serial/apbuart.c 	if ((termios->c_cflag & CREAD) == 0)
termios          2132 drivers/tty/serial/atmel_serial.c static void atmel_set_termios(struct uart_port *port, struct ktermios *termios,
termios          2146 drivers/tty/serial/atmel_serial.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios          2149 drivers/tty/serial/atmel_serial.c 	switch (termios->c_cflag & CSIZE) {
termios          2165 drivers/tty/serial/atmel_serial.c 	if (termios->c_cflag & CSTOPB)
termios          2169 drivers/tty/serial/atmel_serial.c 	if (termios->c_cflag & PARENB) {
termios          2171 drivers/tty/serial/atmel_serial.c 		if (termios->c_cflag & CMSPAR) {
termios          2172 drivers/tty/serial/atmel_serial.c 			if (termios->c_cflag & PARODD)
termios          2176 drivers/tty/serial/atmel_serial.c 		} else if (termios->c_cflag & PARODD)
termios          2186 drivers/tty/serial/atmel_serial.c 	if (termios->c_iflag & INPCK)
termios          2188 drivers/tty/serial/atmel_serial.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          2199 drivers/tty/serial/atmel_serial.c 	if (termios->c_iflag & IGNPAR)
termios          2201 drivers/tty/serial/atmel_serial.c 	if (termios->c_iflag & IGNBRK) {
termios          2207 drivers/tty/serial/atmel_serial.c 		if (termios->c_iflag & IGNPAR)
termios          2213 drivers/tty/serial/atmel_serial.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          2243 drivers/tty/serial/atmel_serial.c 	} else if (termios->c_cflag & CRTSCTS) {
termios          2330 drivers/tty/serial/atmel_serial.c 	if (UART_ENABLE_MS(port, termios->c_cflag))
termios          2338 drivers/tty/serial/atmel_serial.c static void atmel_set_ldisc(struct uart_port *port, struct ktermios *termios)
termios          2340 drivers/tty/serial/atmel_serial.c 	if (termios->c_line == N_PPS) {
termios          2347 drivers/tty/serial/atmel_serial.c 		if (!UART_ENABLE_MS(port, termios->c_cflag)) {
termios           225 drivers/tty/serial/clps711x.c 				    struct ktermios *termios)
termios           231 drivers/tty/serial/clps711x.c 				   (termios->c_line == N_IRDA) ? SYSCON1_SIREN : 0);
termios           257 drivers/tty/serial/clps711x.c 				      struct ktermios *termios,
termios           264 drivers/tty/serial/clps711x.c 	termios->c_cflag &= ~CMSPAR;
termios           265 drivers/tty/serial/clps711x.c 	termios->c_iflag &= ~(BRKINT | IGNBRK);
termios           268 drivers/tty/serial/clps711x.c 	baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096,
termios           272 drivers/tty/serial/clps711x.c 	switch (termios->c_cflag & CSIZE) {
termios           288 drivers/tty/serial/clps711x.c 	if (termios->c_cflag & CSTOPB)
termios           291 drivers/tty/serial/clps711x.c 	if (termios->c_cflag & PARENB) {
termios           293 drivers/tty/serial/clps711x.c 		if (!(termios->c_cflag & PARODD))
termios           302 drivers/tty/serial/clps711x.c 	if (termios->c_iflag & INPCK)
termios           307 drivers/tty/serial/clps711x.c 	if (!(termios->c_cflag & CREAD))
termios           311 drivers/tty/serial/clps711x.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           493 drivers/tty/serial/cpm_uart/cpm_uart_core.c                                  struct ktermios *termios,
termios           508 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios           535 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	switch (termios->c_cflag & CSIZE) {
termios           555 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if (termios->c_cflag & CSTOPB) {
termios           561 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if (termios->c_cflag & PARENB) {
termios           565 drivers/tty/serial/cpm_uart/cpm_uart_core.c 		if (!(termios->c_cflag & PARODD)) {
termios           574 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           580 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if (termios->c_iflag & INPCK)
termios           582 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if ((termios->c_iflag & BRKINT) || (termios->c_iflag & PARMRK))
termios           589 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if (termios->c_iflag & IGNPAR)
termios           591 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if (termios->c_iflag & IGNBRK) {
termios           597 drivers/tty/serial/cpm_uart/cpm_uart_core.c 		if (termios->c_iflag & IGNPAR)
termios           603 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	if ((termios->c_cflag & CREAD) == 0)
termios           289 drivers/tty/serial/digicolor-usart.c 				       struct ktermios *termios,
termios           297 drivers/tty/serial/digicolor-usart.c 	termios->c_cflag &= ~CMSPAR;
termios           298 drivers/tty/serial/digicolor-usart.c 	termios->c_iflag &= ~(BRKINT | IGNBRK);
termios           301 drivers/tty/serial/digicolor-usart.c 	baud = uart_get_baud_rate(port, termios, old,
termios           306 drivers/tty/serial/digicolor-usart.c 	switch (termios->c_cflag & CSIZE) {
termios           315 drivers/tty/serial/digicolor-usart.c 	if (termios->c_cflag & CSTOPB)
termios           318 drivers/tty/serial/digicolor-usart.c 	if (termios->c_cflag & PARENB) {
termios           320 drivers/tty/serial/digicolor-usart.c 		if (termios->c_cflag & PARODD)
termios           326 drivers/tty/serial/digicolor-usart.c 	if (termios->c_iflag & INPCK)
termios           332 drivers/tty/serial/digicolor-usart.c 	if (!(termios->c_cflag & CREAD))
termios           338 drivers/tty/serial/digicolor-usart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           565 drivers/tty/serial/dz.c static void dz_set_termios(struct uart_port *uport, struct ktermios *termios,
termios           575 drivers/tty/serial/dz.c 	switch (termios->c_cflag & CSIZE) {
termios           590 drivers/tty/serial/dz.c 	if (termios->c_cflag & CSTOPB)
termios           592 drivers/tty/serial/dz.c 	if (termios->c_cflag & PARENB)
termios           594 drivers/tty/serial/dz.c 	if (termios->c_cflag & PARODD)
termios           597 drivers/tty/serial/dz.c 	baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600);
termios           606 drivers/tty/serial/dz.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           610 drivers/tty/serial/dz.c 	if (termios->c_cflag & CREAD)
termios           615 drivers/tty/serial/dz.c 	uart_update_timeout(uport, termios->c_cflag, baud);
termios           622 drivers/tty/serial/dz.c 	if (termios->c_iflag & INPCK)
termios           624 drivers/tty/serial/dz.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           629 drivers/tty/serial/dz.c 	if ((termios->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
termios           631 drivers/tty/serial/dz.c 	if (termios->c_iflag & IGNPAR)
termios           633 drivers/tty/serial/dz.c 	if (termios->c_iflag & IGNBRK)
termios           423 drivers/tty/serial/fsl_linflexuart.c linflex_set_termios(struct uart_port *port, struct ktermios *termios,
termios           453 drivers/tty/serial/fsl_linflexuart.c 	while ((termios->c_cflag & CSIZE) != CS8 &&
termios           454 drivers/tty/serial/fsl_linflexuart.c 	       (termios->c_cflag & CSIZE) != CS7) {
termios           455 drivers/tty/serial/fsl_linflexuart.c 		termios->c_cflag &= ~CSIZE;
termios           456 drivers/tty/serial/fsl_linflexuart.c 		termios->c_cflag |= old_csize;
termios           460 drivers/tty/serial/fsl_linflexuart.c 	if ((termios->c_cflag & CSIZE) == CS7) {
termios           465 drivers/tty/serial/fsl_linflexuart.c 	if ((termios->c_cflag & CSIZE) == CS8) {
termios           470 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_cflag & CMSPAR) {
termios           471 drivers/tty/serial/fsl_linflexuart.c 		if ((termios->c_cflag & CSIZE) != CS8) {
termios           472 drivers/tty/serial/fsl_linflexuart.c 			termios->c_cflag &= ~CSIZE;
termios           473 drivers/tty/serial/fsl_linflexuart.c 			termios->c_cflag |= CS8;
termios           479 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_cflag & CSTOPB)
termios           480 drivers/tty/serial/fsl_linflexuart.c 		termios->c_cflag &= ~CSTOPB;
termios           483 drivers/tty/serial/fsl_linflexuart.c 	if ((termios->c_cflag & CSIZE) == CS7)
termios           484 drivers/tty/serial/fsl_linflexuart.c 		termios->c_cflag |= PARENB;
termios           486 drivers/tty/serial/fsl_linflexuart.c 	if ((termios->c_cflag & PARENB)) {
termios           488 drivers/tty/serial/fsl_linflexuart.c 		if (termios->c_cflag & PARODD)
termios           502 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_iflag & INPCK)
termios           508 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           513 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_iflag & IGNPAR)
termios           515 drivers/tty/serial/fsl_linflexuart.c 	if (termios->c_iflag & IGNBRK) {
termios           521 drivers/tty/serial/fsl_linflexuart.c 		if (termios->c_iflag & IGNPAR)
termios          1148 drivers/tty/serial/fsl_lpuart.c 	struct ktermios *termios = &tty->termios;
termios          1152 drivers/tty/serial/fsl_lpuart.c 	bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10;
termios          1153 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & PARENB)
termios          1628 drivers/tty/serial/fsl_lpuart.c lpuart_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1652 drivers/tty/serial/fsl_lpuart.c 	while ((termios->c_cflag & CSIZE) != CS8 &&
termios          1653 drivers/tty/serial/fsl_lpuart.c 		(termios->c_cflag & CSIZE) != CS7) {
termios          1654 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag &= ~CSIZE;
termios          1655 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag |= old_csize;
termios          1659 drivers/tty/serial/fsl_lpuart.c 	if ((termios->c_cflag & CSIZE) == CS8 ||
termios          1660 drivers/tty/serial/fsl_lpuart.c 		(termios->c_cflag & CSIZE) == CS7)
termios          1663 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & CMSPAR) {
termios          1664 drivers/tty/serial/fsl_lpuart.c 		if ((termios->c_cflag & CSIZE) != CS8) {
termios          1665 drivers/tty/serial/fsl_lpuart.c 			termios->c_cflag &= ~CSIZE;
termios          1666 drivers/tty/serial/fsl_lpuart.c 			termios->c_cflag |= CS8;
termios          1676 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag &= ~CRTSCTS;
termios          1678 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & CRTSCTS)
termios          1683 drivers/tty/serial/fsl_lpuart.c 	termios->c_cflag &= ~CSTOPB;
termios          1686 drivers/tty/serial/fsl_lpuart.c 	if ((termios->c_cflag & CSIZE) == CS7)
termios          1687 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag |= PARENB;
termios          1689 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & PARENB) {
termios          1690 drivers/tty/serial/fsl_lpuart.c 		if (termios->c_cflag & CMSPAR) {
termios          1692 drivers/tty/serial/fsl_lpuart.c 			if (termios->c_cflag & PARODD)
termios          1698 drivers/tty/serial/fsl_lpuart.c 			if ((termios->c_cflag & CSIZE) == CS8)
termios          1700 drivers/tty/serial/fsl_lpuart.c 			if (termios->c_cflag & PARODD)
termios          1710 drivers/tty/serial/fsl_lpuart.c 	baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
termios          1727 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & INPCK)
termios          1729 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          1734 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & IGNPAR)
termios          1736 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & IGNBRK) {
termios          1742 drivers/tty/serial/fsl_lpuart.c 		if (termios->c_iflag & IGNPAR)
termios          1747 drivers/tty/serial/fsl_lpuart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1855 drivers/tty/serial/fsl_lpuart.c lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1874 drivers/tty/serial/fsl_lpuart.c 	while ((termios->c_cflag & CSIZE) != CS8 &&
termios          1875 drivers/tty/serial/fsl_lpuart.c 		(termios->c_cflag & CSIZE) != CS7) {
termios          1876 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag &= ~CSIZE;
termios          1877 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag |= old_csize;
termios          1881 drivers/tty/serial/fsl_lpuart.c 	if ((termios->c_cflag & CSIZE) == CS8 ||
termios          1882 drivers/tty/serial/fsl_lpuart.c 		(termios->c_cflag & CSIZE) == CS7)
termios          1885 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & CMSPAR) {
termios          1886 drivers/tty/serial/fsl_lpuart.c 		if ((termios->c_cflag & CSIZE) != CS8) {
termios          1887 drivers/tty/serial/fsl_lpuart.c 			termios->c_cflag &= ~CSIZE;
termios          1888 drivers/tty/serial/fsl_lpuart.c 			termios->c_cflag |= CS8;
termios          1893 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & CRTSCTS) {
termios          1896 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag &= ~CRTSCTS;
termios          1900 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_cflag & CSTOPB)
termios          1901 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag &= ~CSTOPB;
termios          1904 drivers/tty/serial/fsl_lpuart.c 	if ((termios->c_cflag & CSIZE) == CS7)
termios          1905 drivers/tty/serial/fsl_lpuart.c 		termios->c_cflag |= PARENB;
termios          1907 drivers/tty/serial/fsl_lpuart.c 	if ((termios->c_cflag & PARENB)) {
termios          1908 drivers/tty/serial/fsl_lpuart.c 		if (termios->c_cflag & CMSPAR) {
termios          1913 drivers/tty/serial/fsl_lpuart.c 			if ((termios->c_cflag & CSIZE) == CS8)
termios          1915 drivers/tty/serial/fsl_lpuart.c 			if (termios->c_cflag & PARODD)
termios          1925 drivers/tty/serial/fsl_lpuart.c 	baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
termios          1942 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & INPCK)
termios          1944 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          1949 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & IGNPAR)
termios          1951 drivers/tty/serial/fsl_lpuart.c 	if (termios->c_iflag & IGNBRK) {
termios          1957 drivers/tty/serial/fsl_lpuart.c 		if (termios->c_iflag & IGNPAR)
termios          1962 drivers/tty/serial/fsl_lpuart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1086 drivers/tty/serial/icom.c 			     struct ktermios *termios,
termios          1102 drivers/tty/serial/icom.c 	cflag = termios->c_cflag;
termios          1103 drivers/tty/serial/icom.c 	iflag = termios->c_iflag;
termios          1140 drivers/tty/serial/icom.c 	baud = uart_get_baud_rate(port, termios, old_termios,
termios          1564 drivers/tty/serial/imx.c imx_uart_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1579 drivers/tty/serial/imx.c 	while ((termios->c_cflag & CSIZE) != CS7 &&
termios          1580 drivers/tty/serial/imx.c 	       (termios->c_cflag & CSIZE) != CS8) {
termios          1581 drivers/tty/serial/imx.c 		termios->c_cflag &= ~CSIZE;
termios          1582 drivers/tty/serial/imx.c 		termios->c_cflag |= old_csize;
termios          1591 drivers/tty/serial/imx.c 	baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
termios          1604 drivers/tty/serial/imx.c 	if ((termios->c_cflag & CSIZE) == CS8)
termios          1608 drivers/tty/serial/imx.c 		termios->c_cflag &= ~CRTSCTS;
termios          1621 drivers/tty/serial/imx.c 	} else if (termios->c_cflag & CRTSCTS) {
termios          1630 drivers/tty/serial/imx.c 	if (termios->c_cflag & CRTSCTS)
termios          1633 drivers/tty/serial/imx.c 	if (termios->c_cflag & CSTOPB)
termios          1635 drivers/tty/serial/imx.c 	if (termios->c_cflag & PARENB) {
termios          1637 drivers/tty/serial/imx.c 		if (termios->c_cflag & PARODD)
termios          1642 drivers/tty/serial/imx.c 	if (termios->c_iflag & INPCK)
termios          1644 drivers/tty/serial/imx.c 	if (termios->c_iflag & (BRKINT | PARMRK))
termios          1651 drivers/tty/serial/imx.c 	if (termios->c_iflag & IGNPAR)
termios          1653 drivers/tty/serial/imx.c 	if (termios->c_iflag & IGNBRK) {
termios          1659 drivers/tty/serial/imx.c 		if (termios->c_iflag & IGNPAR)
termios          1663 drivers/tty/serial/imx.c 	if ((termios->c_cflag & CREAD) == 0)
termios          1669 drivers/tty/serial/imx.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1688 drivers/tty/serial/imx.c 	tty_termios_encode_baud_rate(termios,
termios          1720 drivers/tty/serial/imx.c 	if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
termios           879 drivers/tty/serial/ip22zilog.c ip22zilog_set_termios(struct uart_port *port, struct ktermios *termios,
termios           887 drivers/tty/serial/ip22zilog.c 	baud = uart_get_baud_rate(port, termios, old, 1200, 76800);
termios           893 drivers/tty/serial/ip22zilog.c 	ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
termios           895 drivers/tty/serial/ip22zilog.c 	if (UART_ENABLE_MS(&up->port, termios->c_cflag))
termios           901 drivers/tty/serial/ip22zilog.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           153 drivers/tty/serial/jsm/jsm_tty.c 	struct ktermios *termios;
termios           156 drivers/tty/serial/jsm/jsm_tty.c 	termios = &port->state->port.tty->termios;
termios           157 drivers/tty/serial/jsm/jsm_tty.c 	if (ch == termios->c_cc[VSTART])
termios           160 drivers/tty/serial/jsm/jsm_tty.c 	if (ch == termios->c_cc[VSTOP])
termios           193 drivers/tty/serial/jsm/jsm_tty.c 	struct ktermios *termios;
termios           243 drivers/tty/serial/jsm/jsm_tty.c 	termios = &port->state->port.tty->termios;
termios           244 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_cflag	= termios->c_cflag;
termios           245 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_iflag	= termios->c_iflag;
termios           246 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_oflag	= termios->c_oflag;
termios           247 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_lflag	= termios->c_lflag;
termios           248 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_startc	= termios->c_cc[VSTART];
termios           249 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_stopc	= termios->c_cc[VSTOP];
termios           300 drivers/tty/serial/jsm/jsm_tty.c 				 struct ktermios *termios,
termios           308 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_cflag	= termios->c_cflag;
termios           309 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_iflag	= termios->c_iflag;
termios           310 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_oflag	= termios->c_oflag;
termios           311 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_c_lflag	= termios->c_lflag;
termios           312 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_startc	= termios->c_cc[VSTART];
termios           313 drivers/tty/serial/jsm/jsm_tty.c 	channel->ch_stopc	= termios->c_cc[VSTOP];
termios           501 drivers/tty/serial/lpc32xx_hs.c 				       struct ktermios *termios,
termios           509 drivers/tty/serial/lpc32xx_hs.c 	termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
termios           510 drivers/tty/serial/lpc32xx_hs.c 	termios->c_cflag |= CS8;
termios           512 drivers/tty/serial/lpc32xx_hs.c 	termios->c_cflag &= ~(HUPCL | CMSPAR | CLOCAL | CRTSCTS);
termios           514 drivers/tty/serial/lpc32xx_hs.c 	baud = uart_get_baud_rate(port, termios, old, 0,
termios           523 drivers/tty/serial/lpc32xx_hs.c 	if ((termios->c_cflag & CREAD) == 0)
termios           531 drivers/tty/serial/lpc32xx_hs.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           536 drivers/tty/serial/lpc32xx_hs.c 	if (tty_termios_baud_rate(termios))
termios           537 drivers/tty/serial/lpc32xx_hs.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           420 drivers/tty/serial/max3100.c max3100_set_termios(struct uart_port *port, struct ktermios *termios,
termios           432 drivers/tty/serial/max3100.c 	cflag = termios->c_cflag;
termios           435 drivers/tty/serial/max3100.c 	baud = tty_termios_baud_rate(termios);
termios           480 drivers/tty/serial/max3100.c 	tty_termios_encode_baud_rate(termios, baud, baud);
termios           516 drivers/tty/serial/max3100.c 	termios->c_cflag = cflag;
termios           519 drivers/tty/serial/max3100.c 	if (termios->c_iflag & IGNPAR)
termios           530 drivers/tty/serial/max3100.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           539 drivers/tty/serial/max3100.c 	if (UART_ENABLE_MS(&s->port, termios->c_cflag))
termios           898 drivers/tty/serial/max310x.c 				struct ktermios *termios,
termios           905 drivers/tty/serial/max310x.c 	termios->c_cflag &= ~CMSPAR;
termios           908 drivers/tty/serial/max310x.c 	switch (termios->c_cflag & CSIZE) {
termios           924 drivers/tty/serial/max310x.c 	if (termios->c_cflag & PARENB) {
termios           926 drivers/tty/serial/max310x.c 		if (!(termios->c_cflag & PARODD))
termios           931 drivers/tty/serial/max310x.c 	if (termios->c_cflag & CSTOPB)
termios           939 drivers/tty/serial/max310x.c 	if (termios->c_iflag & INPCK)
termios           942 drivers/tty/serial/max310x.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           947 drivers/tty/serial/max310x.c 	if (termios->c_iflag & IGNBRK)
termios           949 drivers/tty/serial/max310x.c 	if (!(termios->c_cflag & CREAD))
termios           956 drivers/tty/serial/max310x.c 	max310x_port_write(port, MAX310X_XON1_REG, termios->c_cc[VSTART]);
termios           957 drivers/tty/serial/max310x.c 	max310x_port_write(port, MAX310X_XOFF1_REG, termios->c_cc[VSTOP]);
termios           962 drivers/tty/serial/max310x.c 	if (termios->c_cflag & CRTSCTS || termios->c_iflag & IXOFF) {
termios           970 drivers/tty/serial/max310x.c 	if (termios->c_cflag & CRTSCTS) {
termios           976 drivers/tty/serial/max310x.c 	if (termios->c_iflag & IXON)
termios           979 drivers/tty/serial/max310x.c 	if (termios->c_iflag & IXOFF) {
termios           989 drivers/tty/serial/max310x.c 	if (!(termios->c_cflag & CRTSCTS) && !(termios->c_iflag & IXOFF)) {
termios           996 drivers/tty/serial/max310x.c 	baud = uart_get_baud_rate(port, termios, old,
termios          1004 drivers/tty/serial/max310x.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           194 drivers/tty/serial/mcf.c static void mcf_set_termios(struct uart_port *port, struct ktermios *termios,
termios           204 drivers/tty/serial/mcf.c 	baud = uart_get_baud_rate(port, termios, old, 0, 230400);
termios           215 drivers/tty/serial/mcf.c 	switch (termios->c_cflag & CSIZE) {
termios           223 drivers/tty/serial/mcf.c 	if (termios->c_cflag & PARENB) {
termios           224 drivers/tty/serial/mcf.c 		if (termios->c_cflag & CMSPAR) {
termios           225 drivers/tty/serial/mcf.c 			if (termios->c_cflag & PARODD)
termios           230 drivers/tty/serial/mcf.c 			if (termios->c_cflag & PARODD)
termios           245 drivers/tty/serial/mcf.c 	if (termios->c_cflag & CSTOPB)
termios           250 drivers/tty/serial/mcf.c 	if (termios->c_cflag & CRTSCTS) {
termios           261 drivers/tty/serial/mcf.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           649 drivers/tty/serial/men_z135_uart.c 				struct ktermios *termios,
termios           663 drivers/tty/serial/men_z135_uart.c 	switch (termios->c_cflag & CSIZE) {
termios           679 drivers/tty/serial/men_z135_uart.c 	if (termios->c_cflag & CSTOPB)
termios           683 drivers/tty/serial/men_z135_uart.c 	if (termios->c_cflag & PARENB) {
termios           686 drivers/tty/serial/men_z135_uart.c 		if (termios->c_cflag & PARODD)
termios           694 drivers/tty/serial/men_z135_uart.c 	if (termios->c_cflag & CRTSCTS) {
termios           697 drivers/tty/serial/men_z135_uart.c 		termios->c_cflag &= ~CLOCAL;
termios           703 drivers/tty/serial/men_z135_uart.c 	termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
termios           712 drivers/tty/serial/men_z135_uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, uart_freq / 16);
termios           715 drivers/tty/serial/men_z135_uart.c 	if (tty_termios_baud_rate(termios))
termios           716 drivers/tty/serial/men_z135_uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           721 drivers/tty/serial/men_z135_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           315 drivers/tty/serial/meson_uart.c 				   struct ktermios *termios,
termios           324 drivers/tty/serial/meson_uart.c 	cflags = termios->c_cflag;
termios           325 drivers/tty/serial/meson_uart.c 	iflags = termios->c_iflag;
termios           368 drivers/tty/serial/meson_uart.c 	baud = uart_get_baud_rate(port, termios, old, 50, 4000000);
termios           381 drivers/tty/serial/meson_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           305 drivers/tty/serial/milbeaut_usio.c 			struct ktermios *termios, struct ktermios *old)
termios           310 drivers/tty/serial/milbeaut_usio.c 	switch (termios->c_cflag & CSIZE) {
termios           326 drivers/tty/serial/milbeaut_usio.c 	if (termios->c_cflag & CSTOPB)
termios           329 drivers/tty/serial/milbeaut_usio.c 	if (termios->c_cflag & PARENB) {
termios           331 drivers/tty/serial/milbeaut_usio.c 		if (termios->c_cflag & PARODD)
termios           336 drivers/tty/serial/milbeaut_usio.c 			(termios->c_cflag & CRTSCTS))
termios           339 drivers/tty/serial/milbeaut_usio.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk);
termios           346 drivers/tty/serial/milbeaut_usio.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           349 drivers/tty/serial/milbeaut_usio.c 	if (termios->c_iflag & INPCK)
termios           353 drivers/tty/serial/milbeaut_usio.c 	if (termios->c_iflag & IGNPAR)
termios           355 drivers/tty/serial/milbeaut_usio.c 	if ((termios->c_iflag & IGNBRK) && (termios->c_iflag & IGNPAR))
termios           357 drivers/tty/serial/milbeaut_usio.c 	if ((termios->c_cflag & CREAD) == 0)
termios           360 drivers/tty/serial/mps2-uart.c mps2_uart_set_termios(struct uart_port *port, struct ktermios *termios,
termios           366 drivers/tty/serial/mps2-uart.c 	termios->c_cflag &= ~(CRTSCTS | CMSPAR);
termios           367 drivers/tty/serial/mps2-uart.c 	termios->c_cflag &= ~CSIZE;
termios           368 drivers/tty/serial/mps2-uart.c 	termios->c_cflag |= CS8;
termios           369 drivers/tty/serial/mps2-uart.c 	termios->c_cflag &= ~PARENB;
termios           370 drivers/tty/serial/mps2-uart.c 	termios->c_cflag &= ~CSTOPB;
termios           372 drivers/tty/serial/mps2-uart.c 	baud = uart_get_baud_rate(port, termios, old,
termios           380 drivers/tty/serial/mps2-uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           385 drivers/tty/serial/mps2-uart.c 	if (tty_termios_baud_rate(termios))
termios           386 drivers/tty/serial/mps2-uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          1239 drivers/tty/serial/msm_serial.c static void msm_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1253 drivers/tty/serial/msm_serial.c 	baud = uart_get_baud_rate(port, termios, old, 300, 4000000);
termios          1255 drivers/tty/serial/msm_serial.c 	if (tty_termios_baud_rate(termios))
termios          1256 drivers/tty/serial/msm_serial.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          1261 drivers/tty/serial/msm_serial.c 	if (termios->c_cflag & PARENB) {
termios          1262 drivers/tty/serial/msm_serial.c 		if (termios->c_cflag & PARODD)
termios          1264 drivers/tty/serial/msm_serial.c 		else if (termios->c_cflag & CMSPAR)
termios          1272 drivers/tty/serial/msm_serial.c 	switch (termios->c_cflag & CSIZE) {
termios          1290 drivers/tty/serial/msm_serial.c 	if (termios->c_cflag & CSTOPB)
termios          1301 drivers/tty/serial/msm_serial.c 	if (termios->c_cflag & CRTSCTS) {
termios          1309 drivers/tty/serial/msm_serial.c 	if (termios->c_iflag & INPCK)
termios          1311 drivers/tty/serial/msm_serial.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          1314 drivers/tty/serial/msm_serial.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           295 drivers/tty/serial/mux.c mux_set_termios(struct uart_port *port, struct ktermios *termios,
termios           481 drivers/tty/serial/mvebu-uart.c 				   struct ktermios *termios,
termios           492 drivers/tty/serial/mvebu-uart.c 	if (termios->c_iflag & INPCK)
termios           496 drivers/tty/serial/mvebu-uart.c 	if (termios->c_iflag & IGNPAR)
termios           500 drivers/tty/serial/mvebu-uart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           509 drivers/tty/serial/mvebu-uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, 230400);
termios           515 drivers/tty/serial/mvebu-uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           516 drivers/tty/serial/mvebu-uart.c 		uart_update_timeout(port, termios->c_cflag, baud);
termios           521 drivers/tty/serial/mvebu-uart.c 		termios->c_iflag &= INPCK | IGNPAR;
termios           522 drivers/tty/serial/mvebu-uart.c 		termios->c_iflag |= old->c_iflag & ~(INPCK | IGNPAR);
termios           523 drivers/tty/serial/mvebu-uart.c 		termios->c_cflag &= CREAD | CBAUD;
termios           524 drivers/tty/serial/mvebu-uart.c 		termios->c_cflag |= old->c_cflag & ~(CREAD | CBAUD);
termios           525 drivers/tty/serial/mvebu-uart.c 		termios->c_cflag |= CS8;
termios           975 drivers/tty/serial/mxs-auart.c 				 struct ktermios *termios,
termios           982 drivers/tty/serial/mxs-auart.c 	cflag = termios->c_cflag;
termios          1018 drivers/tty/serial/mxs-auart.c 	if (termios->c_iflag & INPCK)
termios          1020 drivers/tty/serial/mxs-auart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios          1027 drivers/tty/serial/mxs-auart.c 	if (termios->c_iflag & IGNPAR)
termios          1029 drivers/tty/serial/mxs-auart.c 	if (termios->c_iflag & IGNBRK) {
termios          1035 drivers/tty/serial/mxs-auart.c 		if (termios->c_iflag & IGNPAR)
termios          1076 drivers/tty/serial/mxs-auart.c 		baud = uart_get_baud_rate(u, termios, old,
termios          1084 drivers/tty/serial/mxs-auart.c 		baud = uart_get_baud_rate(u, termios, old, baud_min, baud_max);
termios          1094 drivers/tty/serial/mxs-auart.c 	uart_update_timeout(u, termios->c_cflag, baud);
termios          1110 drivers/tty/serial/mxs-auart.c 	if (UART_ENABLE_MS(u, termios->c_cflag))
termios          1117 drivers/tty/serial/mxs-auart.c 				struct ktermios *termios)
termios          1119 drivers/tty/serial/mxs-auart.c 	if (termios->c_line == N_PPS) {
termios           839 drivers/tty/serial/omap-serial.c serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
termios           847 drivers/tty/serial/omap-serial.c 	switch (termios->c_cflag & CSIZE) {
termios           863 drivers/tty/serial/omap-serial.c 	if (termios->c_cflag & CSTOPB)
termios           865 drivers/tty/serial/omap-serial.c 	if (termios->c_cflag & PARENB)
termios           867 drivers/tty/serial/omap-serial.c 	if (!(termios->c_cflag & PARODD))
termios           869 drivers/tty/serial/omap-serial.c 	if (termios->c_cflag & CMSPAR)
termios           876 drivers/tty/serial/omap-serial.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/13);
termios           901 drivers/tty/serial/omap-serial.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           904 drivers/tty/serial/omap-serial.c 	if (termios->c_iflag & INPCK)
termios           906 drivers/tty/serial/omap-serial.c 	if (termios->c_iflag & (BRKINT | PARMRK))
termios           913 drivers/tty/serial/omap-serial.c 	if (termios->c_iflag & IGNPAR)
termios           915 drivers/tty/serial/omap-serial.c 	if (termios->c_iflag & IGNBRK) {
termios           921 drivers/tty/serial/omap-serial.c 		if (termios->c_iflag & IGNPAR)
termios           928 drivers/tty/serial/omap-serial.c 	if ((termios->c_cflag & CREAD) == 0)
termios           935 drivers/tty/serial/omap-serial.c 	if (UART_ENABLE_MS(&up->port, termios->c_cflag))
termios          1033 drivers/tty/serial/omap-serial.c 	serial_out(up, UART_XON1, termios->c_cc[VSTART]);
termios          1034 drivers/tty/serial/omap-serial.c 	serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]);
termios          1045 drivers/tty/serial/omap-serial.c 	if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
termios          1063 drivers/tty/serial/omap-serial.c 		if (termios->c_iflag & IXON)
termios          1071 drivers/tty/serial/omap-serial.c 		if (termios->c_iflag & IXOFF) {
termios          1082 drivers/tty/serial/omap-serial.c 		if (termios->c_iflag & IXANY)
termios           328 drivers/tty/serial/owl-uart.c 				 struct ktermios *termios,
termios           341 drivers/tty/serial/owl-uart.c 	switch (termios->c_cflag & CSIZE) {
termios           357 drivers/tty/serial/owl-uart.c 	if (termios->c_cflag & CSTOPB)
termios           363 drivers/tty/serial/owl-uart.c 	if (termios->c_cflag & PARENB) {
termios           364 drivers/tty/serial/owl-uart.c 		if (termios->c_cflag & CMSPAR) {
termios           365 drivers/tty/serial/owl-uart.c 			if (termios->c_cflag & PARODD)
termios           369 drivers/tty/serial/owl-uart.c 		} else if (termios->c_cflag & PARODD)
termios           376 drivers/tty/serial/owl-uart.c 	if (termios->c_cflag & CRTSCTS)
termios           383 drivers/tty/serial/owl-uart.c 	baud = uart_get_baud_rate(port, termios, old, 9600, 3200000);
termios           387 drivers/tty/serial/owl-uart.c 	if (tty_termios_baud_rate(termios))
termios           388 drivers/tty/serial/owl-uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           391 drivers/tty/serial/owl-uart.c 	if (termios->c_iflag & INPCK)
termios           394 drivers/tty/serial/owl-uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1369 drivers/tty/serial/pch_uart.c 				 struct ktermios *termios, struct ktermios *old)
termios          1377 drivers/tty/serial/pch_uart.c 	switch (termios->c_cflag & CSIZE) {
termios          1391 drivers/tty/serial/pch_uart.c 	if (termios->c_cflag & CSTOPB)
termios          1396 drivers/tty/serial/pch_uart.c 	if (termios->c_cflag & PARENB) {
termios          1397 drivers/tty/serial/pch_uart.c 		if (termios->c_cflag & PARODD)
termios          1406 drivers/tty/serial/pch_uart.c 	if ((termios->c_cflag & CRTSCTS) && (priv->fifo_size == 256))
termios          1411 drivers/tty/serial/pch_uart.c 	termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
termios          1413 drivers/tty/serial/pch_uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios          1418 drivers/tty/serial/pch_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1425 drivers/tty/serial/pch_uart.c 	if (tty_termios_baud_rate(termios))
termios          1426 drivers/tty/serial/pch_uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          1233 drivers/tty/serial/pmac_zilog.c static void __pmz_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1241 drivers/tty/serial/pmac_zilog.c 	memcpy(&uap->termios_cache, termios, sizeof(struct ktermios));
termios          1252 drivers/tty/serial/pmac_zilog.c 		baud = uart_get_baud_rate(port, termios, old, 1200, 4000000);
termios          1257 drivers/tty/serial/pmac_zilog.c 		pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
termios          1261 drivers/tty/serial/pmac_zilog.c 		baud = uart_get_baud_rate(port, termios, old, 1200, 230400);
termios          1262 drivers/tty/serial/pmac_zilog.c 		pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
termios          1264 drivers/tty/serial/pmac_zilog.c 		if (UART_ENABLE_MS(&uap->port, termios->c_cflag)) {
termios          1275 drivers/tty/serial/pmac_zilog.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1281 drivers/tty/serial/pmac_zilog.c static void pmz_set_termios(struct uart_port *port, struct ktermios *termios,
termios          1293 drivers/tty/serial/pmac_zilog.c 	__pmz_set_termios(port, termios, old);
termios           439 drivers/tty/serial/pnx8xxx_uart.c pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios,
termios           451 drivers/tty/serial/pnx8xxx_uart.c 	while ((termios->c_cflag & CSIZE) != CS7 &&
termios           452 drivers/tty/serial/pnx8xxx_uart.c 	       (termios->c_cflag & CSIZE) != CS8) {
termios           453 drivers/tty/serial/pnx8xxx_uart.c 		termios->c_cflag &= ~CSIZE;
termios           454 drivers/tty/serial/pnx8xxx_uart.c 		termios->c_cflag |= old_csize;
termios           458 drivers/tty/serial/pnx8xxx_uart.c 	if ((termios->c_cflag & CSIZE) == CS8)
termios           463 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_cflag & CSTOPB)
termios           465 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_cflag & PARENB) {
termios           467 drivers/tty/serial/pnx8xxx_uart.c 		if (!(termios->c_cflag & PARODD))
termios           474 drivers/tty/serial/pnx8xxx_uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
termios           482 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_iflag & INPCK)
termios           486 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           494 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_iflag & IGNPAR)
termios           498 drivers/tty/serial/pnx8xxx_uart.c 	if (termios->c_iflag & IGNBRK) {
termios           505 drivers/tty/serial/pnx8xxx_uart.c 		if (termios->c_iflag & IGNPAR)
termios           513 drivers/tty/serial/pnx8xxx_uart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           522 drivers/tty/serial/pnx8xxx_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           552 drivers/tty/serial/pnx8xxx_uart.c 	if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
termios           428 drivers/tty/serial/pxa.c serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios,
termios           437 drivers/tty/serial/pxa.c 	switch (termios->c_cflag & CSIZE) {
termios           453 drivers/tty/serial/pxa.c 	if (termios->c_cflag & CSTOPB)
termios           455 drivers/tty/serial/pxa.c 	if (termios->c_cflag & PARENB)
termios           457 drivers/tty/serial/pxa.c 	if (!(termios->c_cflag & PARODD))
termios           463 drivers/tty/serial/pxa.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
termios           488 drivers/tty/serial/pxa.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           491 drivers/tty/serial/pxa.c 	if (termios->c_iflag & INPCK)
termios           493 drivers/tty/serial/pxa.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           500 drivers/tty/serial/pxa.c 	if (termios->c_iflag & IGNPAR)
termios           502 drivers/tty/serial/pxa.c 	if (termios->c_iflag & IGNBRK) {
termios           508 drivers/tty/serial/pxa.c 		if (termios->c_iflag & IGNPAR)
termios           515 drivers/tty/serial/pxa.c 	if ((termios->c_cflag & CREAD) == 0)
termios           522 drivers/tty/serial/pxa.c 	if (UART_ENABLE_MS(&up->port, termios->c_cflag))
termios           527 drivers/tty/serial/pxa.c 	if (termios->c_cflag & CRTSCTS)
termios           950 drivers/tty/serial/qcom_geni_serial.c 				struct ktermios *termios, struct ktermios *old)
termios           967 drivers/tty/serial/qcom_geni_serial.c 	baud = uart_get_baud_rate(uport, termios, old, 300, 4000000);
termios           990 drivers/tty/serial/qcom_geni_serial.c 	if (termios->c_cflag & PARENB) {
termios           995 drivers/tty/serial/qcom_geni_serial.c 		if (termios->c_cflag & PARODD) {
termios           998 drivers/tty/serial/qcom_geni_serial.c 		} else if (termios->c_cflag & CMSPAR) {
termios          1013 drivers/tty/serial/qcom_geni_serial.c 	switch (termios->c_cflag & CSIZE) {
termios          1030 drivers/tty/serial/qcom_geni_serial.c 	if (termios->c_cflag & CSTOPB)
termios          1036 drivers/tty/serial/qcom_geni_serial.c 	if (termios->c_cflag & CRTSCTS)
termios          1042 drivers/tty/serial/qcom_geni_serial.c 		uart_update_timeout(uport, termios->c_cflag, baud);
termios           240 drivers/tty/serial/rda-uart.c 				 struct ktermios *termios,
termios           251 drivers/tty/serial/rda-uart.c 	baud = uart_get_baud_rate(port, termios, old, 9600, port->uartclk / 4);
termios           258 drivers/tty/serial/rda-uart.c 	switch (termios->c_cflag & CSIZE) {
termios           272 drivers/tty/serial/rda-uart.c 	if (termios->c_cflag & CSTOPB)
termios           278 drivers/tty/serial/rda-uart.c 	if (termios->c_cflag & PARENB) {
termios           282 drivers/tty/serial/rda-uart.c 		if (termios->c_cflag & CMSPAR) {
termios           283 drivers/tty/serial/rda-uart.c 			if (termios->c_cflag & PARODD)
termios           287 drivers/tty/serial/rda-uart.c 		} else if (termios->c_cflag & PARODD) {
termios           297 drivers/tty/serial/rda-uart.c 	if (termios->c_cflag & CRTSCTS) {
termios           320 drivers/tty/serial/rda-uart.c 	if (tty_termios_baud_rate(termios))
termios           321 drivers/tty/serial/rda-uart.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           324 drivers/tty/serial/rda-uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           419 drivers/tty/serial/sa1100.c sa1100_set_termios(struct uart_port *port, struct ktermios *termios,
termios           431 drivers/tty/serial/sa1100.c 	while ((termios->c_cflag & CSIZE) != CS7 &&
termios           432 drivers/tty/serial/sa1100.c 	       (termios->c_cflag & CSIZE) != CS8) {
termios           433 drivers/tty/serial/sa1100.c 		termios->c_cflag &= ~CSIZE;
termios           434 drivers/tty/serial/sa1100.c 		termios->c_cflag |= old_csize;
termios           438 drivers/tty/serial/sa1100.c 	if ((termios->c_cflag & CSIZE) == CS8)
termios           443 drivers/tty/serial/sa1100.c 	if (termios->c_cflag & CSTOPB)
termios           445 drivers/tty/serial/sa1100.c 	if (termios->c_cflag & PARENB) {
termios           447 drivers/tty/serial/sa1100.c 		if (!(termios->c_cflag & PARODD))
termios           454 drivers/tty/serial/sa1100.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 
termios           461 drivers/tty/serial/sa1100.c 	if (termios->c_iflag & INPCK)
termios           464 drivers/tty/serial/sa1100.c 	if (termios->c_iflag & (BRKINT | PARMRK))
termios           472 drivers/tty/serial/sa1100.c 	if (termios->c_iflag & IGNPAR)
termios           475 drivers/tty/serial/sa1100.c 	if (termios->c_iflag & IGNBRK) {
termios           482 drivers/tty/serial/sa1100.c 		if (termios->c_iflag & IGNPAR)
termios           492 drivers/tty/serial/sa1100.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           518 drivers/tty/serial/sa1100.c 	if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
termios          1268 drivers/tty/serial/samsung.c 				       struct ktermios *termios,
termios          1283 drivers/tty/serial/samsung.c 	termios->c_cflag &= ~(HUPCL | CMSPAR);
termios          1284 drivers/tty/serial/samsung.c 	termios->c_cflag |= CLOCAL;
termios          1290 drivers/tty/serial/samsung.c 	baud = uart_get_baud_rate(port, termios, old, 0, 3000000);
termios          1325 drivers/tty/serial/samsung.c 	switch (termios->c_cflag & CSIZE) {
termios          1348 drivers/tty/serial/samsung.c 	if (termios->c_cflag & CSTOPB)
termios          1351 drivers/tty/serial/samsung.c 	if (termios->c_cflag & PARENB) {
termios          1352 drivers/tty/serial/samsung.c 		if (termios->c_cflag & PARODD)
termios          1371 drivers/tty/serial/samsung.c 	if (termios->c_cflag & CRTSCTS) {
termios          1392 drivers/tty/serial/samsung.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          1398 drivers/tty/serial/samsung.c 	if (termios->c_iflag & INPCK)
termios          1405 drivers/tty/serial/samsung.c 	if (termios->c_iflag & IGNPAR)
termios          1407 drivers/tty/serial/samsung.c 	if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR)
termios          1413 drivers/tty/serial/samsung.c 	if ((termios->c_cflag & CREAD) == 0)
termios          1643 drivers/tty/serial/samsung.c 		struct ktermios *termios;
termios          1654 drivers/tty/serial/samsung.c 		termios = &tty->termios;
termios          1656 drivers/tty/serial/samsung.c 		if (termios == NULL) {
termios          1661 drivers/tty/serial/samsung.c 		s3c24xx_serial_set_termios(uport, termios, NULL);
termios           538 drivers/tty/serial/sb1250-duart.c static void sbd_set_termios(struct uart_port *uport, struct ktermios *termios,
termios           554 drivers/tty/serial/sb1250-duart.c 	switch (termios->c_cflag & CSIZE) {
termios           570 drivers/tty/serial/sb1250-duart.c 	if (termios->c_cflag & CSTOPB)
termios           574 drivers/tty/serial/sb1250-duart.c 	if (termios->c_cflag & PARENB)
termios           578 drivers/tty/serial/sb1250-duart.c 	if (termios->c_cflag & PARODD)
termios           583 drivers/tty/serial/sb1250-duart.c 	baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000);
termios           589 drivers/tty/serial/sb1250-duart.c 	uart_update_timeout(uport, termios->c_cflag, baud);
termios           592 drivers/tty/serial/sb1250-duart.c 	if (termios->c_iflag & INPCK)
termios           595 drivers/tty/serial/sb1250-duart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           599 drivers/tty/serial/sb1250-duart.c 	if (termios->c_iflag & IGNPAR)
termios           602 drivers/tty/serial/sb1250-duart.c 	if (termios->c_iflag & IGNBRK) {
termios           604 drivers/tty/serial/sb1250-duart.c 		if (termios->c_iflag & IGNPAR)
termios           608 drivers/tty/serial/sb1250-duart.c 	if (termios->c_cflag & CREAD)
termios           613 drivers/tty/serial/sb1250-duart.c 	if (termios->c_cflag & CRTSCTS)
termios           867 drivers/tty/serial/sc16is7xx.c 				  struct ktermios *termios,
termios           875 drivers/tty/serial/sc16is7xx.c 	termios->c_cflag &= ~CMSPAR;
termios           878 drivers/tty/serial/sc16is7xx.c 	switch (termios->c_cflag & CSIZE) {
termios           893 drivers/tty/serial/sc16is7xx.c 		termios->c_cflag &= ~CSIZE;
termios           894 drivers/tty/serial/sc16is7xx.c 		termios->c_cflag |= CS8;
termios           899 drivers/tty/serial/sc16is7xx.c 	if (termios->c_cflag & PARENB) {
termios           901 drivers/tty/serial/sc16is7xx.c 		if (!(termios->c_cflag & PARODD))
termios           906 drivers/tty/serial/sc16is7xx.c 	if (termios->c_cflag & CSTOPB)
termios           911 drivers/tty/serial/sc16is7xx.c 	if (termios->c_iflag & INPCK)
termios           914 drivers/tty/serial/sc16is7xx.c 	if (termios->c_iflag & (BRKINT | PARMRK))
termios           919 drivers/tty/serial/sc16is7xx.c 	if (termios->c_iflag & IGNBRK)
termios           921 drivers/tty/serial/sc16is7xx.c 	if (!(termios->c_cflag & CREAD))
termios           932 drivers/tty/serial/sc16is7xx.c 	sc16is7xx_port_write(port, SC16IS7XX_XON1_REG, termios->c_cc[VSTART]);
termios           933 drivers/tty/serial/sc16is7xx.c 	sc16is7xx_port_write(port, SC16IS7XX_XOFF1_REG, termios->c_cc[VSTOP]);
termios           934 drivers/tty/serial/sc16is7xx.c 	if (termios->c_cflag & CRTSCTS)
termios           937 drivers/tty/serial/sc16is7xx.c 	if (termios->c_iflag & IXON)
termios           939 drivers/tty/serial/sc16is7xx.c 	if (termios->c_iflag & IXOFF)
termios           951 drivers/tty/serial/sc16is7xx.c 	baud = uart_get_baud_rate(port, termios, old,
termios           959 drivers/tty/serial/sc16is7xx.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           643 drivers/tty/serial/sccnxp.c 			       struct ktermios *termios, struct ktermios *old)
termios           653 drivers/tty/serial/sccnxp.c 	termios->c_cflag &= ~CMSPAR;
termios           663 drivers/tty/serial/sccnxp.c 	switch (termios->c_cflag & CSIZE) {
termios           680 drivers/tty/serial/sccnxp.c 	if (termios->c_cflag & PARENB) {
termios           681 drivers/tty/serial/sccnxp.c 		if (termios->c_cflag & PARODD)
termios           687 drivers/tty/serial/sccnxp.c 	mr2 = (termios->c_cflag & CSTOPB) ? MR2_STOP2 : MR2_STOP1;
termios           696 drivers/tty/serial/sccnxp.c 	if (termios->c_iflag & INPCK)
termios           698 drivers/tty/serial/sccnxp.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           703 drivers/tty/serial/sccnxp.c 	if (termios->c_iflag & IGNBRK)
termios           705 drivers/tty/serial/sccnxp.c 	if (termios->c_iflag & IGNPAR)
termios           707 drivers/tty/serial/sccnxp.c 	if (!(termios->c_cflag & CREAD))
termios           711 drivers/tty/serial/sccnxp.c 	baud = uart_get_baud_rate(port, termios, old, 50,
termios           717 drivers/tty/serial/sccnxp.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           720 drivers/tty/serial/sccnxp.c 	if (tty_termios_baud_rate(termios))
termios           721 drivers/tty/serial/sccnxp.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          1257 drivers/tty/serial/serial-tegra.c 		struct ktermios *termios, struct ktermios *oldtermios)
termios          1287 drivers/tty/serial/serial-tegra.c 	termios->c_cflag &= ~CMSPAR;
termios          1289 drivers/tty/serial/serial-tegra.c 	if ((termios->c_cflag & PARENB) == PARENB) {
termios          1291 drivers/tty/serial/serial-tegra.c 		if (termios->c_cflag & PARODD) {
termios          1303 drivers/tty/serial/serial-tegra.c 	switch (termios->c_cflag & CSIZE) {
termios          1323 drivers/tty/serial/serial-tegra.c 	if (termios->c_cflag & CSTOPB) {
termios          1336 drivers/tty/serial/serial-tegra.c 	baud = uart_get_baud_rate(u, termios, oldtermios,
termios          1345 drivers/tty/serial/serial-tegra.c 	if (tty_termios_baud_rate(termios))
termios          1346 drivers/tty/serial/serial-tegra.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios          1350 drivers/tty/serial/serial-tegra.c 	if (termios->c_cflag & CRTSCTS)	{
termios          1364 drivers/tty/serial/serial-tegra.c 	uart_update_timeout(u, termios->c_cflag, baud);
termios          1375 drivers/tty/serial/serial-tegra.c 	if ((termios->c_cflag & CREAD) == 0)
termios          1377 drivers/tty/serial/serial-tegra.c 	if (termios->c_iflag & IGNBRK)
termios           222 drivers/tty/serial/serial_core.c 			tty->termios.c_cflag = uport->cons->cflag;
termios           292 drivers/tty/serial/serial_core.c 			uport->cons->cflag = tty->termios.c_cflag;
termios           392 drivers/tty/serial/serial_core.c uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
termios           420 drivers/tty/serial/serial_core.c 		baud = tty_termios_baud_rate(termios);
termios           444 drivers/tty/serial/serial_core.c 		termios->c_cflag &= ~CBAUD;
termios           448 drivers/tty/serial/serial_core.c 				tty_termios_encode_baud_rate(termios,
termios           460 drivers/tty/serial/serial_core.c 				tty_termios_encode_baud_rate(termios,
termios           463 drivers/tty/serial/serial_core.c 				tty_termios_encode_baud_rate(termios,
termios           504 drivers/tty/serial/serial_core.c 	struct ktermios *termios;
termios           514 drivers/tty/serial/serial_core.c 	termios = &tty->termios;
termios           515 drivers/tty/serial/serial_core.c 	uport->ops->set_termios(uport, termios, old_termios);
termios           521 drivers/tty/serial/serial_core.c 	if (termios->c_cflag & CRTSCTS)
termios           526 drivers/tty/serial/serial_core.c 	if (termios->c_cflag & CLOCAL)
termios          1472 drivers/tty/serial/serial_core.c 		uport->ops->set_ldisc(uport, &tty->termios);
termios          1481 drivers/tty/serial/serial_core.c 	unsigned int cflag = tty->termios.c_cflag;
termios          1497 drivers/tty/serial/serial_core.c 		   tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] ||
termios          1498 drivers/tty/serial/serial_core.c 		   tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP];
termios          1508 drivers/tty/serial/serial_core.c 	    tty->termios.c_ospeed == old_termios->c_ospeed &&
termios          1509 drivers/tty/serial/serial_core.c 	    tty->termios.c_ispeed == old_termios->c_ispeed &&
termios          1510 drivers/tty/serial/serial_core.c 	    ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 &&
termios          1517 drivers/tty/serial/serial_core.c 	cflag = tty->termios.c_cflag;
termios          2060 drivers/tty/serial/serial_core.c 	struct ktermios termios;
termios          2074 drivers/tty/serial/serial_core.c 	memset(&termios, 0, sizeof(struct ktermios));
termios          2076 drivers/tty/serial/serial_core.c 	termios.c_cflag |= CREAD | HUPCL | CLOCAL;
termios          2077 drivers/tty/serial/serial_core.c 	tty_termios_encode_baud_rate(&termios, baud, baud);
termios          2080 drivers/tty/serial/serial_core.c 		termios.c_cflag |= CS7;
termios          2082 drivers/tty/serial/serial_core.c 		termios.c_cflag |= CS8;
termios          2086 drivers/tty/serial/serial_core.c 		termios.c_cflag |= PARODD;
termios          2089 drivers/tty/serial/serial_core.c 		termios.c_cflag |= PARENB;
termios          2094 drivers/tty/serial/serial_core.c 		termios.c_cflag |= CRTSCTS;
termios          2102 drivers/tty/serial/serial_core.c 	port->ops->set_termios(port, &termios, &dummy);
termios          2108 drivers/tty/serial/serial_core.c 		co->cflag = termios.c_cflag;
termios          2218 drivers/tty/serial/serial_core.c 	struct ktermios termios;
termios          2240 drivers/tty/serial/serial_core.c 		memset(&termios, 0, sizeof(struct ktermios));
termios          2241 drivers/tty/serial/serial_core.c 		termios.c_cflag = uport->cons->cflag;
termios          2246 drivers/tty/serial/serial_core.c 		if (port->tty && termios.c_cflag == 0)
termios          2247 drivers/tty/serial/serial_core.c 			termios = port->tty->termios;
termios          2251 drivers/tty/serial/serial_core.c 		uport->ops->set_termios(uport, &termios, NULL);
termios           625 drivers/tty/serial/serial_txx9.c serial_txx9_set_termios(struct uart_port *port, struct ktermios *termios,
termios           636 drivers/tty/serial/serial_txx9.c 	termios->c_cflag &= ~(HUPCL | CMSPAR);
termios           637 drivers/tty/serial/serial_txx9.c 	termios->c_cflag |= CLOCAL;
termios           642 drivers/tty/serial/serial_txx9.c 	switch (termios->c_cflag & CSIZE) {
termios           655 drivers/tty/serial/serial_txx9.c 	if (termios->c_cflag & CSTOPB)
termios           660 drivers/tty/serial/serial_txx9.c 	if (termios->c_cflag & PARENB)
termios           662 drivers/tty/serial/serial_txx9.c 	if (!(termios->c_cflag & PARODD))
termios           668 drivers/tty/serial/serial_txx9.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16/2);
termios           684 drivers/tty/serial/serial_txx9.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           688 drivers/tty/serial/serial_txx9.c 	if (termios->c_iflag & INPCK)
termios           690 drivers/tty/serial/serial_txx9.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           697 drivers/tty/serial/serial_txx9.c 	if (termios->c_iflag & IGNPAR)
termios           699 drivers/tty/serial/serial_txx9.c 	if (termios->c_iflag & IGNBRK) {
termios           705 drivers/tty/serial/serial_txx9.c 		if (termios->c_iflag & IGNPAR)
termios           712 drivers/tty/serial/serial_txx9.c 	if ((termios->c_cflag & CREAD) == 0)
termios           716 drivers/tty/serial/serial_txx9.c 	if ((termios->c_cflag & CRTSCTS) &&
termios          2372 drivers/tty/serial/sh-sci.c static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
termios          2385 drivers/tty/serial/sh-sci.c 	if ((termios->c_cflag & CSIZE) == CS7)
termios          2387 drivers/tty/serial/sh-sci.c 	if (termios->c_cflag & PARENB)
termios          2389 drivers/tty/serial/sh-sci.c 	if (termios->c_cflag & PARODD)
termios          2391 drivers/tty/serial/sh-sci.c 	if (termios->c_cflag & CSTOPB)
termios          2403 drivers/tty/serial/sh-sci.c 		baud = uart_get_baud_rate(port, termios, old, 0, 115200);
termios          2410 drivers/tty/serial/sh-sci.c 	baud = uart_get_baud_rate(port, termios, old, 0, max_freq / min_sr(s));
termios          2497 drivers/tty/serial/sh-sci.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios          2500 drivers/tty/serial/sh-sci.c 	switch (termios->c_cflag & CSIZE) {
termios          2515 drivers/tty/serial/sh-sci.c 	if (termios->c_cflag & CSTOPB)
termios          2517 drivers/tty/serial/sh-sci.c 	if (termios->c_cflag & PARENB)
termios          2571 drivers/tty/serial/sh-sci.c 	sci_init_pins(port, termios->c_cflag);
termios          2580 drivers/tty/serial/sh-sci.c 		    (termios->c_cflag & CRTSCTS)) {
termios          2632 drivers/tty/serial/sh-sci.c 	if ((termios->c_cflag & CREAD) != 0)
termios          2639 drivers/tty/serial/sh-sci.c 	if (UART_ENABLE_MS(port, termios->c_cflag))
termios           641 drivers/tty/serial/sifive.c 				      struct ktermios *termios,
termios           650 drivers/tty/serial/sifive.c 	if ((termios->c_cflag & CSIZE) != CS8)
termios           652 drivers/tty/serial/sifive.c 	if (termios->c_iflag & (INPCK | PARMRK))
termios           654 drivers/tty/serial/sifive.c 	if (termios->c_iflag & BRKINT)
termios           658 drivers/tty/serial/sifive.c 	nstop = (termios->c_cflag & CSTOPB) ? 2 : 1;
termios           662 drivers/tty/serial/sifive.c 	rate = uart_get_baud_rate(port, termios, old, 0, ssp->clkin_rate / 16);
termios           668 drivers/tty/serial/sifive.c 	uart_update_timeout(port, termios->c_cflag, rate);
termios           675 drivers/tty/serial/sifive.c 	if ((termios->c_cflag & CREAD) == 0)
termios           694 drivers/tty/serial/sirfsoc_uart.c 				       struct ktermios *termios,
termios           713 drivers/tty/serial/sirfsoc_uart.c 	switch (termios->c_cflag & CSIZE) {
termios           732 drivers/tty/serial/sirfsoc_uart.c 	if (termios->c_cflag & CSTOPB) {
termios           742 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_iflag & INPCK)
termios           746 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_iflag & INPCK)
termios           749 drivers/tty/serial/sirfsoc_uart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           752 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_iflag & IGNPAR)
termios           756 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_cflag & PARENB) {
termios           757 drivers/tty/serial/sirfsoc_uart.c 			if (termios->c_cflag & CMSPAR) {
termios           758 drivers/tty/serial/sirfsoc_uart.c 				if (termios->c_cflag & PARODD)
termios           763 drivers/tty/serial/sirfsoc_uart.c 				if (termios->c_cflag & PARODD)
termios           770 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_iflag & IGNPAR)
termios           773 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_cflag & PARENB)
termios           777 drivers/tty/serial/sirfsoc_uart.c 	if (termios->c_iflag & IGNBRK) {
termios           780 drivers/tty/serial/sirfsoc_uart.c 		if (termios->c_iflag & IGNPAR)
termios           784 drivers/tty/serial/sirfsoc_uart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           787 drivers/tty/serial/sirfsoc_uart.c 	if (UART_ENABLE_MS(port, termios->c_cflag)) {
termios           794 drivers/tty/serial/sirfsoc_uart.c 	baud_rate = uart_get_baud_rate(port, termios, old, 0, 4000000);
termios           819 drivers/tty/serial/sirfsoc_uart.c 	if (tty_termios_baud_rate(termios))
termios           820 drivers/tty/serial/sirfsoc_uart.c 		tty_termios_encode_baud_rate(termios, set_baud, set_baud);
termios           879 drivers/tty/serial/sirfsoc_uart.c 	uart_update_timeout(port, termios->c_cflag, set_baud);
termios           779 drivers/tty/serial/sprd_serial.c 			     struct ktermios *termios,
termios           787 drivers/tty/serial/sprd_serial.c 	baud = uart_get_baud_rate(port, termios, old, 0, SPRD_BAUD_IO_LIMIT);
termios           792 drivers/tty/serial/sprd_serial.c 	switch (termios->c_cflag & CSIZE) {
termios           810 drivers/tty/serial/sprd_serial.c 	if (termios->c_cflag & CSTOPB)
termios           817 drivers/tty/serial/sprd_serial.c 	termios->c_cflag &= ~CMSPAR;	/* no support mark/space */
termios           818 drivers/tty/serial/sprd_serial.c 	if (termios->c_cflag & PARENB) {
termios           820 drivers/tty/serial/sprd_serial.c 		if (termios->c_cflag & PARODD)
termios           829 drivers/tty/serial/sprd_serial.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           832 drivers/tty/serial/sprd_serial.c 	if (termios->c_iflag & INPCK)
termios           834 drivers/tty/serial/sprd_serial.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           839 drivers/tty/serial/sprd_serial.c 	if (termios->c_iflag & IGNPAR)
termios           841 drivers/tty/serial/sprd_serial.c 	if (termios->c_iflag & IGNBRK) {
termios           847 drivers/tty/serial/sprd_serial.c 		if (termios->c_iflag & IGNPAR)
termios           854 drivers/tty/serial/sprd_serial.c 	if (termios->c_cflag & CRTSCTS) {
termios           873 drivers/tty/serial/sprd_serial.c 	if (tty_termios_baud_rate(termios))
termios           874 drivers/tty/serial/sprd_serial.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           507 drivers/tty/serial/st-asc.c static void asc_set_termios(struct uart_port *port, struct ktermios *termios,
termios           519 drivers/tty/serial/st-asc.c 	termios->c_cflag &= ~(CMSPAR |
termios           524 drivers/tty/serial/st-asc.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
termios           525 drivers/tty/serial/st-asc.c 	cflag = termios->c_cflag;
termios           605 drivers/tty/serial/st-asc.c 	if (termios->c_iflag & INPCK)
termios           607 drivers/tty/serial/st-asc.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           614 drivers/tty/serial/st-asc.c 	if (termios->c_iflag & IGNPAR)
termios           616 drivers/tty/serial/st-asc.c 	if (termios->c_iflag & IGNBRK) {
termios           622 drivers/tty/serial/st-asc.c 		if (termios->c_iflag & IGNPAR)
termios           629 drivers/tty/serial/st-asc.c 	if (!(termios->c_cflag & CREAD))
termios           651 drivers/tty/serial/stm32-usart.c static unsigned int stm32_get_databits(struct ktermios *termios)
termios           655 drivers/tty/serial/stm32-usart.c 	tcflag_t cflag = termios->c_cflag;
termios           681 drivers/tty/serial/stm32-usart.c static void stm32_set_termios(struct uart_port *port, struct ktermios *termios,
termios           690 drivers/tty/serial/stm32-usart.c 	tcflag_t cflag = termios->c_cflag;
termios           697 drivers/tty/serial/stm32-usart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 8);
termios           720 drivers/tty/serial/stm32-usart.c 	bits = stm32_get_databits(termios);
termios           796 drivers/tty/serial/stm32-usart.c 	if (termios->c_iflag & INPCK)
termios           798 drivers/tty/serial/stm32-usart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           803 drivers/tty/serial/stm32-usart.c 	if (termios->c_iflag & IGNPAR)
termios           805 drivers/tty/serial/stm32-usart.c 	if (termios->c_iflag & IGNBRK) {
termios           811 drivers/tty/serial/stm32-usart.c 		if (termios->c_iflag & IGNPAR)
termios           816 drivers/tty/serial/stm32-usart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           329 drivers/tty/serial/sunhv.c static void sunhv_set_termios(struct uart_port *port, struct ktermios *termios,
termios           332 drivers/tty/serial/sunhv.c 	unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
termios           339 drivers/tty/serial/sunhv.c 	iflag = termios->c_iflag;
termios           340 drivers/tty/serial/sunhv.c 	cflag = termios->c_cflag;
termios           782 drivers/tty/serial/sunsab.c static void sunsab_set_termios(struct uart_port *port, struct ktermios *termios,
termios           788 drivers/tty/serial/sunsab.c 	unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
termios           792 drivers/tty/serial/sunsab.c 	sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
termios           908 drivers/tty/serial/sunsu.c sunsu_set_termios(struct uart_port *port, struct ktermios *termios,
termios           916 drivers/tty/serial/sunsu.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 
termios           919 drivers/tty/serial/sunsu.c 	sunsu_change_speed(port, termios->c_cflag, termios->c_iflag, quot);
termios          1345 drivers/tty/serial/sunsu.c 	struct ktermios termios;
termios          1363 drivers/tty/serial/sunsu.c 	memset(&termios, 0, sizeof(struct ktermios));
termios          1364 drivers/tty/serial/sunsu.c 	termios.c_cflag = co->cflag;
termios          1366 drivers/tty/serial/sunsu.c 	port->ops->set_termios(port, &termios, &dummy);
termios           944 drivers/tty/serial/sunzilog.c sunzilog_set_termios(struct uart_port *port, struct ktermios *termios,
termios           952 drivers/tty/serial/sunzilog.c 	baud = uart_get_baud_rate(port, termios, old, 1200, 76800);
termios           958 drivers/tty/serial/sunzilog.c 	sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
termios           960 drivers/tty/serial/sunzilog.c 	if (UART_ENABLE_MS(&up->port, termios->c_cflag))
termios           965 drivers/tty/serial/sunzilog.c 	up->cflag = termios->c_cflag;
termios           969 drivers/tty/serial/sunzilog.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           280 drivers/tty/serial/timbuart.c 	struct ktermios *termios,
termios           287 drivers/tty/serial/timbuart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios           298 drivers/tty/serial/timbuart.c 		tty_termios_copy_hw(termios, old);
termios           299 drivers/tty/serial/timbuart.c 	tty_termios_encode_baud_rate(termios, baud, baud);
termios           303 drivers/tty/serial/timbuart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           305 drivers/tty/serial/uartlite.c static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
termios           316 drivers/tty/serial/uartlite.c 	if (termios->c_iflag & INPCK)
termios           321 drivers/tty/serial/uartlite.c 	if (termios->c_iflag & IGNPAR)
termios           326 drivers/tty/serial/uartlite.c 	if ((termios->c_cflag & CREAD) == 0)
termios           332 drivers/tty/serial/uartlite.c 	baud = uart_get_baud_rate(port, termios, old, 0, 460800);
termios           333 drivers/tty/serial/uartlite.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           852 drivers/tty/serial/ucc_uart.c 				struct ktermios *termios, struct ktermios *old)
termios           874 drivers/tty/serial/ucc_uart.c 	switch (termios->c_cflag & CSIZE) {
termios           898 drivers/tty/serial/ucc_uart.c 	if (termios->c_cflag & CSTOPB) {
termios           904 drivers/tty/serial/ucc_uart.c 	if (termios->c_cflag & PARENB) {
termios           909 drivers/tty/serial/ucc_uart.c 		if (!(termios->c_cflag & PARODD)) {
termios           925 drivers/tty/serial/ucc_uart.c 	if (termios->c_iflag & INPCK)
termios           927 drivers/tty/serial/ucc_uart.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           934 drivers/tty/serial/ucc_uart.c 	if (termios->c_iflag & IGNPAR)
termios           936 drivers/tty/serial/ucc_uart.c 	if (termios->c_iflag & IGNBRK) {
termios           942 drivers/tty/serial/ucc_uart.c 		if (termios->c_iflag & IGNPAR)
termios           948 drivers/tty/serial/ucc_uart.c 	if ((termios->c_cflag & CREAD) == 0)
termios           951 drivers/tty/serial/ucc_uart.c 	baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
termios           957 drivers/tty/serial/ucc_uart.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           363 drivers/tty/serial/vt8500_serial.c 			       struct ktermios *termios,
termios           375 drivers/tty/serial/vt8500_serial.c 	baud = uart_get_baud_rate(port, termios, old, 900, 921600);
termios           377 drivers/tty/serial/vt8500_serial.c 	if (tty_termios_baud_rate(termios))
termios           378 drivers/tty/serial/vt8500_serial.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           383 drivers/tty/serial/vt8500_serial.c 	if (termios->c_cflag & PARENB) {
termios           385 drivers/tty/serial/vt8500_serial.c 		termios->c_cflag &= ~CMSPAR;
termios           386 drivers/tty/serial/vt8500_serial.c 		if (termios->c_cflag & PARODD)
termios           392 drivers/tty/serial/vt8500_serial.c 	switch (termios->c_cflag & CSIZE) {
termios           398 drivers/tty/serial/vt8500_serial.c 		termios->c_cflag &= ~CSIZE;
termios           399 drivers/tty/serial/vt8500_serial.c 		termios->c_cflag |= CS8;
termios           405 drivers/tty/serial/vt8500_serial.c 	if (termios->c_cflag & CSTOPB)
termios           417 drivers/tty/serial/vt8500_serial.c 	if (termios->c_iflag & IGNPAR)
termios           420 drivers/tty/serial/vt8500_serial.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           434 drivers/tty/serial/vt8500_serial.c 	if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag))
termios           685 drivers/tty/serial/xilinx_uartps.c 				struct ktermios *termios, struct ktermios *old)
termios           719 drivers/tty/serial/xilinx_uartps.c 	baud = uart_get_baud_rate(port, termios, old, minbaud, maxbaud);
termios           721 drivers/tty/serial/xilinx_uartps.c 	if (tty_termios_baud_rate(termios))
termios           722 drivers/tty/serial/xilinx_uartps.c 		tty_termios_encode_baud_rate(termios, baud, baud);
termios           725 drivers/tty/serial/xilinx_uartps.c 	uart_update_timeout(port, termios->c_cflag, baud);
termios           751 drivers/tty/serial/xilinx_uartps.c 	if (termios->c_iflag & INPCK)
termios           755 drivers/tty/serial/xilinx_uartps.c 	if (termios->c_iflag & IGNPAR)
termios           760 drivers/tty/serial/xilinx_uartps.c 	if ((termios->c_cflag & CREAD) == 0)
termios           768 drivers/tty/serial/xilinx_uartps.c 	switch (termios->c_cflag & CSIZE) {
termios           778 drivers/tty/serial/xilinx_uartps.c 		termios->c_cflag &= ~CSIZE;
termios           779 drivers/tty/serial/xilinx_uartps.c 		termios->c_cflag |= CS8;
termios           784 drivers/tty/serial/xilinx_uartps.c 	if (termios->c_cflag & CSTOPB)
termios           789 drivers/tty/serial/xilinx_uartps.c 	if (termios->c_cflag & PARENB) {
termios           791 drivers/tty/serial/xilinx_uartps.c 		if (termios->c_cflag & CMSPAR) {
termios           792 drivers/tty/serial/xilinx_uartps.c 			if (termios->c_cflag & PARODD)
termios           797 drivers/tty/serial/xilinx_uartps.c 			if (termios->c_cflag & PARODD)
termios           852 drivers/tty/serial/zs.c static void zs_set_termios(struct uart_port *uport, struct ktermios *termios,
termios           868 drivers/tty/serial/zs.c 	switch (termios->c_cflag & CSIZE) {
termios           890 drivers/tty/serial/zs.c 	if (termios->c_cflag & CSTOPB)
termios           894 drivers/tty/serial/zs.c 	if (termios->c_cflag & PARENB)
termios           896 drivers/tty/serial/zs.c 	if (!(termios->c_cflag & PARODD))
termios           915 drivers/tty/serial/zs.c 	baud = uart_get_baud_rate(uport, termios, old_termios, 0,
termios           922 drivers/tty/serial/zs.c 	uart_update_timeout(uport, termios->c_cflag, baud);
termios           925 drivers/tty/serial/zs.c 	if (termios->c_iflag & INPCK)
termios           927 drivers/tty/serial/zs.c 	if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
termios           931 drivers/tty/serial/zs.c 	if (termios->c_iflag & IGNPAR)
termios           933 drivers/tty/serial/zs.c 	if (termios->c_iflag & IGNBRK) {
termios           935 drivers/tty/serial/zs.c 		if (termios->c_iflag & IGNPAR)
termios           939 drivers/tty/serial/zs.c 	if (termios->c_cflag & CREAD)
termios           945 drivers/tty/serial/zs.c 		if (!(termios->c_cflag & CLOCAL)) {
termios           949 drivers/tty/serial/zs.c 		if (termios->c_cflag & CRTSCTS) {
termios          1846 drivers/tty/synclink.c 	if (!info->port.tty || info->port.tty->termios.c_cflag & HUPCL) {
termios          1889 drivers/tty/synclink.c 	if (info->netcount || info->port.tty->termios.c_cflag & CREAD)
termios          1909 drivers/tty/synclink.c 	cflag = info->port.tty->termios.c_cflag;
termios          2456 drivers/tty/synclink_gt.c  	if (!info->port.tty || info->port.tty->termios.c_cflag & HUPCL) {
termios          2497 drivers/tty/synclink_gt.c 	    (info->port.tty && info->port.tty->termios.c_cflag & CREAD))
termios          2515 drivers/tty/synclink_gt.c 	cflag = info->port.tty->termios.c_cflag;
termios          2683 drivers/tty/synclinkmp.c  	if (!info->port.tty || info->port.tty->termios.c_cflag & HUPCL) {
termios          2724 drivers/tty/synclinkmp.c 	if (info->netcount || (info->port.tty && info->port.tty->termios.c_cflag & CREAD) )
termios          2744 drivers/tty/synclinkmp.c 	cflag = info->port.tty->termios.c_cflag;
termios            61 drivers/tty/tty_baudrate.c speed_t tty_termios_baud_rate(struct ktermios *termios)
termios            65 drivers/tty/tty_baudrate.c 	cbaud = termios->c_cflag & CBAUD;
termios            70 drivers/tty/tty_baudrate.c 		return termios->c_ospeed;
termios            76 drivers/tty/tty_baudrate.c 			termios->c_cflag &= ~CBAUDEX;
termios            96 drivers/tty/tty_baudrate.c speed_t tty_termios_input_baud_rate(struct ktermios *termios)
termios            99 drivers/tty/tty_baudrate.c 	unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD;
termios           102 drivers/tty/tty_baudrate.c 		return tty_termios_baud_rate(termios);
termios           106 drivers/tty/tty_baudrate.c 		return termios->c_ispeed;
termios           112 drivers/tty/tty_baudrate.c 			termios->c_cflag &= ~(CBAUDEX << IBSHIFT);
termios           118 drivers/tty/tty_baudrate.c 	return tty_termios_baud_rate(termios);
termios           145 drivers/tty/tty_baudrate.c void tty_termios_encode_baud_rate(struct ktermios *termios,
termios           156 drivers/tty/tty_baudrate.c 	termios->c_ispeed = ibaud;
termios           157 drivers/tty/tty_baudrate.c 	termios->c_ospeed = obaud;
termios           160 drivers/tty/tty_baudrate.c 	if ((termios->c_cflag >> IBSHIFT) & CBAUD)
termios           168 drivers/tty/tty_baudrate.c 	if ((termios->c_cflag & CBAUD) == BOTHER) {
termios           173 drivers/tty/tty_baudrate.c 	if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER)
termios           176 drivers/tty/tty_baudrate.c 	termios->c_cflag &= ~CBAUD;
termios           178 drivers/tty/tty_baudrate.c 	termios->c_cflag &= ~(CBAUD << IBSHIFT);
termios           191 drivers/tty/tty_baudrate.c 			termios->c_cflag |= baud_bits[i];
termios           203 drivers/tty/tty_baudrate.c 				termios->c_cflag |= (baud_bits[i] << IBSHIFT);
termios           215 drivers/tty/tty_baudrate.c 		termios->c_cflag |= BOTHER;
termios           219 drivers/tty/tty_baudrate.c 		termios->c_cflag |= (BOTHER << IBSHIFT);
termios           239 drivers/tty/tty_baudrate.c 	tty_termios_encode_baud_rate(&tty->termios, ibaud, obaud);
termios          1186 drivers/tty/tty_io.c 		tty->termios = tty->driver->init_termios;
termios          1189 drivers/tty/tty_io.c 		tp = tty->driver->termios[idx];
termios          1191 drivers/tty/tty_io.c 			tty->termios = *tp;
termios          1192 drivers/tty/tty_io.c 			tty->termios.c_line  = tty->driver->init_termios.c_line;
termios          1194 drivers/tty/tty_io.c 			tty->termios = tty->driver->init_termios;
termios          1197 drivers/tty/tty_io.c 	tty->termios.c_ispeed = tty_termios_input_baud_rate(&tty->termios);
termios          1198 drivers/tty/tty_io.c 	tty->termios.c_ospeed = tty_termios_baud_rate(&tty->termios);
termios          1283 drivers/tty/tty_io.c 			retval = tty_ldisc_reinit(tty, tty->termios.c_line);
termios          1402 drivers/tty/tty_io.c 	tp = tty->driver->termios[idx];
termios          1407 drivers/tty/tty_io.c 		tty->driver->termios[idx] = tp;
termios          1409 drivers/tty/tty_io.c 	*tp = tty->termios;
termios          3149 drivers/tty/tty_io.c 		tp = driver->termios[index];
termios          3151 drivers/tty/tty_io.c 			driver->termios[index] = NULL;
termios          3228 drivers/tty/tty_io.c 		driver->termios = kcalloc(lines, sizeof(*driver->termios),
termios          3230 drivers/tty/tty_io.c 		if (!driver->ttys || !driver->termios) {
termios          3256 drivers/tty/tty_io.c 	kfree(driver->termios);
termios          3271 drivers/tty/tty_io.c 			tp = driver->termios[i];
termios          3273 drivers/tty/tty_io.c 				driver->termios[i] = NULL;
termios          3285 drivers/tty/tty_io.c 	kfree(driver->termios);
termios           245 drivers/tty/tty_ioctl.c 	struct ktermios *termios = &tty->termios;
termios           251 drivers/tty/tty_ioctl.c 	NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag);
termios           252 drivers/tty/tty_ioctl.c 	NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag);
termios           253 drivers/tty/tty_ioctl.c 	NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag);
termios           254 drivers/tty/tty_ioctl.c 	NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag);
termios           255 drivers/tty/tty_ioctl.c 	termios->c_line = locked->c_line ? old->c_line : termios->c_line;
termios           257 drivers/tty/tty_ioctl.c 		termios->c_cc[i] = locked->c_cc[i] ?
termios           258 drivers/tty/tty_ioctl.c 			old->c_cc[i] : termios->c_cc[i];
termios           329 drivers/tty/tty_ioctl.c 	old_termios = tty->termios;
termios           330 drivers/tty/tty_ioctl.c 	tty->termios = *new_termios;
termios           336 drivers/tty/tty_ioctl.c 		tty_termios_copy_hw(&tty->termios, &old_termios);
termios           372 drivers/tty/tty_ioctl.c 	tmp_termios = tty->termios;
termios           382 drivers/tty/tty_ioctl.c 						(struct termios __user *)arg))
termios           391 drivers/tty/tty_ioctl.c 					(struct termios __user *)arg))
termios           426 drivers/tty/tty_ioctl.c 	*kterm = tty->termios;
termios           520 drivers/tty/tty_ioctl.c 	tmp.sg_ispeed = tty->termios.c_ispeed;
termios           521 drivers/tty/tty_ioctl.c 	tmp.sg_ospeed = tty->termios.c_ospeed;
termios           522 drivers/tty/tty_ioctl.c 	tmp.sg_erase = tty->termios.c_cc[VERASE];
termios           523 drivers/tty/tty_ioctl.c 	tmp.sg_kill = tty->termios.c_cc[VKILL];
termios           530 drivers/tty/tty_ioctl.c static void set_sgflags(struct ktermios *termios, int flags)
termios           532 drivers/tty/tty_ioctl.c 	termios->c_iflag = ICRNL | IXON;
termios           533 drivers/tty/tty_ioctl.c 	termios->c_oflag = 0;
termios           534 drivers/tty/tty_ioctl.c 	termios->c_lflag = ISIG | ICANON;
termios           536 drivers/tty/tty_ioctl.c 		termios->c_iflag = 0;
termios           537 drivers/tty/tty_ioctl.c 		termios->c_lflag &= ~ICANON;
termios           540 drivers/tty/tty_ioctl.c 		termios->c_lflag |= ECHO | ECHOE | ECHOK |
termios           544 drivers/tty/tty_ioctl.c 		termios->c_oflag |= OPOST | ONLCR;
termios           547 drivers/tty/tty_ioctl.c 		termios->c_iflag = 0;
termios           548 drivers/tty/tty_ioctl.c 		termios->c_lflag &= ~(ISIG | ICANON);
termios           550 drivers/tty/tty_ioctl.c 	if (!(termios->c_lflag & ICANON)) {
termios           551 drivers/tty/tty_ioctl.c 		termios->c_cc[VMIN] = 1;
termios           552 drivers/tty/tty_ioctl.c 		termios->c_cc[VTIME] = 0;
termios           571 drivers/tty/tty_ioctl.c 	struct ktermios termios;
termios           581 drivers/tty/tty_ioctl.c 	termios = tty->termios;
termios           582 drivers/tty/tty_ioctl.c 	termios.c_cc[VERASE] = tmp.sg_erase;
termios           583 drivers/tty/tty_ioctl.c 	termios.c_cc[VKILL] = tmp.sg_kill;
termios           584 drivers/tty/tty_ioctl.c 	set_sgflags(&termios, tmp.sg_flags);
termios           587 drivers/tty/tty_ioctl.c 	tty_termios_encode_baud_rate(&termios, termios.c_ispeed,
termios           588 drivers/tty/tty_ioctl.c 						termios.c_ospeed);
termios           591 drivers/tty/tty_ioctl.c 	tty_set_termios(tty, &termios);
termios           602 drivers/tty/tty_ioctl.c 	tmp.t_intrc = tty->termios.c_cc[VINTR];
termios           603 drivers/tty/tty_ioctl.c 	tmp.t_quitc = tty->termios.c_cc[VQUIT];
termios           604 drivers/tty/tty_ioctl.c 	tmp.t_startc = tty->termios.c_cc[VSTART];
termios           605 drivers/tty/tty_ioctl.c 	tmp.t_stopc = tty->termios.c_cc[VSTOP];
termios           606 drivers/tty/tty_ioctl.c 	tmp.t_eofc = tty->termios.c_cc[VEOF];
termios           607 drivers/tty/tty_ioctl.c 	tmp.t_brkc = tty->termios.c_cc[VEOL2];	/* what is brkc anyway? */
termios           619 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VINTR] = tmp.t_intrc;
termios           620 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VQUIT] = tmp.t_quitc;
termios           621 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VSTART] = tmp.t_startc;
termios           622 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VSTOP] = tmp.t_stopc;
termios           623 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VEOF] = tmp.t_eofc;
termios           624 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VEOL2] = tmp.t_brkc;	/* what is brkc anyway? */
termios           636 drivers/tty/tty_ioctl.c 	tmp.t_suspc = tty->termios.c_cc[VSUSP];
termios           638 drivers/tty/tty_ioctl.c 	tmp.t_dsuspc = tty->termios.c_cc[VSUSP];
termios           639 drivers/tty/tty_ioctl.c 	tmp.t_rprntc = tty->termios.c_cc[VREPRINT];
termios           641 drivers/tty/tty_ioctl.c 	tmp.t_flushc = tty->termios.c_cc[VEOL2];
termios           642 drivers/tty/tty_ioctl.c 	tmp.t_werasc = tty->termios.c_cc[VWERASE];
termios           643 drivers/tty/tty_ioctl.c 	tmp.t_lnextc = tty->termios.c_cc[VLNEXT];
termios           656 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VSUSP] = tmp.t_suspc;
termios           658 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VEOL2] = tmp.t_dsuspc;
termios           659 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VREPRINT] = tmp.t_rprntc;
termios           661 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VEOL2] = tmp.t_flushc;
termios           662 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VWERASE] = tmp.t_werasc;
termios           663 drivers/tty/tty_ioctl.c 	tty->termios.c_cc[VLNEXT] = tmp.t_lnextc;
termios           685 drivers/tty/tty_ioctl.c 	old = tty->termios;
termios           686 drivers/tty/tty_ioctl.c 	tty->termios.c_cflag &= ~CLOCAL;
termios           687 drivers/tty/tty_ioctl.c 	tty->termios.c_cflag |= bit;
termios           753 drivers/tty/tty_ioctl.c 		if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
termios           759 drivers/tty/tty_ioctl.c 		if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
termios           785 drivers/tty/tty_ioctl.c 		if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
termios           793 drivers/tty/tty_ioctl.c 					       (struct termios __user *) arg))
termios           802 drivers/tty/tty_ioctl.c 		if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
termios           810 drivers/tty/tty_ioctl.c 					       (struct termios __user *) arg))
termios           445 drivers/tty/tty_ldisc.c 	tty->termios.c_line = disc;
termios           658 drivers/tty/tty_ldisc.c 	tty->termios = tty->driver->init_termios;
termios           659 drivers/tty/tty_ldisc.c 	tty->termios.c_ispeed = tty_termios_input_baud_rate(&tty->termios);
termios           660 drivers/tty/tty_ldisc.c 	tty->termios.c_ospeed = tty_termios_baud_rate(&tty->termios);
termios           757 drivers/tty/tty_ldisc.c 			if (tty_ldisc_reinit(tty, tty->termios.c_line) < 0 &&
termios          3282 drivers/tty/vt/vt.c 		tty->termios.c_iflag |= IUTF8;
termios          3284 drivers/tty/vt/vt.c 		tty->termios.c_iflag &= ~IUTF8;
termios           618 drivers/usb/class/cdc-acm.c 		tty->termios.c_lflag &= ~ECHO;
termios          1047 drivers/usb/class/cdc-acm.c 	struct ktermios *termios = &tty->termios;
termios          1052 drivers/usb/class/cdc-acm.c 	newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0;
termios          1053 drivers/usb/class/cdc-acm.c 	newline.bParityType = termios->c_cflag & PARENB ?
termios          1054 drivers/usb/class/cdc-acm.c 				(termios->c_cflag & PARODD ? 1 : 2) +
termios          1055 drivers/usb/class/cdc-acm.c 				(termios->c_cflag & CMSPAR ? 2 : 0) : 0;
termios          1056 drivers/usb/class/cdc-acm.c 	switch (termios->c_cflag & CSIZE) {
termios          1072 drivers/usb/class/cdc-acm.c 	acm->clocal = ((termios->c_cflag & CLOCAL) != 0);
termios           198 drivers/usb/serial/ark3116.c 	struct ktermios *termios = &tty->termios;
termios           199 drivers/usb/serial/ark3116.c 	unsigned int cflag = termios->c_cflag;
termios           308 drivers/usb/serial/ark3116.c 	if (tty_termios_baud_rate(termios))
termios           309 drivers/usb/serial/ark3116.c 		tty_termios_encode_baud_rate(termios, bps, bps);
termios           291 drivers/usb/serial/belkin_sa.c 	struct ktermios *termios = &tty->termios;
termios           293 drivers/usb/serial/belkin_sa.c 	iflag = termios->c_iflag;
termios           294 drivers/usb/serial/belkin_sa.c 	cflag = termios->c_cflag;
termios           296 drivers/usb/serial/belkin_sa.c 	termios->c_cflag &= ~CMSPAR;
termios           417 drivers/usb/serial/ch341.c 	if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
termios           456 drivers/usb/serial/ch341.c 			tty_termios_copy_hw(&tty->termios, old_termios);
termios           160 drivers/usb/serial/console.c 			tty->termios.c_cflag = cflag;
termios           161 drivers/usb/serial/console.c 			tty_termios_encode_baud_rate(&tty->termios, baud, baud);
termios           896 drivers/usb/serial/cp210x.c 			&tty->termios.c_cflag, &baud);
termios          1132 drivers/usb/serial/cp210x.c 	baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed);
termios          1158 drivers/usb/serial/cp210x.c 	cflag = tty->termios.c_cflag;
termios          1161 drivers/usb/serial/cp210x.c 	if (tty->termios.c_ospeed != old_termios->c_ospeed)
termios           873 drivers/usb/serial/cypress_m8.c 	tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS);
termios           875 drivers/usb/serial/cypress_m8.c 	cflag = tty->termios.c_cflag;
termios           938 drivers/usb/serial/cypress_m8.c 		tty->termios.c_iflag /* input modes - */
termios           948 drivers/usb/serial/cypress_m8.c 		tty->termios.c_oflag /* output modes */
termios           951 drivers/usb/serial/cypress_m8.c 		tty->termios.c_lflag /* line discipline modes */
termios           679 drivers/usb/serial/digi_acceleport.c 	unsigned int iflag = tty->termios.c_iflag;
termios           680 drivers/usb/serial/digi_acceleport.c 	unsigned int cflag = tty->termios.c_cflag;
termios           741 drivers/usb/serial/digi_acceleport.c 	tty->termios.c_cflag &= ~CMSPAR;
termios          1118 drivers/usb/serial/digi_acceleport.c 		not_termios.c_cflag = ~tty->termios.c_cflag;
termios          1119 drivers/usb/serial/digi_acceleport.c 		not_termios.c_iflag = ~tty->termios.c_iflag;
termios            80 drivers/usb/serial/empeg.c 	struct ktermios *termios = &tty->termios;
termios            91 drivers/usb/serial/empeg.c 	termios->c_iflag
termios           101 drivers/usb/serial/empeg.c 	termios->c_oflag
termios           104 drivers/usb/serial/empeg.c 	termios->c_lflag
termios           111 drivers/usb/serial/empeg.c 	termios->c_cflag
termios           116 drivers/usb/serial/empeg.c 	termios->c_cflag
termios           540 drivers/usb/serial/f81232.c 	if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
termios          2646 drivers/usb/serial/ftdi_sio.c 	struct ktermios *termios = &tty->termios;
termios          2647 drivers/usb/serial/ftdi_sio.c 	unsigned int cflag = termios->c_cflag;
termios          2653 drivers/usb/serial/ftdi_sio.c 	if (priv->force_baud && ((termios->c_cflag & CBAUD) != B0)) {
termios          2662 drivers/usb/serial/ftdi_sio.c 		termios->c_cflag |= CRTSCTS;
termios          2682 drivers/usb/serial/ftdi_sio.c 		termios->c_cflag &= ~CSIZE;
termios          2684 drivers/usb/serial/ftdi_sio.c 			termios->c_cflag |= old_termios->c_cflag & CSIZE;
termios          2686 drivers/usb/serial/ftdi_sio.c 			termios->c_cflag |= CS8;
termios          2689 drivers/usb/serial/ftdi_sio.c 	cflag = termios->c_cflag;
termios          2694 drivers/usb/serial/ftdi_sio.c 	if (old_termios->c_cflag == termios->c_cflag
termios          2695 drivers/usb/serial/ftdi_sio.c 	    && old_termios->c_ispeed == termios->c_ispeed
termios          2696 drivers/usb/serial/ftdi_sio.c 	    && old_termios->c_ospeed == termios->c_ospeed)
termios          2704 drivers/usb/serial/ftdi_sio.c 	    (termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)))
termios          1924 drivers/usb/serial/io_edgeport.c 				edge_port, &tty->termios);
termios          2468 drivers/usb/serial/io_edgeport.c 	cflag = tty->termios.c_cflag;
termios          1867 drivers/usb/serial/io_ti.c 		edge_set_termios(tty, port, &tty->termios);
termios          2240 drivers/usb/serial/io_ti.c 		tty->termios = *old_termios;
termios          2244 drivers/usb/serial/io_ti.c 	cflag = tty->termios.c_cflag;
termios          2329 drivers/usb/serial/io_ti.c 	tty->termios.c_cflag &= ~CMSPAR;
termios           444 drivers/usb/serial/ir-usb.c 	tty_termios_copy_hw(&tty->termios, old_termios);
termios           882 drivers/usb/serial/iuu_phoenix.c 	unsigned int cflag = tty->termios.c_cflag;
termios           891 drivers/usb/serial/iuu_phoenix.c 	baud = tty->termios.c_ospeed;
termios           922 drivers/usb/serial/iuu_phoenix.c 		tty_termios_copy_hw(&tty->termios, old_termios);
termios           927 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_cflag &= ~(supported_mask|CSIZE);
termios           928 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_cflag |= newval | csize;
termios           945 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
termios           946 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_ispeed = 9600;
termios           947 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_ospeed = 9600;
termios           948 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_lflag = 0;
termios           949 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_oflag = 0;
termios           950 drivers/usb/serial/iuu_phoenix.c 	tty->termios.c_iflag = 0;
termios           962 drivers/usb/serial/iuu_phoenix.c 	baud = tty->termios.c_ospeed;
termios           648 drivers/usb/serial/keyspan.c 	cflag = tty->termios.c_cflag;
termios           669 drivers/usb/serial/keyspan.c 	tty->termios.c_cflag &= ~CMSPAR;
termios          1564 drivers/usb/serial/keyspan.c 		cflag = tty->termios.c_cflag;
termios           349 drivers/usb/serial/keyspan_pda.c 	tty_termios_copy_hw(&tty->termios, old_termios);
termios           404 drivers/usb/serial/kl5kusb105.c 	unsigned int iflag = tty->termios.c_iflag;
termios           406 drivers/usb/serial/kl5kusb105.c 	unsigned int cflag = tty->termios.c_cflag;
termios           497 drivers/usb/serial/kl5kusb105.c 		tty->termios.c_cflag &= ~(PARENB|PARODD|CSTOPB);
termios           507 drivers/usb/serial/kl5kusb105.c 		tty->termios.c_cflag &= ~CRTSCTS;
termios           159 drivers/usb/serial/kobil_sct.c 	tty->termios.c_lflag = 0;
termios           160 drivers/usb/serial/kobil_sct.c 	tty->termios.c_iflag &= ~(ISIG | ICANON | ECHO | IEXTEN | XCASE);
termios           161 drivers/usb/serial/kobil_sct.c 	tty->termios.c_iflag |= IGNBRK | IGNPAR | IXOFF;
termios           163 drivers/usb/serial/kobil_sct.c 	tty->termios.c_oflag &= ~ONLCR;
termios           484 drivers/usb/serial/kobil_sct.c 	int c_cflag = tty->termios.c_cflag;
termios           491 drivers/usb/serial/kobil_sct.c 		tty_termios_copy_hw(&tty->termios, old);
termios           516 drivers/usb/serial/kobil_sct.c 	tty->termios.c_cflag &= ~CMSPAR;
termios           602 drivers/usb/serial/mct_u232.c 	struct ktermios *termios = &tty->termios;
termios           603 drivers/usb/serial/mct_u232.c 	unsigned int cflag = termios->c_cflag;
termios           666 drivers/usb/serial/mct_u232.c 	termios->c_cflag &= ~CMSPAR;
termios          1552 drivers/usb/serial/mos7720.c 	cflag = tty->termios.c_cflag;
termios          1718 drivers/usb/serial/mos7840.c 	cflag = tty->termios.c_cflag;
termios           855 drivers/usb/serial/mxuport.c 	    !tty_termios_hw_change(&tty->termios, old_termios) &&
termios           856 drivers/usb/serial/mxuport.c 	    tty->termios.c_iflag == old_termios->c_iflag) {
termios           409 drivers/usb/serial/oti6858.c 	cflag = tty->termios.c_cflag;
termios           609 drivers/usb/serial/pl2303.c 	if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
termios           616 drivers/usb/serial/pl2303.c 			tty->termios = *old_termios;
termios           269 drivers/usb/serial/quatech2.c 	struct ktermios *termios = &tty->termios;
termios           271 drivers/usb/serial/quatech2.c 	unsigned int cflag = termios->c_cflag;
termios           400 drivers/usb/serial/quatech2.c 		qt2_set_termios(tty, port, &tty->termios);
termios           293 drivers/usb/serial/spcp8x5.c 	unsigned int cflag = tty->termios.c_cflag;
termios           301 drivers/usb/serial/spcp8x5.c 	if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
termios           221 drivers/usb/serial/ssu100.c 	struct ktermios *termios = &tty->termios;
termios           223 drivers/usb/serial/ssu100.c 	unsigned int cflag = termios->c_cflag;
termios           329 drivers/usb/serial/ssu100.c 		ssu100_set_termios(tty, port, &tty->termios);
termios           686 drivers/usb/serial/ti_usb_3410_5052.c 		ti_set_termios(tty, port, &tty->termios);
termios           725 drivers/usb/serial/ti_usb_3410_5052.c 		ti_set_termios(tty, port, &tty->termios);
termios           939 drivers/usb/serial/ti_usb_3410_5052.c 	tty->termios.c_cflag &= ~CMSPAR;
termios           312 drivers/usb/serial/upd78f0730.c 	if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
termios           332 drivers/usb/serial/upd78f0730.c 		tty->termios.c_cflag &= ~CSIZE;
termios           333 drivers/usb/serial/upd78f0730.c 		tty->termios.c_cflag |= CS8;
termios           352 drivers/usb/serial/upd78f0730.c 			tty->termios.c_cflag &= ~CMSPAR;
termios           369 drivers/usb/serial/upd78f0730.c 		tty->termios.c_cflag &= ~CRTSCTS;
termios           373 drivers/usb/serial/upd78f0730.c 		tty->termios.c_iflag &= ~(IXOFF | IXON);
termios           196 drivers/usb/serial/usb-serial.c 	init_termios = (driver->termios[idx] == NULL);
termios           447 drivers/usb/serial/usb-serial.c 		tty_termios_copy_hw(&tty->termios, old);
termios           638 drivers/usb/serial/whiteheat.c 	unsigned int cflag = tty->termios.c_cflag;
termios            15 include/asm-generic/termios-base.h static inline int user_termio_to_kernel_termios(struct ktermios *termios,
termios            22 include/asm-generic/termios-base.h 	termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp;
termios            26 include/asm-generic/termios-base.h 	termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp;
termios            30 include/asm-generic/termios-base.h 	termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp;
termios            34 include/asm-generic/termios-base.h 	termios->c_lflag = (0xffff0000 & termios->c_lflag) | tmp;
termios            36 include/asm-generic/termios-base.h 	if (get_user(termios->c_line, &termio->c_line) < 0)
termios            39 include/asm-generic/termios-base.h 	if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0)
termios            52 include/asm-generic/termios-base.h 						struct ktermios *termios)
termios            54 include/asm-generic/termios-base.h 	if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
termios            55 include/asm-generic/termios-base.h 	    put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
termios            56 include/asm-generic/termios-base.h 	    put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
termios            57 include/asm-generic/termios-base.h 	    put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
termios            58 include/asm-generic/termios-base.h 	    put_user(termios->c_line,  &termio->c_line) < 0 ||
termios            59 include/asm-generic/termios-base.h 	    copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0)
termios            66 include/asm-generic/termios-base.h #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios))
termios            70 include/asm-generic/termios-base.h #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))
termios            73 include/asm-generic/termios-base.h #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
termios            74 include/asm-generic/termios-base.h #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
termios            20 include/asm-generic/termios.h static inline int user_termio_to_kernel_termios(struct ktermios *termios,
termios            27 include/asm-generic/termios.h 	termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp;
termios            31 include/asm-generic/termios.h 	termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp;
termios            35 include/asm-generic/termios.h 	termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp;
termios            39 include/asm-generic/termios.h 	termios->c_lflag = (0xffff0000 & termios->c_lflag) | tmp;
termios            41 include/asm-generic/termios.h 	if (get_user(termios->c_line, &termio->c_line) < 0)
termios            44 include/asm-generic/termios.h 	if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0)
termios            57 include/asm-generic/termios.h 						struct ktermios *termios)
termios            59 include/asm-generic/termios.h 	if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
termios            60 include/asm-generic/termios.h 	    put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
termios            61 include/asm-generic/termios.h 	    put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
termios            62 include/asm-generic/termios.h 	    put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
termios            63 include/asm-generic/termios.h 	    put_user(termios->c_line,  &termio->c_line) < 0 ||
termios            64 include/asm-generic/termios.h 	    copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0)
termios            84 include/asm-generic/termios.h 						   struct termios __user *u)
termios            86 include/asm-generic/termios.h 	return copy_from_user(k, u, sizeof(struct termios));
termios            89 include/asm-generic/termios.h static inline int kernel_termios_to_user_termios_1(struct termios __user *u,
termios            92 include/asm-generic/termios.h 	return copy_to_user(u, k, sizeof(struct termios));
termios            96 include/asm-generic/termios.h 						 struct termios __user *u)
termios            98 include/asm-generic/termios.h 	return copy_from_user(k, u, sizeof(struct termios));
termios           101 include/asm-generic/termios.h static inline int kernel_termios_to_user_termios(struct termios __user *u,
termios           104 include/asm-generic/termios.h 	return copy_to_user(u, k, sizeof(struct termios));
termios           155 include/linux/serial_8250.h 		struct ktermios *termios, struct ktermios *old);
termios           157 include/linux/serial_8250.h 				    struct ktermios *termios);
termios           327 include/linux/serial_core.h unsigned int uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
termios           106 include/linux/tty.h #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
termios           107 include/linux/tty.h #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
termios           108 include/linux/tty.h #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
termios           109 include/linux/tty.h #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
termios           110 include/linux/tty.h #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
termios           111 include/linux/tty.h #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
termios           112 include/linux/tty.h #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
termios           113 include/linux/tty.h #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
termios           114 include/linux/tty.h #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART])
termios           115 include/linux/tty.h #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP])
termios           116 include/linux/tty.h #define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP])
termios           117 include/linux/tty.h #define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL])
termios           118 include/linux/tty.h #define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT])
termios           119 include/linux/tty.h #define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD])
termios           120 include/linux/tty.h #define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE])
termios           121 include/linux/tty.h #define LNEXT_CHAR(tty)	((tty)->termios.c_cc[VLNEXT])
termios           122 include/linux/tty.h #define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2])
termios           124 include/linux/tty.h #define _I_FLAG(tty, f)	((tty)->termios.c_iflag & (f))
termios           125 include/linux/tty.h #define _O_FLAG(tty, f)	((tty)->termios.c_oflag & (f))
termios           126 include/linux/tty.h #define _C_FLAG(tty, f)	((tty)->termios.c_cflag & (f))
termios           127 include/linux/tty.h #define _L_FLAG(tty, f)	((tty)->termios.c_lflag & (f))
termios           305 include/linux/tty.h 	struct ktermios termios, termios_locked;
termios           517 include/linux/tty.h extern speed_t tty_termios_baud_rate(struct ktermios *termios);
termios           518 include/linux/tty.h extern speed_t tty_termios_input_baud_rate(struct ktermios *termios);
termios           519 include/linux/tty.h extern void tty_termios_encode_baud_rate(struct ktermios *termios,
termios           536 include/linux/tty.h 	return tty_termios_baud_rate(&tty->termios);
termios           325 include/linux/tty_driver.h 	struct ktermios **termios;
termios           507 init/do_mounts.c 	struct termios termios;
termios           523 init/do_mounts.c 		ksys_ioctl(fd, TCGETS, (long)&termios);
termios           524 init/do_mounts.c 		termios.c_lflag &= ~ICANON;
termios           525 init/do_mounts.c 		ksys_ioctl(fd, TCSETSF, (long)&termios);
termios           527 init/do_mounts.c 		termios.c_lflag |= ICANON;
termios           528 init/do_mounts.c 		ksys_ioctl(fd, TCSETSF, (long)&termios);
termios           858 net/bluetooth/rfcomm/tty.c 	struct ktermios *new = &tty->termios;
termios           441 net/nfc/nci/uart.c 	new_termios = nu->tty->termios;
termios           393 samples/uhid/uhid-example.c 	struct termios state;
termios           864 tools/firewire/nosy-dump.c static struct termios saved_attributes;
termios           875 tools/firewire/nosy-dump.c 	struct termios tattr;
termios           944 tools/perf/builtin-kvm.c 	struct termios save;
termios           491 tools/perf/builtin-top.c 		struct termios save;
termios           667 tools/perf/builtin-top.c 	struct termios save;
termios            30 tools/perf/util/term.c void set_term_quiet_input(struct termios *old)
termios            32 tools/perf/util/term.c 	struct termios tc;
termios             5 tools/perf/util/term.h struct termios;
termios             9 tools/perf/util/term.h void set_term_quiet_input(struct termios *old);
termios            49 tools/power/acpi/os_specific/service_layers/osunixxf.c struct termios original_term_attributes;
termios            86 tools/power/acpi/os_specific/service_layers/osunixxf.c 	struct termios local_term_attributes;
termios           106 tools/power/acpi/os_specific/service_layers/osunixxf.c 	       sizeof(struct termios));