arch/alpha/include/uapi/asm/ioctls.h
21
#define TCGETS _IOR('t', 19, struct termios)
arch/alpha/include/uapi/asm/ioctls.h
22
#define TCSETS _IOW('t', 20, struct termios)
arch/alpha/include/uapi/asm/ioctls.h
23
#define TCSETSW _IOW('t', 21, struct termios)
arch/alpha/include/uapi/asm/ioctls.h
24
#define TCSETSF _IOW('t', 22, struct termios)
arch/alpha/kernel/termios.c
13
termios->c_iflag = (0xffff0000 & termios->c_iflag) | v.c_iflag;
arch/alpha/kernel/termios.c
14
termios->c_oflag = (0xffff0000 & termios->c_oflag) | v.c_oflag;
arch/alpha/kernel/termios.c
15
termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag;
arch/alpha/kernel/termios.c
16
termios->c_lflag = (0xffff0000 & termios->c_lflag) | v.c_lflag;
arch/alpha/kernel/termios.c
17
termios->c_line = (0xffff0000 & termios->c_lflag) | v.c_line;
arch/alpha/kernel/termios.c
20
termios->c_cc[VINTR] = v.c_cc[_VINTR];
arch/alpha/kernel/termios.c
21
termios->c_cc[VQUIT] = v.c_cc[_VQUIT];
arch/alpha/kernel/termios.c
22
termios->c_cc[VERASE] = v.c_cc[_VERASE];
arch/alpha/kernel/termios.c
23
termios->c_cc[VKILL] = v.c_cc[_VKILL];
arch/alpha/kernel/termios.c
24
termios->c_cc[VEOL2] = v.c_cc[_VEOL2];
arch/alpha/kernel/termios.c
25
termios->c_cc[VSWTC] = v.c_cc[_VSWTC];
arch/alpha/kernel/termios.c
26
termios->c_cc[canon ? VEOF : VMIN] = v.c_cc[_VEOF];
arch/alpha/kernel/termios.c
27
termios->c_cc[canon ? VEOL : VTIME] = v.c_cc[_VEOL];
arch/alpha/kernel/termios.c
33
struct ktermios *termios)
arch/alpha/kernel/termios.c
39
v.c_iflag = termios->c_iflag;
arch/alpha/kernel/termios.c
4
int user_termio_to_kernel_termios(struct ktermios *termios,
arch/alpha/kernel/termios.c
40
v.c_oflag = termios->c_oflag;
arch/alpha/kernel/termios.c
41
v.c_cflag = termios->c_cflag;
arch/alpha/kernel/termios.c
42
v.c_lflag = termios->c_lflag;
arch/alpha/kernel/termios.c
43
v.c_line = termios->c_line;
arch/alpha/kernel/termios.c
46
v.c_cc[_VINTR] = termios->c_cc[VINTR];
arch/alpha/kernel/termios.c
47
v.c_cc[_VQUIT] = termios->c_cc[VQUIT];
arch/alpha/kernel/termios.c
48
v.c_cc[_VERASE] = termios->c_cc[VERASE];
arch/alpha/kernel/termios.c
49
v.c_cc[_VKILL] = termios->c_cc[VKILL];
arch/alpha/kernel/termios.c
50
v.c_cc[_VEOF] = termios->c_cc[canon ? VEOF : VMIN];
arch/alpha/kernel/termios.c
51
v.c_cc[_VEOL] = termios->c_cc[canon ? VEOL : VTIME];
arch/alpha/kernel/termios.c
52
v.c_cc[_VEOL2] = termios->c_cc[VEOL2];
arch/alpha/kernel/termios.c
53
v.c_cc[_VSWTC] = termios->c_cc[VSWTC];
arch/parisc/include/uapi/asm/ioctls.h
10
#define TCSETS _IOW('T', 17, struct termios) /* TCSETATTR */
arch/parisc/include/uapi/asm/ioctls.h
11
#define TCSETSW _IOW('T', 18, struct termios) /* TCSETATTRD */
arch/parisc/include/uapi/asm/ioctls.h
12
#define TCSETSF _IOW('T', 19, struct termios) /* TCSETATTRF */
arch/parisc/include/uapi/asm/ioctls.h
9
#define TCGETS _IOR('T', 16, struct termios) /* TCGETATTR */
arch/powerpc/include/uapi/asm/ioctls.h
21
#define TCGETS _IOR('t', 19, struct termios)
arch/powerpc/include/uapi/asm/ioctls.h
22
#define TCSETS _IOW('t', 20, struct termios)
arch/powerpc/include/uapi/asm/ioctls.h
23
#define TCSETSW _IOW('t', 21, struct termios)
arch/powerpc/include/uapi/asm/ioctls.h
24
#define TCSETSF _IOW('t', 22, struct termios)
arch/sparc/include/uapi/asm/ioctls.h
15
#define TCGETS _IOR('T', 8, struct termios)
arch/sparc/include/uapi/asm/ioctls.h
16
#define TCSETS _IOW('T', 9, struct termios)
arch/sparc/include/uapi/asm/ioctls.h
17
#define TCSETSW _IOW('T', 10, struct termios)
arch/sparc/include/uapi/asm/ioctls.h
18
#define TCSETSF _IOW('T', 11, struct termios)
arch/sparc/include/uapi/asm/termbits.h
24
#define SIZEOF_USER_TERMIOS sizeof (struct termios) - (2*sizeof (cc_t))
arch/sparc/kernel/termios.c
16
struct ktermios *termios)
arch/sparc/kernel/termios.c
20
v.c_iflag = termios->c_iflag;
arch/sparc/kernel/termios.c
21
v.c_oflag = termios->c_oflag;
arch/sparc/kernel/termios.c
22
v.c_cflag = termios->c_cflag;
arch/sparc/kernel/termios.c
23
v.c_lflag = termios->c_lflag;
arch/sparc/kernel/termios.c
24
v.c_line = termios->c_line;
arch/sparc/kernel/termios.c
25
memcpy(v.c_cc, termios->c_cc, NCC);
arch/sparc/kernel/termios.c
27
v.c_cc[_VMIN] = termios->c_cc[VMIN];
arch/sparc/kernel/termios.c
28
v.c_cc[_VTIME] = termios->c_cc[VTIME];
arch/sparc/kernel/termios.c
78
struct termios __user *u)
arch/sparc/kernel/termios.c
97
int kernel_termios_to_user_termios_1(struct termios __user *u,
arch/um/drivers/chan_user.c
89
struct termios save, new;
arch/um/drivers/fd.c
18
struct termios tt;
arch/um/drivers/port_user.c
20
struct termios tt;
arch/um/drivers/pty.c
22
struct termios tt;
arch/um/drivers/tty.c
16
struct termios tt;
arch/um/drivers/xterm.c
25
struct termios tt;
arch/um/os-Linux/util.c
29
struct termios tt;
drivers/accessibility/speakup/spk_ttyio.c
139
*out_termios = tty->termios;
drivers/bluetooth/hci_ldisc.c
327
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
331
(tty->termios.c_cflag & CRTSCTS) ? "failed" : "success");
drivers/bluetooth/hci_ldisc.c
361
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
365
!(tty->termios.c_cflag & CRTSCTS) ? "failed" : "success");
drivers/bluetooth/hci_ldisc.c
381
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
389
tty->termios.c_ispeed, tty->termios.c_ospeed);
drivers/bluetooth/hci_ldisc.c
514
hu->oper_speed = tty->termios.c_ospeed;
drivers/ipack/devices/ipoctal.c
506
cflag = tty->termios.c_cflag;
drivers/ipack/devices/ipoctal.c
523
tty->termios.c_cflag = (cflag & ~CSIZE) | CS8;
drivers/ipack/devices/ipoctal.c
537
tty->termios.c_cflag &= ~CMSPAR;
drivers/ipack/devices/ipoctal.c
569
tty_termios_encode_baud_rate(&tty->termios, baud, baud);
drivers/ipack/devices/ipoctal.c
613
tty_termios_encode_baud_rate(&tty->termios, 38400, 38400);
drivers/mmc/core/sdio_uart.c
246
struct ktermios *termios,
drivers/mmc/core/sdio_uart.c
252
cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
drivers/mmc/core/sdio_uart.c
254
if (termios->c_cflag & CSTOPB)
drivers/mmc/core/sdio_uart.c
256
if (termios->c_cflag & PARENB)
drivers/mmc/core/sdio_uart.c
258
if (!(termios->c_cflag & PARODD))
drivers/mmc/core/sdio_uart.c
262
baud = tty_termios_baud_rate(termios);
drivers/mmc/core/sdio_uart.c
271
termios->c_cflag &= ~CBAUD;
drivers/mmc/core/sdio_uart.c
273
termios->c_cflag |= old->c_cflag & CBAUD;
drivers/mmc/core/sdio_uart.c
276
termios->c_cflag |= B9600;
drivers/mmc/core/sdio_uart.c
286
if (termios->c_iflag & INPCK)
drivers/mmc/core/sdio_uart.c
288
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/mmc/core/sdio_uart.c
295
if (termios->c_iflag & IGNPAR)
drivers/mmc/core/sdio_uart.c
297
if (termios->c_iflag & IGNBRK) {
drivers/mmc/core/sdio_uart.c
303
if (termios->c_iflag & IGNPAR)
drivers/mmc/core/sdio_uart.c
310
if ((termios->c_cflag & CREAD) == 0)
drivers/mmc/core/sdio_uart.c
317
if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL))
drivers/mmc/core/sdio_uart.c
625
sdio_uart_change_speed(port, &tty->termios, NULL);
drivers/mmc/core/sdio_uart.c
860
unsigned int cflag = tty->termios.c_cflag;
drivers/mmc/core/sdio_uart.c
865
sdio_uart_change_speed(port, &tty->termios, old_termios);
drivers/net/usb/hso.c
1042
static void hso_init_termios(struct ktermios *termios)
drivers/net/usb/hso.c
1047
termios->c_iflag &=
drivers/net/usb/hso.c
1058
termios->c_oflag &= ~OPOST;
drivers/net/usb/hso.c
1060
termios->c_lflag &=
drivers/net/usb/hso.c
1069
termios->c_cflag &=
drivers/net/usb/hso.c
1075
termios->c_cflag |= CS8; /* character size 8 bits */
drivers/net/usb/hso.c
1078
tty_termios_encode_baud_rate(termios, 115200, 115200);
drivers/net/usb/hso.c
1095
tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */
drivers/net/usb/hso.c
1097
tty->termios.c_cflag &=
drivers/net/usb/hso.c
1103
tty->termios.c_cflag |= CS8; /* character size 8 bits */
drivers/net/usb/hso.c
1384
(unsigned int)tty->termios.c_cflag,
drivers/net/usb/hso.c
1392
tty->termios = *old;
drivers/net/wwan/wwan_core.c
1006
if (copy_from_user(&port->at_data.termios, (void __user *)arg,
drivers/net/wwan/wwan_core.c
983
if (copy_to_user((void __user *)arg, &port->at_data.termios,
drivers/net/wwan/wwan_core.c
984
sizeof(struct termios)))
drivers/net/wwan/wwan_core.c
99
struct ktermios termios;
drivers/net/wwan/wwan_core.c
991
if (copy_from_user(&port->at_data.termios, (void __user *)arg,
drivers/net/wwan/wwan_core.c
992
sizeof(struct termios)))
drivers/net/wwan/wwan_core.c
998
if (copy_to_user((void __user *)arg, &port->at_data.termios,
drivers/staging/greybus/uart.c
486
struct ktermios *termios = &tty->termios;
drivers/staging/greybus/uart.c
490
newline.format = termios->c_cflag & CSTOPB ?
drivers/staging/greybus/uart.c
492
newline.parity = termios->c_cflag & PARENB ?
drivers/staging/greybus/uart.c
493
(termios->c_cflag & PARODD ? 1 : 2) +
drivers/staging/greybus/uart.c
494
(termios->c_cflag & CMSPAR ? 2 : 0) : 0;
drivers/staging/greybus/uart.c
496
newline.data_bits = tty_get_char_size(termios->c_cflag);
drivers/staging/greybus/uart.c
499
gb_tty->clocal = ((termios->c_cflag & CLOCAL) != 0);
drivers/staging/greybus/uart.c
568
if (tty->termios.c_cflag & CRTSCTS) {
drivers/staging/greybus/uart.c
587
if (tty->termios.c_cflag & CRTSCTS) {
drivers/tty/amiserial.c
1174
unsigned int cflag = tty->termios.c_cflag;
drivers/tty/amiserial.c
575
cflag = tty->termios.c_cflag;
drivers/tty/amiserial.c
610
tty->termios.c_cflag &= ~CBAUD;
drivers/tty/amiserial.c
611
tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD);
drivers/tty/hvc/hvsi_lib.c
404
if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL))
drivers/tty/moxa.c
1238
moxa_set_tty_param(tty, &tty->termios);
drivers/tty/moxa.c
1252
ch->cflag = tty->termios.c_cflag;
drivers/tty/moxa.c
1516
register struct ktermios *ts = &tty->termios;
drivers/tty/mxser.c
573
cflag = tty->termios.c_cflag;
drivers/tty/mxser.c
584
cval = UART_LCR_WLEN(tty_get_char_size(tty->termios.c_cflag));
drivers/tty/n_gsm.c
3580
gsm->old_c_iflag = tty->termios.c_iflag;
drivers/tty/n_gsm.c
3581
tty->termios.c_iflag &= (IXON | IXOFF);
drivers/tty/n_gsm.c
3596
gsm->tty->termios.c_iflag = gsm->old_c_iflag;
drivers/tty/n_gsm.c
4544
tty_termios_copy_hw(&tty->termios, old);
drivers/tty/n_tty.c
1778
if (!old || (old->c_lflag ^ tty->termios.c_lflag) & (ICANON | EXTPROC)) {
drivers/tty/pty.c
269
tty->termios.c_cflag &= ~(CSIZE | PARENB);
drivers/tty/pty.c
270
tty->termios.c_cflag |= (CS8 | CREAD);
drivers/tty/pty.c
392
tty->termios = driver->init_termios;
drivers/tty/pty.c
394
o_tty->termios = driver->other->init_termios;
drivers/tty/serdev/serdev-ttyport.c
119
ktermios = tty->termios;
drivers/tty/serdev/serdev-ttyport.c
163
struct ktermios ktermios = tty->termios;
drivers/tty/serdev/serdev-ttyport.c
177
struct ktermios ktermios = tty->termios;
drivers/tty/serdev/serdev-ttyport.c
192
struct ktermios ktermios = tty->termios;
drivers/tty/serdev/serdev-ttyport.c
203
if ((tty->termios.c_cflag & (PARENB | PARODD | CMSPAR)) !=
drivers/tty/serial/21285.c
224
serial21285_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/21285.c
233
termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR);
drivers/tty/serial/21285.c
234
termios->c_cflag |= CLOCAL;
drivers/tty/serial/21285.c
239
termios->c_iflag &= ~(IGNBRK | BRKINT);
drivers/tty/serial/21285.c
244
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
drivers/tty/serial/21285.c
247
tty_termios_encode_baud_rate(termios, b, b);
drivers/tty/serial/21285.c
249
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/21285.c
264
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/21285.c
266
if (termios->c_cflag & PARENB) {
drivers/tty/serial/21285.c
268
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/21285.c
280
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/21285.c
286
if (termios->c_iflag & INPCK)
drivers/tty/serial/21285.c
293
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/21285.c
295
if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR)
drivers/tty/serial/21285.c
301
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/8250/8250.h
224
int serial8250_em485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_bcm7271.c
775
struct ktermios *termios,
drivers/tty/serial/8250/8250_bcm7271.c
783
set_clock_mux(up, priv, tty_termios_baud_rate(termios));
drivers/tty/serial/8250/8250_bcm7271.c
784
serial8250_do_set_termios(up, termios, old);
drivers/tty/serial/8250/8250_dw.c
539
static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dw.c
542
unsigned long newrate = tty_termios_baud_rate(termios) * 16;
drivers/tty/serial/8250/8250_dw.c
560
dw8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_dw.c
563
static void dw8250_set_ldisc(struct uart_port *p, struct ktermios *termios)
drivers/tty/serial/8250/8250_dw.c
569
if (termios->c_line == N_IRDA)
drivers/tty/serial/8250/8250_dw.c
576
serial8250_do_set_ldisc(p, termios);
drivers/tty/serial/8250/8250_dwlib.c
102
serial8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_dwlib.c
139
struct ktermios *termios)
drivers/tty/serial/8250/8250_dwlib.c
145
if (termios)
drivers/tty/serial/8250/8250_dwlib.c
146
termios->c_cflag |= ADDRB;
drivers/tty/serial/8250/8250_dwlib.c
180
static int dw8250_rs485_config(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dwlib.c
198
if (termios)
drivers/tty/serial/8250/8250_dwlib.c
199
termios->c_cflag &= ~ADDRB;
drivers/tty/serial/8250/8250_dwlib.c
217
dw8250_rs485_set_addr(p, rs485, termios);
drivers/tty/serial/8250/8250_dwlib.c
95
void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dwlib.c
99
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_dwlib.h
24
void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios, const struct ktermios *old);
drivers/tty/serial/8250/8250_exar.c
1195
static int sealevel_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_exar.c
1204
ret = generic_rs485_config(port, termios, rs485);
drivers/tty/serial/8250/8250_exar.c
1241
static int iot2040_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_exar.c
1271
return generic_rs485_config(port, termios, rs485);
drivers/tty/serial/8250/8250_exar.c
231
int (*rs485_config)(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_exar.c
397
static int generic_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_exar.c
799
struct ktermios *termios,
drivers/tty/serial/8250/8250_exar.c
805
ret = generic_rs485_config(port, termios, rs485);
drivers/tty/serial/8250/8250_fintek.c
197
static int fintek_8250_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_fintek.c
285
struct ktermios *termios,
drivers/tty/serial/8250/8250_fintek.c
289
unsigned int baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_fintek.c
343
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_fintek.c
347
serial8250_do_set_termios(port, termios, old);
drivers/tty/serial/8250/8250_keba.c
114
static int kuart_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_lpc18xx.c
35
static int lpc18xx_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_lpss.c
103
dw8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_lpss.c
72
static void byt_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_lpss.c
75
unsigned int baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_mid.c
207
static void mid8250_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_mid.c
210
unsigned int baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_mid.c
239
serial8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_mtk.c
306
mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_mtk.c
340
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_mtk.c
342
serial8250_do_set_termios(port, termios, NULL);
drivers/tty/serial/8250/8250_mtk.c
344
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_mtk.c
359
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/8250/8250_mtk.c
380
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/8250/8250_mtk.c
411
if ((termios->c_cflag & CRTSCTS) && (!(termios->c_iflag & CRTSCTS)))
drivers/tty/serial/8250/8250_mtk.c
413
else if (termios->c_iflag & CRTSCTS)
drivers/tty/serial/8250/8250_mtk.c
421
up->port.cons->cflag = termios->c_cflag;
drivers/tty/serial/8250/8250_mtk.c
425
if (tty_termios_baud_rate(termios))
drivers/tty/serial/8250/8250_mtk.c
426
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_ni.c
106
struct ktermios *termios,
drivers/tty/serial/8250/8250_omap.c
363
static void omap_8250_set_termios_atomic(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_omap.c
370
cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
drivers/tty/serial/8250/8250_omap.c
372
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/8250/8250_omap.c
374
if (termios->c_cflag & PARENB)
drivers/tty/serial/8250/8250_omap.c
376
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/8250/8250_omap.c
378
if (termios->c_cflag & CMSPAR)
drivers/tty/serial/8250/8250_omap.c
393
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/8250/8250_omap.c
402
if (termios->c_iflag & INPCK)
drivers/tty/serial/8250/8250_omap.c
404
if (termios->c_iflag & (IGNBRK | PARMRK))
drivers/tty/serial/8250/8250_omap.c
411
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_omap.c
413
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/8250/8250_omap.c
419
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_omap.c
426
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/8250/8250_omap.c
433
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/8250/8250_omap.c
467
priv->xon = termios->c_cc[VSTART];
drivers/tty/serial/8250/8250_omap.c
468
priv->xoff = termios->c_cc[VSTOP];
drivers/tty/serial/8250/8250_omap.c
473
if (termios->c_cflag & CRTSCTS && port->flags & UPF_HARD_FLOW &&
drivers/tty/serial/8250/8250_omap.c
490
if (termios->c_iflag & IXOFF) {
drivers/tty/serial/8250/8250_omap.c
503
struct ktermios *termios,
drivers/tty/serial/8250/8250_omap.c
512
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/8250/8250_omap.c
516
omap_8250_set_termios_atomic(port, termios, old, baud);
drivers/tty/serial/8250/8250_omap.c
525
if (tty_termios_baud_rate(termios))
drivers/tty/serial/8250/8250_omap.c
526
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_omap.c
831
struct ktermios *termios,
drivers/tty/serial/8250/8250_omap.c
873
return serial8250_em485_config(port, termios, rs485);
drivers/tty/serial/8250/8250_pci.c
1624
static int pci_fintek_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_pci1xxxx.c
312
struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2548
struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2574
return uart_get_baud_rate(port, termios, old, min, max);
drivers/tty/serial/8250/8250_port.c
2600
serial8250_do_set_termios(port, &tty->termios, NULL);
drivers/tty/serial/8250/8250_port.c
2609
static void serial8250_set_mini(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2616
termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CMSPAR);
drivers/tty/serial/8250/8250_port.c
2618
tcflag_t csize = termios->c_cflag & CSIZE;
drivers/tty/serial/8250/8250_port.c
2620
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/8250/8250_port.c
2621
termios->c_cflag |= CS7;
drivers/tty/serial/8250/8250_port.c
2625
static void serial8250_set_trigger_for_slow_speed(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2647
static void serial8250_set_afe(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2655
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_port.c
2659
static void serial8250_set_errors_and_ignores(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2667
if (termios->c_iflag & INPCK)
drivers/tty/serial/8250/8250_port.c
2669
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/8250/8250_port.c
2674
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_port.c
2676
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/8250/8250_port.c
2682
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_port.c
2687
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/8250/8250_port.c
2691
static void serial8250_set_ier(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2697
if (!(up->bugs & UART_BUG_NOMSR) && UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/8250/8250_port.c
2707
static void serial8250_set_efr(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2721
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_port.c
2731
static void serial8250_set_fcr(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2756
serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2763
serial8250_set_mini(port, termios);
drivers/tty/serial/8250/8250_port.c
2764
lcr = serial8250_compute_lcr(up, termios->c_cflag);
drivers/tty/serial/8250/8250_port.c
2765
baud = serial8250_get_baud_rate(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2777
serial8250_set_trigger_for_slow_speed(port, termios, baud);
drivers/tty/serial/8250/8250_port.c
2778
serial8250_set_afe(port, termios);
drivers/tty/serial/8250/8250_port.c
2779
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/8250/8250_port.c
2780
serial8250_set_errors_and_ignores(port, termios);
drivers/tty/serial/8250/8250_port.c
2781
serial8250_set_ier(port, termios);
drivers/tty/serial/8250/8250_port.c
2782
serial8250_set_efr(port, termios);
drivers/tty/serial/8250/8250_port.c
2784
serial8250_set_fcr(port, termios);
drivers/tty/serial/8250/8250_port.c
2789
if (tty_termios_baud_rate(termios))
drivers/tty/serial/8250/8250_port.c
2790
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_port.c
2795
serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2799
port->set_termios(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2801
serial8250_do_set_termios(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2804
void serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2806
if (termios->c_line == N_PPS) {
drivers/tty/serial/8250/8250_port.c
2812
if (!UART_ENABLE_MS(port, termios->c_cflag)) {
drivers/tty/serial/8250/8250_port.c
2821
serial8250_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2824
port->set_ldisc(port, termios);
drivers/tty/serial/8250/8250_port.c
2826
serial8250_do_set_ldisc(port, termios);
drivers/tty/serial/8250/8250_port.c
3234
struct ktermios termios;
drivers/tty/serial/8250/8250_port.c
3237
termios.c_cflag = port->cons->cflag;
drivers/tty/serial/8250/8250_port.c
3238
termios.c_ispeed = port->cons->ispeed;
drivers/tty/serial/8250/8250_port.c
3239
termios.c_ospeed = port->cons->ospeed;
drivers/tty/serial/8250/8250_port.c
3240
if (port->state->port.tty && termios.c_cflag == 0) {
drivers/tty/serial/8250/8250_port.c
3241
termios.c_cflag = port->state->port.tty->termios.c_cflag;
drivers/tty/serial/8250/8250_port.c
3242
termios.c_ispeed = port->state->port.tty->termios.c_ispeed;
drivers/tty/serial/8250/8250_port.c
3243
termios.c_ospeed = port->state->port.tty->termios.c_ospeed;
drivers/tty/serial/8250/8250_port.c
3246
baud = serial8250_get_baud_rate(port, &termios, NULL);
drivers/tty/serial/8250/8250_port.c
621
int serial8250_em485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/altera_jtaguart.c
101
struct ktermios *termios,
drivers/tty/serial/altera_jtaguart.c
106
tty_termios_copy_hw(termios, old);
drivers/tty/serial/altera_uart.c
176
struct ktermios *termios,
drivers/tty/serial/altera_uart.c
182
baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
drivers/tty/serial/altera_uart.c
186
tty_termios_copy_hw(termios, old);
drivers/tty/serial/altera_uart.c
187
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/altera_uart.c
190
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/amba-pl010.c
351
pl010_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/amba-pl010.c
361
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/amba-pl010.c
364
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/amba-pl010.c
378
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/amba-pl010.c
380
if (termios->c_cflag & PARENB) {
drivers/tty/serial/amba-pl010.c
382
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/amba-pl010.c
393
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/amba-pl010.c
396
if (termios->c_iflag & INPCK)
drivers/tty/serial/amba-pl010.c
398
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/amba-pl010.c
405
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl010.c
407
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/amba-pl010.c
413
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl010.c
420
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/amba-pl010.c
425
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/amba-pl010.c
444
static void pl010_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/amba-pl010.c
446
if (termios->c_line == N_PPS) {
drivers/tty/serial/amba-pl010.c
453
if (!UART_ENABLE_MS(port, termios->c_cflag)) {
drivers/tty/serial/amba-pl011.c
2058
pl011_setup_status_masks(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/amba-pl011.c
2061
if (termios->c_iflag & INPCK)
drivers/tty/serial/amba-pl011.c
2063
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/amba-pl011.c
2070
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl011.c
2072
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/amba-pl011.c
2078
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl011.c
2085
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/amba-pl011.c
2090
pl011_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/amba-pl011.c
2108
baud = uart_get_baud_rate(port, termios, old, 0,
drivers/tty/serial/amba-pl011.c
2123
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/amba-pl011.c
2137
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/amba-pl011.c
2139
if (termios->c_cflag & PARENB) {
drivers/tty/serial/amba-pl011.c
2141
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/amba-pl011.c
2143
if (termios->c_cflag & CMSPAR)
drivers/tty/serial/amba-pl011.c
2149
bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/amba-pl011.c
2156
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/amba-pl011.c
2165
pl011_setup_status_masks(port, termios);
drivers/tty/serial/amba-pl011.c
2167
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/amba-pl011.c
2171
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/amba-pl011.c
2175
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/amba-pl011.c
2229
sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/amba-pl011.c
2236
tty_termios_encode_baud_rate(termios, uap->fixed_baud, uap->fixed_baud);
drivers/tty/serial/amba-pl011.c
2239
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
drivers/tty/serial/amba-pl011.c
2240
termios->c_cflag &= ~(CMSPAR | CRTSCTS);
drivers/tty/serial/amba-pl011.c
2241
termios->c_cflag |= CS8 | CLOCAL;
drivers/tty/serial/amba-pl011.c
2245
pl011_setup_status_masks(port, termios);
drivers/tty/serial/amba-pl011.c
2283
static int pl011_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/apbuart.c
205
struct ktermios *termios, const struct ktermios *old)
drivers/tty/serial/apbuart.c
212
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/apbuart.c
221
if (termios->c_cflag & PARENB) {
drivers/tty/serial/apbuart.c
223
if ((termios->c_cflag & PARODD))
drivers/tty/serial/apbuart.c
228
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/apbuart.c
234
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/apbuart.c
237
if (termios->c_iflag & INPCK)
drivers/tty/serial/apbuart.c
242
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/apbuart.c
246
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/ar933x_uart.c
643
static int ar933x_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/atmel_serial.c
2104
struct ktermios *termios,
drivers/tty/serial/atmel_serial.c
2123
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/atmel_serial.c
2126
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/atmel_serial.c
2142
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/atmel_serial.c
2146
if (termios->c_cflag & PARENB) {
drivers/tty/serial/atmel_serial.c
2148
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/atmel_serial.c
2149
if (termios->c_cflag & PARODD)
drivers/tty/serial/atmel_serial.c
2153
} else if (termios->c_cflag & PARODD)
drivers/tty/serial/atmel_serial.c
2163
if (termios->c_iflag & INPCK)
drivers/tty/serial/atmel_serial.c
2165
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/atmel_serial.c
2176
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/atmel_serial.c
2178
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/atmel_serial.c
2184
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/atmel_serial.c
2190
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/atmel_serial.c
2220
} else if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/atmel_serial.c
2357
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/atmel_serial.c
2365
static void atmel_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/atmel_serial.c
2367
if (termios->c_line == N_PPS) {
drivers/tty/serial/atmel_serial.c
2374
if (!UART_ENABLE_MS(port, termios->c_cflag)) {
drivers/tty/serial/atmel_serial.c
295
static int atmel_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/clps711x.c
221
struct ktermios *termios)
drivers/tty/serial/clps711x.c
227
(termios->c_line == N_IRDA) ? SYSCON1_SIREN : 0);
drivers/tty/serial/clps711x.c
253
struct ktermios *termios,
drivers/tty/serial/clps711x.c
260
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/clps711x.c
261
termios->c_iflag &= ~(BRKINT | IGNBRK);
drivers/tty/serial/clps711x.c
264
baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096,
drivers/tty/serial/clps711x.c
268
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/clps711x.c
284
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/clps711x.c
287
if (termios->c_cflag & PARENB) {
drivers/tty/serial/clps711x.c
289
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/clps711x.c
298
if (termios->c_iflag & INPCK)
drivers/tty/serial/clps711x.c
303
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/clps711x.c
307
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/cpm_uart.c
489
struct ktermios *termios,
drivers/tty/serial/cpm_uart.c
503
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/cpm_uart.c
523
if (termios->c_cflag & CSTOPB) {
drivers/tty/serial/cpm_uart.c
528
if (termios->c_cflag & PARENB) {
drivers/tty/serial/cpm_uart.c
531
if (!(termios->c_cflag & PARODD)) {
drivers/tty/serial/cpm_uart.c
540
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/cpm_uart.c
546
if (termios->c_iflag & INPCK)
drivers/tty/serial/cpm_uart.c
548
if ((termios->c_iflag & BRKINT) || (termios->c_iflag & PARMRK))
drivers/tty/serial/cpm_uart.c
555
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/cpm_uart.c
557
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/cpm_uart.c
563
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/cpm_uart.c
569
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/cpm_uart.c
575
unsigned int bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/cpm_uart.c
601
unsigned int bits = tty_get_char_size(termios->c_cflag);
drivers/tty/serial/digicolor-usart.c
287
struct ktermios *termios,
drivers/tty/serial/digicolor-usart.c
295
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/digicolor-usart.c
296
termios->c_iflag &= ~(BRKINT | IGNBRK);
drivers/tty/serial/digicolor-usart.c
299
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/digicolor-usart.c
304
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/digicolor-usart.c
310
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/digicolor-usart.c
311
termios->c_cflag |= CS8;
drivers/tty/serial/digicolor-usart.c
315
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/digicolor-usart.c
318
if (termios->c_cflag & PARENB) {
drivers/tty/serial/digicolor-usart.c
320
if (termios->c_cflag & PARODD)
drivers/tty/serial/digicolor-usart.c
326
if (termios->c_iflag & INPCK)
drivers/tty/serial/digicolor-usart.c
332
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/digicolor-usart.c
338
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/dz.c
559
static void dz_set_termios(struct uart_port *uport, struct ktermios *termios,
drivers/tty/serial/dz.c
569
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/dz.c
584
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/dz.c
586
if (termios->c_cflag & PARENB)
drivers/tty/serial/dz.c
588
if (termios->c_cflag & PARODD)
drivers/tty/serial/dz.c
591
baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600);
drivers/tty/serial/dz.c
603
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/dz.c
607
if (termios->c_cflag & CREAD)
drivers/tty/serial/dz.c
612
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/dz.c
619
if (termios->c_iflag & INPCK)
drivers/tty/serial/dz.c
621
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/dz.c
626
if ((termios->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
drivers/tty/serial/dz.c
628
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/dz.c
630
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/esp32_acm.c
232
struct ktermios *termios,
drivers/tty/serial/esp32_uart.c
391
struct ktermios *termios,
drivers/tty/serial/esp32_uart.c
400
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/esp32_uart.c
405
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/esp32_uart.c
417
if (termios->c_cflag & PARENB) {
drivers/tty/serial/esp32_uart.c
419
if (termios->c_cflag & PARODD)
drivers/tty/serial/esp32_uart.c
423
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/esp32_uart.c
438
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/esp32_uart.c
443
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/esp32_uart.c
451
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/esp32_uart.c
455
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/esp32_uart.c
456
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/fsl_linflexuart.c
403
linflex_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_linflexuart.c
433
while ((termios->c_cflag & CSIZE) != CS8 &&
drivers/tty/serial/fsl_linflexuart.c
434
(termios->c_cflag & CSIZE) != CS7) {
drivers/tty/serial/fsl_linflexuart.c
435
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_linflexuart.c
436
termios->c_cflag |= old_csize;
drivers/tty/serial/fsl_linflexuart.c
440
if ((termios->c_cflag & CSIZE) == CS7) {
drivers/tty/serial/fsl_linflexuart.c
445
if ((termios->c_cflag & CSIZE) == CS8) {
drivers/tty/serial/fsl_linflexuart.c
450
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_linflexuart.c
451
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/fsl_linflexuart.c
452
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_linflexuart.c
453
termios->c_cflag |= CS8;
drivers/tty/serial/fsl_linflexuart.c
459
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/fsl_linflexuart.c
460
termios->c_cflag &= ~CSTOPB;
drivers/tty/serial/fsl_linflexuart.c
463
if ((termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_linflexuart.c
464
termios->c_cflag |= PARENB;
drivers/tty/serial/fsl_linflexuart.c
466
if ((termios->c_cflag & PARENB)) {
drivers/tty/serial/fsl_linflexuart.c
468
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_linflexuart.c
482
if (termios->c_iflag & INPCK)
drivers/tty/serial/fsl_linflexuart.c
488
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/fsl_linflexuart.c
493
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_linflexuart.c
495
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/fsl_linflexuart.c
501
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
1347
struct ktermios *termios = &tty->termios;
drivers/tty/serial/fsl_lpuart.c
1349
unsigned int bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/fsl_lpuart.c
1449
static int lpuart_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
1476
static int lpuart32_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
1988
lpuart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
2012
while ((termios->c_cflag & CSIZE) != CS8 &&
drivers/tty/serial/fsl_lpuart.c
2013
(termios->c_cflag & CSIZE) != CS7) {
drivers/tty/serial/fsl_lpuart.c
2014
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2015
termios->c_cflag |= old_csize;
drivers/tty/serial/fsl_lpuart.c
2019
if ((termios->c_cflag & CSIZE) == CS8 ||
drivers/tty/serial/fsl_lpuart.c
2020
(termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2023
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2024
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/fsl_lpuart.c
2025
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2026
termios->c_cflag |= CS8;
drivers/tty/serial/fsl_lpuart.c
2036
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/fsl_lpuart.c
2038
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/fsl_lpuart.c
2043
termios->c_cflag &= ~CSTOPB;
drivers/tty/serial/fsl_lpuart.c
2046
if ((termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2047
termios->c_cflag |= PARENB;
drivers/tty/serial/fsl_lpuart.c
2049
if (termios->c_cflag & PARENB) {
drivers/tty/serial/fsl_lpuart.c
2050
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2052
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2058
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/fsl_lpuart.c
2060
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2070
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
drivers/tty/serial/fsl_lpuart.c
2085
if (termios->c_iflag & INPCK)
drivers/tty/serial/fsl_lpuart.c
2087
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/fsl_lpuart.c
2092
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2094
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/fsl_lpuart.c
2100
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2105
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/fsl_lpuart.c
2226
lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
2248
while ((termios->c_cflag & CSIZE) != CS8 &&
drivers/tty/serial/fsl_lpuart.c
2249
(termios->c_cflag & CSIZE) != CS7) {
drivers/tty/serial/fsl_lpuart.c
2250
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2251
termios->c_cflag |= old_csize;
drivers/tty/serial/fsl_lpuart.c
2255
if ((termios->c_cflag & CSIZE) == CS8 ||
drivers/tty/serial/fsl_lpuart.c
2256
(termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2259
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2260
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/fsl_lpuart.c
2261
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2262
termios->c_cflag |= CS8;
drivers/tty/serial/fsl_lpuart.c
2272
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/fsl_lpuart.c
2274
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/fsl_lpuart.c
2279
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/fsl_lpuart.c
2288
if ((termios->c_cflag & CSIZE) == CS7 && !(termios->c_cflag & PARENB)) {
drivers/tty/serial/fsl_lpuart.c
2294
termios->c_cflag |= PARENB;
drivers/tty/serial/fsl_lpuart.c
2297
if ((termios->c_cflag & PARENB)) {
drivers/tty/serial/fsl_lpuart.c
2298
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2303
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/fsl_lpuart.c
2305
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2315
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
drivers/tty/serial/fsl_lpuart.c
2330
if (termios->c_iflag & INPCK)
drivers/tty/serial/fsl_lpuart.c
2332
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/fsl_lpuart.c
2337
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2339
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/fsl_lpuart.c
2345
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2350
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/fsl_lpuart.c
3189
struct ktermios termios;
drivers/tty/serial/fsl_lpuart.c
3202
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/fsl_lpuart.c
3203
termios.c_cflag = uport->cons->cflag;
drivers/tty/serial/fsl_lpuart.c
3204
if (port->tty && termios.c_cflag == 0)
drivers/tty/serial/fsl_lpuart.c
3205
termios = port->tty->termios;
drivers/tty/serial/fsl_lpuart.c
3206
uport->ops->set_termios(uport, &termios, NULL);
drivers/tty/serial/icom.c
1341
static void icom_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/icom.c
1358
cflag = termios->c_cflag;
drivers/tty/serial/icom.c
1359
iflag = termios->c_iflag;
drivers/tty/serial/icom.c
1396
baud = uart_get_baud_rate(port, termios, old_termios,
drivers/tty/serial/imx.c
1740
imx_uart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/imx.c
1755
while ((termios->c_cflag & CSIZE) != CS7 &&
drivers/tty/serial/imx.c
1756
(termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/imx.c
1757
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/imx.c
1758
termios->c_cflag |= old_csize;
drivers/tty/serial/imx.c
1767
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
drivers/tty/serial/imx.c
1780
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/imx.c
1784
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/imx.c
1797
} else if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/imx.c
1806
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/imx.c
1808
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/imx.c
1810
if (termios->c_cflag & PARENB) {
drivers/tty/serial/imx.c
1812
if (termios->c_cflag & PARODD)
drivers/tty/serial/imx.c
1817
if (termios->c_iflag & INPCK)
drivers/tty/serial/imx.c
1819
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/imx.c
1826
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/imx.c
1828
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/imx.c
1834
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/imx.c
1838
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/imx.c
1844
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/imx.c
1863
tty_termios_encode_baud_rate(termios,
drivers/tty/serial/imx.c
1895
if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
drivers/tty/serial/imx.c
2023
static int imx_uart_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/ip22zilog.c
867
ip22zilog_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/ip22zilog.c
875
baud = uart_get_baud_rate(port, termios, old, 1200, 76800);
drivers/tty/serial/ip22zilog.c
881
ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
drivers/tty/serial/ip22zilog.c
883
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/ip22zilog.c
889
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/jsm/jsm_tty.c
153
struct ktermios *termios;
drivers/tty/serial/jsm/jsm_tty.c
156
termios = &port->state->port.tty->termios;
drivers/tty/serial/jsm/jsm_tty.c
157
if (ch == termios->c_cc[VSTART])
drivers/tty/serial/jsm/jsm_tty.c
160
if (ch == termios->c_cc[VSTOP])
drivers/tty/serial/jsm/jsm_tty.c
194
struct ktermios *termios;
drivers/tty/serial/jsm/jsm_tty.c
245
termios = &port->state->port.tty->termios;
drivers/tty/serial/jsm/jsm_tty.c
246
channel->ch_c_cflag = termios->c_cflag;
drivers/tty/serial/jsm/jsm_tty.c
247
channel->ch_c_iflag = termios->c_iflag;
drivers/tty/serial/jsm/jsm_tty.c
248
channel->ch_c_oflag = termios->c_oflag;
drivers/tty/serial/jsm/jsm_tty.c
249
channel->ch_c_lflag = termios->c_lflag;
drivers/tty/serial/jsm/jsm_tty.c
250
channel->ch_startc = termios->c_cc[VSTART];
drivers/tty/serial/jsm/jsm_tty.c
251
channel->ch_stopc = termios->c_cc[VSTOP];
drivers/tty/serial/jsm/jsm_tty.c
303
struct ktermios *termios,
drivers/tty/serial/jsm/jsm_tty.c
311
channel->ch_c_cflag = termios->c_cflag;
drivers/tty/serial/jsm/jsm_tty.c
312
channel->ch_c_iflag = termios->c_iflag;
drivers/tty/serial/jsm/jsm_tty.c
313
channel->ch_c_oflag = termios->c_oflag;
drivers/tty/serial/jsm/jsm_tty.c
314
channel->ch_c_lflag = termios->c_lflag;
drivers/tty/serial/jsm/jsm_tty.c
315
channel->ch_startc = termios->c_cc[VSTART];
drivers/tty/serial/jsm/jsm_tty.c
316
channel->ch_stopc = termios->c_cc[VSTOP];
drivers/tty/serial/lpc32xx_hs.c
471
struct ktermios *termios,
drivers/tty/serial/lpc32xx_hs.c
479
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
drivers/tty/serial/lpc32xx_hs.c
480
termios->c_cflag |= CS8;
drivers/tty/serial/lpc32xx_hs.c
482
termios->c_cflag &= ~(HUPCL | CMSPAR | CLOCAL | CRTSCTS);
drivers/tty/serial/lpc32xx_hs.c
484
baud = uart_get_baud_rate(port, termios, old, 0,
drivers/tty/serial/lpc32xx_hs.c
493
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/lpc32xx_hs.c
501
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/lpc32xx_hs.c
506
if (tty_termios_baud_rate(termios))
drivers/tty/serial/lpc32xx_hs.c
507
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/ma35d1_serial.c
414
struct ktermios *termios,
drivers/tty/serial/ma35d1_serial.c
422
lcr = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
drivers/tty/serial/ma35d1_serial.c
424
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/ma35d1_serial.c
426
if (termios->c_cflag & PARENB)
drivers/tty/serial/ma35d1_serial.c
428
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/ma35d1_serial.c
430
if (termios->c_cflag & CMSPAR)
drivers/tty/serial/ma35d1_serial.c
433
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/ma35d1_serial.c
447
if (termios->c_iflag & INPCK)
drivers/tty/serial/ma35d1_serial.c
449
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/ma35d1_serial.c
454
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/ma35d1_serial.c
456
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/ma35d1_serial.c
462
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/ma35d1_serial.c
465
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/ma35d1_serial.c
470
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/max3100.c
407
max3100_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/max3100.c
418
cflag = termios->c_cflag;
drivers/tty/serial/max3100.c
421
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/max3100.c
466
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/max3100.c
502
termios->c_cflag = cflag;
drivers/tty/serial/max3100.c
505
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/max3100.c
511
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/max3100.c
520
if (UART_ENABLE_MS(&s->port, termios->c_cflag))
drivers/tty/serial/max310x.c
1004
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/max310x.c
1012
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/max310x.c
1037
static int max310x_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/max310x.c
904
struct ktermios *termios,
drivers/tty/serial/max310x.c
911
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/max310x.c
914
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/max310x.c
930
if (termios->c_cflag & PARENB) {
drivers/tty/serial/max310x.c
932
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/max310x.c
937
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/max310x.c
945
if (termios->c_iflag & INPCK)
drivers/tty/serial/max310x.c
948
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/max310x.c
953
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/max310x.c
955
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/max310x.c
962
max310x_port_write(port, MAX310X_XON1_REG, termios->c_cc[VSTART]);
drivers/tty/serial/max310x.c
963
max310x_port_write(port, MAX310X_XOFF1_REG, termios->c_cc[VSTOP]);
drivers/tty/serial/max310x.c
969
if (termios->c_cflag & CRTSCTS || termios->c_iflag & IXOFF) {
drivers/tty/serial/max310x.c
977
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/max310x.c
983
if (termios->c_iflag & IXON)
drivers/tty/serial/max310x.c
986
if (termios->c_iflag & IXOFF) {
drivers/tty/serial/max310x.c
997
if (!(termios->c_cflag & CRTSCTS) && !(termios->c_iflag & IXOFF)) {
drivers/tty/serial/mcf.c
194
static void mcf_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/mcf.c
204
baud = uart_get_baud_rate(port, termios, old, 0, 230400);
drivers/tty/serial/mcf.c
215
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/mcf.c
223
if (termios->c_cflag & PARENB) {
drivers/tty/serial/mcf.c
224
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/mcf.c
225
if (termios->c_cflag & PARODD)
drivers/tty/serial/mcf.c
230
if (termios->c_cflag & PARODD)
drivers/tty/serial/mcf.c
245
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/mcf.c
250
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/mcf.c
261
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/mcf.c
416
static int mcf_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/men_z135_uart.c
640
struct ktermios *termios,
drivers/tty/serial/men_z135_uart.c
654
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/men_z135_uart.c
670
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/men_z135_uart.c
674
if (termios->c_cflag & PARENB) {
drivers/tty/serial/men_z135_uart.c
677
if (termios->c_cflag & PARODD)
drivers/tty/serial/men_z135_uart.c
685
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/men_z135_uart.c
688
termios->c_cflag &= ~CLOCAL;
drivers/tty/serial/men_z135_uart.c
694
termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
drivers/tty/serial/men_z135_uart.c
703
baud = uart_get_baud_rate(port, termios, old, 0, uart_freq / 16);
drivers/tty/serial/men_z135_uart.c
706
if (tty_termios_baud_rate(termios))
drivers/tty/serial/men_z135_uart.c
707
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/men_z135_uart.c
712
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/meson_uart.c
335
struct ktermios *termios,
drivers/tty/serial/meson_uart.c
344
cflags = termios->c_cflag;
drivers/tty/serial/meson_uart.c
345
iflags = termios->c_iflag;
drivers/tty/serial/meson_uart.c
385
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/meson_uart.c
392
baud = uart_get_baud_rate(port, termios, old, 50, 4000000);
drivers/tty/serial/meson_uart.c
405
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/milbeaut_usio.c
300
struct ktermios *termios,
drivers/tty/serial/milbeaut_usio.c
306
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/milbeaut_usio.c
322
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/milbeaut_usio.c
325
if (termios->c_cflag & PARENB) {
drivers/tty/serial/milbeaut_usio.c
327
if (termios->c_cflag & PARODD)
drivers/tty/serial/milbeaut_usio.c
332
(termios->c_cflag & CRTSCTS))
drivers/tty/serial/milbeaut_usio.c
335
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk);
drivers/tty/serial/milbeaut_usio.c
342
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/milbeaut_usio.c
345
if (termios->c_iflag & INPCK)
drivers/tty/serial/milbeaut_usio.c
349
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/milbeaut_usio.c
351
if ((termios->c_iflag & IGNBRK) && (termios->c_iflag & IGNPAR))
drivers/tty/serial/milbeaut_usio.c
353
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/mps2-uart.c
341
mps2_uart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/mps2-uart.c
347
termios->c_cflag &= ~(CRTSCTS | CMSPAR);
drivers/tty/serial/mps2-uart.c
348
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/mps2-uart.c
349
termios->c_cflag |= CS8;
drivers/tty/serial/mps2-uart.c
350
termios->c_cflag &= ~PARENB;
drivers/tty/serial/mps2-uart.c
351
termios->c_cflag &= ~CSTOPB;
drivers/tty/serial/mps2-uart.c
353
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/mps2-uart.c
361
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/mps2-uart.c
366
if (tty_termios_baud_rate(termios))
drivers/tty/serial/mps2-uart.c
367
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/msm_serial.c
1270
static void msm_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/msm_serial.c
1284
baud = uart_get_baud_rate(port, termios, old, 300, 4000000);
drivers/tty/serial/msm_serial.c
1286
if (tty_termios_baud_rate(termios))
drivers/tty/serial/msm_serial.c
1287
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/msm_serial.c
1292
if (termios->c_cflag & PARENB) {
drivers/tty/serial/msm_serial.c
1293
if (termios->c_cflag & PARODD)
drivers/tty/serial/msm_serial.c
1295
else if (termios->c_cflag & CMSPAR)
drivers/tty/serial/msm_serial.c
1303
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/msm_serial.c
1321
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/msm_serial.c
1332
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/msm_serial.c
1340
if (termios->c_iflag & INPCK)
drivers/tty/serial/msm_serial.c
1342
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/msm_serial.c
1345
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/mux.c
272
mux_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/mvebu-uart.c
535
struct ktermios *termios,
drivers/tty/serial/mvebu-uart.c
546
if (termios->c_iflag & INPCK)
drivers/tty/serial/mvebu-uart.c
550
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/mvebu-uart.c
554
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/mvebu-uart.c
569
baud = uart_get_baud_rate(port, termios, old, min_baud, max_baud);
drivers/tty/serial/mvebu-uart.c
578
termios->c_iflag &= INPCK | IGNPAR;
drivers/tty/serial/mvebu-uart.c
579
termios->c_iflag |= old->c_iflag & ~(INPCK | IGNPAR);
drivers/tty/serial/mvebu-uart.c
580
termios->c_cflag &= CREAD | CBAUD;
drivers/tty/serial/mvebu-uart.c
581
termios->c_cflag |= old->c_cflag & ~(CREAD | CBAUD);
drivers/tty/serial/mvebu-uart.c
582
termios->c_cflag |= CS8;
drivers/tty/serial/mvebu-uart.c
586
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/mvebu-uart.c
587
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/mxs-auart.c
1025
baud = uart_get_baud_rate(u, termios, old,
drivers/tty/serial/mxs-auart.c
1033
baud = uart_get_baud_rate(u, termios, old, baud_min, baud_max);
drivers/tty/serial/mxs-auart.c
1043
uart_update_timeout(u, termios->c_cflag, baud);
drivers/tty/serial/mxs-auart.c
1059
if (UART_ENABLE_MS(u, termios->c_cflag))
drivers/tty/serial/mxs-auart.c
1066
struct ktermios *termios)
drivers/tty/serial/mxs-auart.c
1068
if (termios->c_line == N_PPS) {
drivers/tty/serial/mxs-auart.c
942
struct ktermios *termios,
drivers/tty/serial/mxs-auart.c
949
cflag = termios->c_cflag;
drivers/tty/serial/mxs-auart.c
967
if (termios->c_iflag & INPCK)
drivers/tty/serial/mxs-auart.c
969
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/mxs-auart.c
976
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/mxs-auart.c
978
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/mxs-auart.c
984
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/omap-serial.c
1004
if (termios->c_iflag & IXANY)
drivers/tty/serial/omap-serial.c
1294
serial_omap_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/omap-serial.c
776
serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/omap-serial.c
784
cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
drivers/tty/serial/omap-serial.c
786
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/omap-serial.c
788
if (termios->c_cflag & PARENB)
drivers/tty/serial/omap-serial.c
790
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/omap-serial.c
792
if (termios->c_cflag & CMSPAR)
drivers/tty/serial/omap-serial.c
799
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/13);
drivers/tty/serial/omap-serial.c
823
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/omap-serial.c
826
if (termios->c_iflag & INPCK)
drivers/tty/serial/omap-serial.c
828
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/omap-serial.c
835
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/omap-serial.c
837
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/omap-serial.c
843
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/omap-serial.c
850
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/omap-serial.c
857
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/omap-serial.c
955
serial_out(up, UART_XON1, termios->c_cc[VSTART]);
drivers/tty/serial/omap-serial.c
956
serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]);
drivers/tty/serial/omap-serial.c
967
if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
drivers/tty/serial/omap-serial.c
985
if (termios->c_iflag & IXON)
drivers/tty/serial/omap-serial.c
993
if (termios->c_iflag & IXOFF) {
drivers/tty/serial/owl-uart.c
308
struct ktermios *termios,
drivers/tty/serial/owl-uart.c
321
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/owl-uart.c
337
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/owl-uart.c
343
if (termios->c_cflag & PARENB) {
drivers/tty/serial/owl-uart.c
344
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/owl-uart.c
345
if (termios->c_cflag & PARODD)
drivers/tty/serial/owl-uart.c
349
} else if (termios->c_cflag & PARODD)
drivers/tty/serial/owl-uart.c
356
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/owl-uart.c
363
baud = uart_get_baud_rate(port, termios, old, 9600, 3200000);
drivers/tty/serial/owl-uart.c
367
if (tty_termios_baud_rate(termios))
drivers/tty/serial/owl-uart.c
368
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/owl-uart.c
371
if (termios->c_iflag & INPCK)
drivers/tty/serial/owl-uart.c
374
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/pch_uart.c
1288
struct ktermios *termios,
drivers/tty/serial/pch_uart.c
1297
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/pch_uart.c
1311
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/pch_uart.c
1316
if (termios->c_cflag & PARENB) {
drivers/tty/serial/pch_uart.c
1317
if (termios->c_cflag & PARODD)
drivers/tty/serial/pch_uart.c
1326
if ((termios->c_cflag & CRTSCTS) && (priv->fifo_size == 256))
drivers/tty/serial/pch_uart.c
1331
termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
drivers/tty/serial/pch_uart.c
1333
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/pch_uart.c
1337
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/pch_uart.c
1344
if (tty_termios_baud_rate(termios))
drivers/tty/serial/pch_uart.c
1345
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/pmac_zilog.c
1188
static void __pmz_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/pmac_zilog.c
1203
baud = uart_get_baud_rate(port, termios, old, 1200, 4000000);
drivers/tty/serial/pmac_zilog.c
1208
pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
drivers/tty/serial/pmac_zilog.c
1212
baud = uart_get_baud_rate(port, termios, old, 1200, 230400);
drivers/tty/serial/pmac_zilog.c
1213
pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
drivers/tty/serial/pmac_zilog.c
1215
if (UART_ENABLE_MS(&uap->port, termios->c_cflag)) {
drivers/tty/serial/pmac_zilog.c
1226
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/pmac_zilog.c
1230
static void pmz_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/pmac_zilog.c
1242
__pmz_set_termios(port, termios, old);
drivers/tty/serial/pxa.c
402
serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/pxa.c
411
cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
drivers/tty/serial/pxa.c
413
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/pxa.c
415
if (termios->c_cflag & PARENB)
drivers/tty/serial/pxa.c
417
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/pxa.c
423
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
drivers/tty/serial/pxa.c
448
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/pxa.c
451
if (termios->c_iflag & INPCK)
drivers/tty/serial/pxa.c
453
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/pxa.c
460
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/pxa.c
462
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/pxa.c
468
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/pxa.c
475
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/pxa.c
482
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/pxa.c
487
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/qcom_geni_serial.c
1347
struct ktermios *termios,
drivers/tty/serial/qcom_geni_serial.c
1362
baud = uart_get_baud_rate(uport, termios, old, 300, 8000000);
drivers/tty/serial/qcom_geni_serial.c
1373
if (termios->c_cflag & PARENB) {
drivers/tty/serial/qcom_geni_serial.c
1378
if (termios->c_cflag & PARODD) {
drivers/tty/serial/qcom_geni_serial.c
1381
} else if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/qcom_geni_serial.c
1396
bits_per_char = tty_get_char_size(termios->c_cflag);
drivers/tty/serial/qcom_geni_serial.c
1399
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/qcom_geni_serial.c
1405
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/qcom_geni_serial.c
1411
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/qcom_geni_serial.c
1734
struct ktermios *termios, struct serial_rs485 *rs485)
drivers/tty/serial/rda-uart.c
240
struct ktermios *termios,
drivers/tty/serial/rda-uart.c
251
baud = uart_get_baud_rate(port, termios, old, 9600, port->uartclk / 4);
drivers/tty/serial/rda-uart.c
258
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/rda-uart.c
265
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/rda-uart.c
266
termios->c_cflag |= CS7;
drivers/tty/serial/rda-uart.c
274
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/rda-uart.c
280
if (termios->c_cflag & PARENB) {
drivers/tty/serial/rda-uart.c
284
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/rda-uart.c
285
if (termios->c_cflag & PARODD)
drivers/tty/serial/rda-uart.c
289
} else if (termios->c_cflag & PARODD) {
drivers/tty/serial/rda-uart.c
299
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/rda-uart.c
322
if (tty_termios_baud_rate(termios))
drivers/tty/serial/rda-uart.c
323
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/rda-uart.c
326
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/rsci.c
216
static void rsci_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/rsci.c
231
if ((termios->c_cflag & CSIZE) == CS7) {
drivers/tty/serial/rsci.c
234
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/rsci.c
235
termios->c_cflag |= CS8;
drivers/tty/serial/rsci.c
238
if (termios->c_cflag & PARENB)
drivers/tty/serial/rsci.c
241
if (termios->c_cflag & PARODD)
drivers/tty/serial/rsci.c
244
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/rsci.c
267
baud = uart_get_baud_rate(port, termios, old, 0, max_freq);
drivers/tty/serial/rsci.c
289
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/rsci.c
312
if ((port->flags & UPF_HARD_FLOW) && (termios->c_cflag & CRTSCTS)) {
drivers/tty/serial/rsci.c
317
rsci_init_pins(port, termios->c_cflag);
drivers/tty/serial/rsci.c
324
if ((termios->c_cflag & CREAD) != 0)
drivers/tty/serial/rsci.c
330
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/sa1100.c
386
sa1100_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sa1100.c
398
while ((termios->c_cflag & CSIZE) != CS7 &&
drivers/tty/serial/sa1100.c
399
(termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/sa1100.c
400
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sa1100.c
401
termios->c_cflag |= old_csize;
drivers/tty/serial/sa1100.c
405
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/sa1100.c
410
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sa1100.c
412
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sa1100.c
414
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/sa1100.c
421
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
drivers/tty/serial/sa1100.c
430
if (termios->c_iflag & INPCK)
drivers/tty/serial/sa1100.c
433
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/sa1100.c
441
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sa1100.c
444
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/sa1100.c
451
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sa1100.c
459
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sa1100.c
485
if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
drivers/tty/serial/samsung_tty.c
1472
struct ktermios *termios,
drivers/tty/serial/samsung_tty.c
1487
termios->c_cflag &= ~(HUPCL | CMSPAR);
drivers/tty/serial/samsung_tty.c
1488
termios->c_cflag |= CLOCAL;
drivers/tty/serial/samsung_tty.c
1494
baud = uart_get_baud_rate(port, termios, old, 0, 3000000);
drivers/tty/serial/samsung_tty.c
1530
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/samsung_tty.c
1553
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/samsung_tty.c
1556
if (termios->c_cflag & PARENB) {
drivers/tty/serial/samsung_tty.c
1557
if (termios->c_cflag & PARODD)
drivers/tty/serial/samsung_tty.c
1577
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/samsung_tty.c
1599
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/samsung_tty.c
1605
if (termios->c_iflag & INPCK)
drivers/tty/serial/samsung_tty.c
1612
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/samsung_tty.c
1614
if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR)
drivers/tty/serial/samsung_tty.c
1620
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/sb1250-duart.c
534
static void sbd_set_termios(struct uart_port *uport, struct ktermios *termios,
drivers/tty/serial/sb1250-duart.c
550
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sb1250-duart.c
566
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sb1250-duart.c
570
if (termios->c_cflag & PARENB)
drivers/tty/serial/sb1250-duart.c
574
if (termios->c_cflag & PARODD)
drivers/tty/serial/sb1250-duart.c
579
baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000);
drivers/tty/serial/sb1250-duart.c
585
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/sb1250-duart.c
588
if (termios->c_iflag & INPCK)
drivers/tty/serial/sb1250-duart.c
591
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/sb1250-duart.c
595
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sb1250-duart.c
598
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/sb1250-duart.c
600
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sb1250-duart.c
604
if (termios->c_cflag & CREAD)
drivers/tty/serial/sb1250-duart.c
609
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/sc16is7xx.c
1009
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sc16is7xx.c
1010
termios->c_cflag |= CS8;
drivers/tty/serial/sc16is7xx.c
1015
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sc16is7xx.c
1017
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/sc16is7xx.c
1022
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sc16is7xx.c
1027
if (termios->c_iflag & INPCK)
drivers/tty/serial/sc16is7xx.c
1030
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/sc16is7xx.c
1035
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/sc16is7xx.c
1037
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/sc16is7xx.c
1042
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/sc16is7xx.c
1047
if (termios->c_iflag & IXON)
drivers/tty/serial/sc16is7xx.c
1049
if (termios->c_iflag & IXOFF)
drivers/tty/serial/sc16is7xx.c
1057
sc16is7xx_port_write(port, SC16IS7XX_XON1_REG, termios->c_cc[VSTART]);
drivers/tty/serial/sc16is7xx.c
1058
sc16is7xx_port_write(port, SC16IS7XX_XOFF1_REG, termios->c_cc[VSTOP]);
drivers/tty/serial/sc16is7xx.c
1064
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/sc16is7xx.c
1074
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sc16is7xx.c
1076
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/sc16is7xx.c
1082
static int sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sc16is7xx.c
980
struct ktermios *termios,
drivers/tty/serial/sc16is7xx.c
991
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/sc16is7xx.c
994
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sccnxp.c
641
struct ktermios *termios,
drivers/tty/serial/sccnxp.c
652
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/sccnxp.c
662
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sccnxp.c
679
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sccnxp.c
680
if (termios->c_cflag & PARODD)
drivers/tty/serial/sccnxp.c
686
mr2 = (termios->c_cflag & CSTOPB) ? MR2_STOP2 : MR2_STOP1;
drivers/tty/serial/sccnxp.c
695
if (termios->c_iflag & INPCK)
drivers/tty/serial/sccnxp.c
697
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/sccnxp.c
702
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/sccnxp.c
704
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sccnxp.c
706
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/sccnxp.c
710
baud = uart_get_baud_rate(port, termios, old, 50,
drivers/tty/serial/sccnxp.c
716
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sccnxp.c
719
if (tty_termios_baud_rate(termios))
drivers/tty/serial/sccnxp.c
720
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/serial-tegra.c
1286
struct ktermios *termios,
drivers/tty/serial/serial-tegra.c
1317
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/serial-tegra.c
1319
if ((termios->c_cflag & PARENB) == PARENB) {
drivers/tty/serial/serial-tegra.c
1320
if (termios->c_cflag & PARODD) {
drivers/tty/serial/serial-tegra.c
1331
char_bits = tty_get_char_size(termios->c_cflag);
drivers/tty/serial/serial-tegra.c
1336
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/serial-tegra.c
1343
tup->symb_bit = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/serial-tegra.c
1346
baud = uart_get_baud_rate(u, termios, oldtermios,
drivers/tty/serial/serial-tegra.c
1355
if (tty_termios_baud_rate(termios))
drivers/tty/serial/serial-tegra.c
1356
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/serial-tegra.c
1360
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/serial-tegra.c
1374
uart_update_timeout(u, termios->c_cflag, baud);
drivers/tty/serial/serial-tegra.c
1385
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/serial-tegra.c
1387
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/serial_core.c
1477
ret = port->rs485_config(port, &tty->termios, &rs485);
drivers/tty/serial/serial_core.c
1637
uport->ops->set_ldisc(uport, &tty->termios);
drivers/tty/serial/serial_core.c
1645
unsigned int cflag = tty->termios.c_cflag;
drivers/tty/serial/serial_core.c
1662
tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] ||
drivers/tty/serial/serial_core.c
1663
tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP];
drivers/tty/serial/serial_core.c
1673
tty->termios.c_ospeed == old_termios->c_ospeed &&
drivers/tty/serial/serial_core.c
1674
tty->termios.c_ispeed == old_termios->c_ispeed &&
drivers/tty/serial/serial_core.c
1675
((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 &&
drivers/tty/serial/serial_core.c
1681
cflag = tty->termios.c_cflag;
drivers/tty/serial/serial_core.c
205
struct ktermios *termios;
drivers/tty/serial/serial_core.c
215
termios = &tty->termios;
drivers/tty/serial/serial_core.c
216
uport->ops->set_termios(uport, termios, old_termios);
drivers/tty/serial/serial_core.c
2196
struct ktermios termios;
drivers/tty/serial/serial_core.c
2209
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/serial_core.c
2211
termios.c_cflag |= CREAD | HUPCL | CLOCAL;
drivers/tty/serial/serial_core.c
2212
tty_termios_encode_baud_rate(&termios, baud, baud);
drivers/tty/serial/serial_core.c
2215
termios.c_cflag |= CS7;
drivers/tty/serial/serial_core.c
2217
termios.c_cflag |= CS8;
drivers/tty/serial/serial_core.c
222
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/serial_core.c
2221
termios.c_cflag |= PARODD;
drivers/tty/serial/serial_core.c
2224
termios.c_cflag |= PARENB;
drivers/tty/serial/serial_core.c
2229
termios.c_cflag |= CRTSCTS;
drivers/tty/serial/serial_core.c
2237
port->ops->set_termios(port, &termios, &dummy);
drivers/tty/serial/serial_core.c
2243
co->cflag = termios.c_cflag;
drivers/tty/serial/serial_core.c
2244
co->ispeed = termios.c_ispeed;
drivers/tty/serial/serial_core.c
2245
co->ospeed = termios.c_ospeed;
drivers/tty/serial/serial_core.c
227
if (termios->c_cflag & CLOCAL)
drivers/tty/serial/serial_core.c
2371
struct ktermios termios;
drivers/tty/serial/serial_core.c
2392
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/serial_core.c
2393
termios.c_cflag = uport->cons->cflag;
drivers/tty/serial/serial_core.c
2394
termios.c_ispeed = uport->cons->ispeed;
drivers/tty/serial/serial_core.c
2395
termios.c_ospeed = uport->cons->ospeed;
drivers/tty/serial/serial_core.c
2400
if (port->tty && termios.c_cflag == 0)
drivers/tty/serial/serial_core.c
2401
termios = port->tty->termios;
drivers/tty/serial/serial_core.c
2405
uport->ops->set_termios(uport, &termios, NULL);
drivers/tty/serial/serial_core.c
324
tty->termios.c_cflag = uport->cons->cflag;
drivers/tty/serial/serial_core.c
325
tty->termios.c_ispeed = uport->cons->ispeed;
drivers/tty/serial/serial_core.c
326
tty->termios.c_ospeed = uport->cons->ospeed;
drivers/tty/serial/serial_core.c
410
uport->cons->cflag = tty->termios.c_cflag;
drivers/tty/serial/serial_core.c
411
uport->cons->ispeed = tty->termios.c_ispeed;
drivers/tty/serial/serial_core.c
412
uport->cons->ospeed = tty->termios.c_ospeed;
drivers/tty/serial/serial_core.c
477
uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/serial_core.c
505
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/serial_core.c
529
termios->c_cflag &= ~CBAUD;
drivers/tty/serial/serial_core.c
533
tty_termios_encode_baud_rate(termios,
drivers/tty/serial/serial_core.c
545
tty_termios_encode_baud_rate(termios,
drivers/tty/serial/serial_core.c
548
tty_termios_encode_baud_rate(termios,
drivers/tty/serial/serial_txx9.c
574
serial_txx9_set_termios(struct uart_port *up, struct ktermios *termios,
drivers/tty/serial/serial_txx9.c
584
termios->c_cflag &= ~(HUPCL | CMSPAR);
drivers/tty/serial/serial_txx9.c
585
termios->c_cflag |= CLOCAL;
drivers/tty/serial/serial_txx9.c
590
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/serial_txx9.c
599
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/serial_txx9.c
600
termios->c_cflag |= CS8;
drivers/tty/serial/serial_txx9.c
605
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/serial_txx9.c
610
if (termios->c_cflag & PARENB)
drivers/tty/serial/serial_txx9.c
612
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/serial_txx9.c
618
baud = uart_get_baud_rate(up, termios, old, 0, up->uartclk/16/2);
drivers/tty/serial/serial_txx9.c
634
uart_update_timeout(up, termios->c_cflag, baud);
drivers/tty/serial/serial_txx9.c
638
if (termios->c_iflag & INPCK)
drivers/tty/serial/serial_txx9.c
640
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/serial_txx9.c
647
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/serial_txx9.c
649
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/serial_txx9.c
655
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/serial_txx9.c
662
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/serial_txx9.c
666
if ((termios->c_cflag & CRTSCTS) &&
drivers/tty/serial/sh-sci.c
2678
static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sh-sci.c
2691
if ((termios->c_cflag & CSIZE) == CS7) {
drivers/tty/serial/sh-sci.c
2694
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sh-sci.c
2695
termios->c_cflag |= CS8;
drivers/tty/serial/sh-sci.c
2697
if (termios->c_cflag & PARENB)
drivers/tty/serial/sh-sci.c
2699
if (termios->c_cflag & PARODD)
drivers/tty/serial/sh-sci.c
2701
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sh-sci.c
2713
baud = uart_get_baud_rate(port, termios, old, 0, 115200);
drivers/tty/serial/sh-sci.c
2720
baud = uart_get_baud_rate(port, termios, old, 0, max_freq / min_sr(s));
drivers/tty/serial/sh-sci.c
2807
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sh-sci.c
2810
bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/sh-sci.c
2866
sci_init_pins(port, termios->c_cflag);
drivers/tty/serial/sh-sci.c
2875
(termios->c_cflag & CRTSCTS)) {
drivers/tty/serial/sh-sci.c
2922
if ((termios->c_cflag & CREAD) != 0)
drivers/tty/serial/sh-sci.c
2929
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/sifive.c
636
struct ktermios *termios,
drivers/tty/serial/sifive.c
645
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/sifive.c
647
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sifive.c
648
termios->c_cflag |= CS8;
drivers/tty/serial/sifive.c
650
if (termios->c_iflag & (INPCK | PARMRK))
drivers/tty/serial/sifive.c
652
if (termios->c_iflag & BRKINT)
drivers/tty/serial/sifive.c
654
termios->c_iflag &= ~(INPCK|PARMRK|BRKINT);
drivers/tty/serial/sifive.c
657
nstop = (termios->c_cflag & CSTOPB) ? 2 : 1;
drivers/tty/serial/sifive.c
661
rate = uart_get_baud_rate(port, termios, old, 0,
drivers/tty/serial/sifive.c
668
uart_update_timeout(port, termios->c_cflag, rate);
drivers/tty/serial/sifive.c
675
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/sprd_serial.c
773
static void sprd_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sprd_serial.c
781
baud = uart_get_baud_rate(port, termios, old, 0, SPRD_BAUD_IO_LIMIT);
drivers/tty/serial/sprd_serial.c
786
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sprd_serial.c
804
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sprd_serial.c
811
termios->c_cflag &= ~CMSPAR; /* no support mark/space */
drivers/tty/serial/sprd_serial.c
812
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sprd_serial.c
814
if (termios->c_cflag & PARODD)
drivers/tty/serial/sprd_serial.c
823
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sprd_serial.c
826
if (termios->c_iflag & INPCK)
drivers/tty/serial/sprd_serial.c
828
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/sprd_serial.c
833
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sprd_serial.c
835
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/sprd_serial.c
841
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sprd_serial.c
848
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/sprd_serial.c
867
if (tty_termios_baud_rate(termios))
drivers/tty/serial/sprd_serial.c
868
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/st-asc.c
464
static void asc_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/st-asc.c
476
termios->c_cflag &= ~(CMSPAR |
drivers/tty/serial/st-asc.c
481
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
drivers/tty/serial/st-asc.c
482
cflag = termios->c_cflag;
drivers/tty/serial/st-asc.c
507
termios->c_cflag = cflag;
drivers/tty/serial/st-asc.c
553
if (termios->c_iflag & INPCK)
drivers/tty/serial/st-asc.c
555
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/st-asc.c
562
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/st-asc.c
564
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/st-asc.c
570
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/st-asc.c
577
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/stm32-usart.c
1152
struct ktermios *termios,
drivers/tty/serial/stm32-usart.c
1161
tcflag_t cflag = termios->c_cflag;
drivers/tty/serial/stm32-usart.c
1171
baud = uart_get_baud_rate(port, termios, old, 0, uart_clk / 8);
drivers/tty/serial/stm32-usart.c
1234
termios->c_cflag = cflag;
drivers/tty/serial/stm32-usart.c
1319
if (termios->c_iflag & INPCK)
drivers/tty/serial/stm32-usart.c
1321
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/stm32-usart.c
1326
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/stm32-usart.c
1328
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/stm32-usart.c
1334
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/stm32-usart.c
1339
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/stm32-usart.c
1388
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/stm32-usart.c
222
static int stm32_usart_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sunhv.c
328
static void sunhv_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sunhv.c
331
unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
drivers/tty/serial/sunhv.c
338
iflag = termios->c_iflag;
drivers/tty/serial/sunhv.c
339
cflag = termios->c_cflag;
drivers/tty/serial/sunplus-uart.c
335
struct ktermios *termios,
drivers/tty/serial/sunplus-uart.c
342
baud = uart_get_baud_rate(port, termios, oldtermios, 0, port->uartclk / 16);
drivers/tty/serial/sunplus-uart.c
352
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sunplus-uart.c
367
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sunplus-uart.c
370
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sunplus-uart.c
373
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/sunplus-uart.c
379
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sunplus-uart.c
382
if (termios->c_iflag & INPCK)
drivers/tty/serial/sunplus-uart.c
385
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/sunplus-uart.c
390
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sunplus-uart.c
393
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/sunplus-uart.c
396
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sunplus-uart.c
401
if ((termios->c_cflag & CREAD) == 0) {
drivers/tty/serial/sunplus-uart.c
415
static void sunplus_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/sunplus-uart.c
417
int new = termios->c_line;
drivers/tty/serial/sunsab.c
775
static void sunsab_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sunsab.c
781
unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
drivers/tty/serial/sunsab.c
785
sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
drivers/tty/serial/sunsu.c
1310
struct ktermios termios;
drivers/tty/serial/sunsu.c
1328
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/sunsu.c
1329
termios.c_cflag = co->cflag;
drivers/tty/serial/sunsu.c
1331
port->ops->set_termios(port, &termios, &dummy);
drivers/tty/serial/sunsu.c
875
sunsu_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sunsu.c
883
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
drivers/tty/serial/sunsu.c
886
sunsu_change_speed(port, termios->c_cflag, termios->c_iflag, quot);
drivers/tty/serial/sunzilog.c
937
sunzilog_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sunzilog.c
945
baud = uart_get_baud_rate(port, termios, old, 1200, 76800);
drivers/tty/serial/sunzilog.c
951
sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
drivers/tty/serial/sunzilog.c
953
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/sunzilog.c
958
up->cflag = termios->c_cflag;
drivers/tty/serial/sunzilog.c
962
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/tegra-utc.c
296
static void tegra_utc_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/tegra-utc.c
300
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
drivers/tty/serial/tegra-utc.c
301
termios->c_cflag &= ~(CMSPAR | CRTSCTS);
drivers/tty/serial/tegra-utc.c
302
termios->c_cflag |= CS8 | CLOCAL;
drivers/tty/serial/timbuart.c
274
struct ktermios *termios,
drivers/tty/serial/timbuart.c
281
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/timbuart.c
292
tty_termios_copy_hw(termios, old);
drivers/tty/serial/timbuart.c
293
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/timbuart.c
297
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/uartlite.c
322
struct ktermios *termios,
drivers/tty/serial/uartlite.c
329
termios->c_iflag &= ~BRKINT;
drivers/tty/serial/uartlite.c
330
termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CSIZE);
drivers/tty/serial/uartlite.c
331
termios->c_cflag |= pdata->cflags & (PARENB | PARODD | CSIZE);
drivers/tty/serial/uartlite.c
332
tty_termios_encode_baud_rate(termios, pdata->baud, pdata->baud);
drivers/tty/serial/uartlite.c
339
if (termios->c_iflag & INPCK)
drivers/tty/serial/uartlite.c
344
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/uartlite.c
349
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/uartlite.c
355
uart_update_timeout(port, termios->c_cflag, pdata->baud);
drivers/tty/serial/ucc_uart.c
838
struct ktermios *termios,
drivers/tty/serial/ucc_uart.c
854
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/ucc_uart.c
874
if (termios->c_cflag & CSTOPB) {
drivers/tty/serial/ucc_uart.c
879
if (termios->c_cflag & PARENB) {
drivers/tty/serial/ucc_uart.c
883
if (!(termios->c_cflag & PARODD)) {
drivers/tty/serial/ucc_uart.c
899
if (termios->c_iflag & INPCK)
drivers/tty/serial/ucc_uart.c
901
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/ucc_uart.c
908
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/ucc_uart.c
910
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/ucc_uart.c
916
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/ucc_uart.c
922
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/ucc_uart.c
925
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/ucc_uart.c
931
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/ucc_uart.c
936
iowrite8(tty_get_frame_size(termios->c_cflag), &uccup->rx_length);
drivers/tty/serial/vt8500_serial.c
336
struct ktermios *termios,
drivers/tty/serial/vt8500_serial.c
348
baud = uart_get_baud_rate(port, termios, old, 900, 921600);
drivers/tty/serial/vt8500_serial.c
350
if (tty_termios_baud_rate(termios))
drivers/tty/serial/vt8500_serial.c
351
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/vt8500_serial.c
356
if (termios->c_cflag & PARENB) {
drivers/tty/serial/vt8500_serial.c
358
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/vt8500_serial.c
359
if (termios->c_cflag & PARODD)
drivers/tty/serial/vt8500_serial.c
365
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/vt8500_serial.c
371
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/vt8500_serial.c
372
termios->c_cflag |= CS8;
drivers/tty/serial/vt8500_serial.c
378
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/vt8500_serial.c
390
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/vt8500_serial.c
393
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/vt8500_serial.c
407
if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag))
drivers/tty/serial/xilinx_uartps.c
1611
static int cdns_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/xilinx_uartps.c
813
struct ktermios *termios,
drivers/tty/serial/xilinx_uartps.c
836
baud = uart_get_baud_rate(port, termios, old, minbaud, maxbaud);
drivers/tty/serial/xilinx_uartps.c
838
if (tty_termios_baud_rate(termios))
drivers/tty/serial/xilinx_uartps.c
839
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/xilinx_uartps.c
842
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/xilinx_uartps.c
868
if (termios->c_iflag & INPCK)
drivers/tty/serial/xilinx_uartps.c
872
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/xilinx_uartps.c
877
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/xilinx_uartps.c
885
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/xilinx_uartps.c
895
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/xilinx_uartps.c
896
termios->c_cflag |= CS8;
drivers/tty/serial/xilinx_uartps.c
901
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/xilinx_uartps.c
906
if (termios->c_cflag & PARENB) {
drivers/tty/serial/xilinx_uartps.c
908
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/xilinx_uartps.c
909
if (termios->c_cflag & PARODD)
drivers/tty/serial/xilinx_uartps.c
914
if (termios->c_cflag & PARODD)
drivers/tty/serial/xilinx_uartps.c
926
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/zs.c
849
static void zs_set_termios(struct uart_port *uport, struct ktermios *termios,
drivers/tty/serial/zs.c
865
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/zs.c
887
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/zs.c
891
if (termios->c_cflag & PARENB)
drivers/tty/serial/zs.c
893
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/zs.c
912
baud = uart_get_baud_rate(uport, termios, old_termios, 0,
drivers/tty/serial/zs.c
919
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/zs.c
922
if (termios->c_iflag & INPCK)
drivers/tty/serial/zs.c
924
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/zs.c
928
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/zs.c
930
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/zs.c
932
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/zs.c
936
if (termios->c_cflag & CREAD)
drivers/tty/serial/zs.c
942
if (!(termios->c_cflag & CLOCAL)) {
drivers/tty/serial/zs.c
946
if (termios->c_cflag & CRTSCTS) {
drivers/tty/synclink_gt.c
2391
if (!info->port.tty || info->port.tty->termios.c_cflag & HUPCL) {
drivers/tty/synclink_gt.c
2432
(info->port.tty && info->port.tty->termios.c_cflag & CREAD))
drivers/tty/synclink_gt.c
2450
cflag = info->port.tty->termios.c_cflag;
drivers/tty/tty.h
83
speed_t tty_termios_input_baud_rate(const struct ktermios *termios);
drivers/tty/tty_baudrate.c
129
void tty_termios_encode_baud_rate(struct ktermios *termios,
drivers/tty/tty_baudrate.c
140
termios->c_ispeed = ibaud;
drivers/tty/tty_baudrate.c
141
termios->c_ospeed = obaud;
drivers/tty/tty_baudrate.c
143
if (((termios->c_cflag >> IBSHIFT) & CBAUD) != B0)
drivers/tty/tty_baudrate.c
151
if ((termios->c_cflag & CBAUD) == BOTHER) {
drivers/tty/tty_baudrate.c
156
if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER)
drivers/tty/tty_baudrate.c
159
termios->c_cflag &= ~CBAUD;
drivers/tty/tty_baudrate.c
160
termios->c_cflag &= ~(CBAUD << IBSHIFT);
drivers/tty/tty_baudrate.c
172
termios->c_cflag |= baud_bits[i];
drivers/tty/tty_baudrate.c
184
termios->c_cflag |= (baud_bits[i] << IBSHIFT);
drivers/tty/tty_baudrate.c
191
termios->c_cflag |= BOTHER;
drivers/tty/tty_baudrate.c
196
termios->c_cflag |= (BOTHER << IBSHIFT);
drivers/tty/tty_baudrate.c
213
tty_termios_encode_baud_rate(&tty->termios, ibaud, obaud);
drivers/tty/tty_baudrate.c
58
speed_t tty_termios_baud_rate(const struct ktermios *termios)
drivers/tty/tty_baudrate.c
62
cbaud = termios->c_cflag & CBAUD;
drivers/tty/tty_baudrate.c
66
return termios->c_ospeed;
drivers/tty/tty_baudrate.c
88
speed_t tty_termios_input_baud_rate(const struct ktermios *termios)
drivers/tty/tty_baudrate.c
90
unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD;
drivers/tty/tty_baudrate.c
93
return tty_termios_baud_rate(termios);
drivers/tty/tty_baudrate.c
97
return termios->c_ispeed;
drivers/tty/tty_io.c
1247
tty->termios = tty->driver->init_termios;
drivers/tty/tty_io.c
1250
tp = tty->driver->termios[idx];
drivers/tty/tty_io.c
1252
tty->termios = *tp;
drivers/tty/tty_io.c
1253
tty->termios.c_line = tty->driver->init_termios.c_line;
drivers/tty/tty_io.c
1255
tty->termios = tty->driver->init_termios;
drivers/tty/tty_io.c
1258
tty->termios.c_ispeed = tty_termios_input_baud_rate(&tty->termios);
drivers/tty/tty_io.c
1259
tty->termios.c_ospeed = tty_termios_baud_rate(&tty->termios);
drivers/tty/tty_io.c
1351
retval = tty_ldisc_reinit(tty, tty->termios.c_line);
drivers/tty/tty_io.c
1472
tp = tty->driver->termios[idx];
drivers/tty/tty_io.c
1477
tty->driver->termios[idx] = tp;
drivers/tty/tty_io.c
1479
*tp = tty->termios;
drivers/tty/tty_io.c
3270
tp = driver->termios[index];
drivers/tty/tty_io.c
3272
driver->termios[index] = NULL;
drivers/tty/tty_io.c
3347
driver->termios = kzalloc_objs(*driver->termios, lines);
drivers/tty/tty_io.c
3348
if (!driver->ttys || !driver->termios) {
drivers/tty/tty_io.c
3373
kfree(driver->termios);
drivers/tty/tty_io.c
3388
tp = driver->termios[i];
drivers/tty/tty_io.c
3390
driver->termios[i] = NULL;
drivers/tty/tty_io.c
3402
kfree(driver->termios);
drivers/tty/tty_ioctl.c
204
struct ktermios *termios = &tty->termios;
drivers/tty/tty_ioctl.c
210
NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag);
drivers/tty/tty_ioctl.c
211
NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag);
drivers/tty/tty_ioctl.c
212
NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag);
drivers/tty/tty_ioctl.c
213
NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag);
drivers/tty/tty_ioctl.c
214
termios->c_line = locked->c_line ? old->c_line : termios->c_line;
drivers/tty/tty_ioctl.c
216
termios->c_cc[i] = locked->c_cc[i] ?
drivers/tty/tty_ioctl.c
217
old->c_cc[i] : termios->c_cc[i];
drivers/tty/tty_ioctl.c
334
old_termios = tty->termios;
drivers/tty/tty_ioctl.c
335
tty->termios = *new_termios;
drivers/tty/tty_ioctl.c
338
tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB;
drivers/tty/tty_ioctl.c
343
tty_termios_copy_hw(&tty->termios, &old_termios);
drivers/tty/tty_ioctl.c
360
__weak int user_termio_to_kernel_termios(struct ktermios *termios,
drivers/tty/tty_ioctl.c
368
termios->c_iflag = (0xffff0000 & termios->c_iflag) | v.c_iflag;
drivers/tty/tty_ioctl.c
369
termios->c_oflag = (0xffff0000 & termios->c_oflag) | v.c_oflag;
drivers/tty/tty_ioctl.c
370
termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag;
drivers/tty/tty_ioctl.c
371
termios->c_lflag = (0xffff0000 & termios->c_lflag) | v.c_lflag;
drivers/tty/tty_ioctl.c
372
termios->c_line = (0xffff0000 & termios->c_lflag) | v.c_line;
drivers/tty/tty_ioctl.c
373
memcpy(termios->c_cc, v.c_cc, NCC);
drivers/tty/tty_ioctl.c
381
struct ktermios *termios)
drivers/tty/tty_ioctl.c
385
v.c_iflag = termios->c_iflag;
drivers/tty/tty_ioctl.c
386
v.c_oflag = termios->c_oflag;
drivers/tty/tty_ioctl.c
387
v.c_cflag = termios->c_cflag;
drivers/tty/tty_ioctl.c
388
v.c_lflag = termios->c_lflag;
drivers/tty/tty_ioctl.c
389
v.c_line = termios->c_line;
drivers/tty/tty_ioctl.c
390
memcpy(v.c_cc, termios->c_cc, NCC);
drivers/tty/tty_ioctl.c
406
struct termios __user *u)
drivers/tty/tty_ioctl.c
408
return copy_from_user(k, u, sizeof(struct termios));
drivers/tty/tty_ioctl.c
410
__weak int kernel_termios_to_user_termios_1(struct termios __user *u,
drivers/tty/tty_ioctl.c
413
return copy_to_user(u, k, sizeof(struct termios));
drivers/tty/tty_ioctl.c
419
struct termios __user *u)
drivers/tty/tty_ioctl.c
421
return copy_from_user(k, u, sizeof(struct termios));
drivers/tty/tty_ioctl.c
423
__weak int kernel_termios_to_user_termios(struct termios __user *u,
drivers/tty/tty_ioctl.c
426
return copy_to_user(u, k, sizeof(struct termios));
drivers/tty/tty_ioctl.c
454
tmp_termios = tty->termios;
drivers/tty/tty_ioctl.c
464
(struct termios __user *)arg))
drivers/tty/tty_ioctl.c
473
(struct termios __user *)arg))
drivers/tty/tty_ioctl.c
529
*kterm = tty->termios;
drivers/tty/tty_ioctl.c
578
tmp.sg_ispeed = tty->termios.c_ispeed;
drivers/tty/tty_ioctl.c
579
tmp.sg_ospeed = tty->termios.c_ospeed;
drivers/tty/tty_ioctl.c
580
tmp.sg_erase = tty->termios.c_cc[VERASE];
drivers/tty/tty_ioctl.c
581
tmp.sg_kill = tty->termios.c_cc[VKILL];
drivers/tty/tty_ioctl.c
588
static void set_sgflags(struct ktermios *termios, int flags)
drivers/tty/tty_ioctl.c
590
termios->c_iflag = ICRNL | IXON;
drivers/tty/tty_ioctl.c
591
termios->c_oflag = 0;
drivers/tty/tty_ioctl.c
592
termios->c_lflag = ISIG | ICANON;
drivers/tty/tty_ioctl.c
594
termios->c_iflag = 0;
drivers/tty/tty_ioctl.c
595
termios->c_lflag &= ~ICANON;
drivers/tty/tty_ioctl.c
598
termios->c_lflag |= ECHO | ECHOE | ECHOK |
drivers/tty/tty_ioctl.c
602
termios->c_oflag |= OPOST | ONLCR;
drivers/tty/tty_ioctl.c
605
termios->c_iflag = 0;
drivers/tty/tty_ioctl.c
606
termios->c_lflag &= ~(ISIG | ICANON);
drivers/tty/tty_ioctl.c
608
if (!(termios->c_lflag & ICANON)) {
drivers/tty/tty_ioctl.c
609
termios->c_cc[VMIN] = 1;
drivers/tty/tty_ioctl.c
610
termios->c_cc[VTIME] = 0;
drivers/tty/tty_ioctl.c
629
struct ktermios termios;
drivers/tty/tty_ioctl.c
639
termios = tty->termios;
drivers/tty/tty_ioctl.c
640
termios.c_cc[VERASE] = tmp.sg_erase;
drivers/tty/tty_ioctl.c
641
termios.c_cc[VKILL] = tmp.sg_kill;
drivers/tty/tty_ioctl.c
642
set_sgflags(&termios, tmp.sg_flags);
drivers/tty/tty_ioctl.c
644
tty_termios_encode_baud_rate(&termios, termios.c_ispeed,
drivers/tty/tty_ioctl.c
645
termios.c_ospeed);
drivers/tty/tty_ioctl.c
647
tty_set_termios(tty, &termios);
drivers/tty/tty_ioctl.c
658
tmp.t_intrc = tty->termios.c_cc[VINTR];
drivers/tty/tty_ioctl.c
659
tmp.t_quitc = tty->termios.c_cc[VQUIT];
drivers/tty/tty_ioctl.c
660
tmp.t_startc = tty->termios.c_cc[VSTART];
drivers/tty/tty_ioctl.c
661
tmp.t_stopc = tty->termios.c_cc[VSTOP];
drivers/tty/tty_ioctl.c
662
tmp.t_eofc = tty->termios.c_cc[VEOF];
drivers/tty/tty_ioctl.c
663
tmp.t_brkc = tty->termios.c_cc[VEOL2]; /* what is brkc anyway? */
drivers/tty/tty_ioctl.c
675
tty->termios.c_cc[VINTR] = tmp.t_intrc;
drivers/tty/tty_ioctl.c
676
tty->termios.c_cc[VQUIT] = tmp.t_quitc;
drivers/tty/tty_ioctl.c
677
tty->termios.c_cc[VSTART] = tmp.t_startc;
drivers/tty/tty_ioctl.c
678
tty->termios.c_cc[VSTOP] = tmp.t_stopc;
drivers/tty/tty_ioctl.c
679
tty->termios.c_cc[VEOF] = tmp.t_eofc;
drivers/tty/tty_ioctl.c
680
tty->termios.c_cc[VEOL2] = tmp.t_brkc; /* what is brkc anyway? */
drivers/tty/tty_ioctl.c
692
tmp.t_suspc = tty->termios.c_cc[VSUSP];
drivers/tty/tty_ioctl.c
694
tmp.t_dsuspc = tty->termios.c_cc[VSUSP];
drivers/tty/tty_ioctl.c
695
tmp.t_rprntc = tty->termios.c_cc[VREPRINT];
drivers/tty/tty_ioctl.c
697
tmp.t_flushc = tty->termios.c_cc[VEOL2];
drivers/tty/tty_ioctl.c
698
tmp.t_werasc = tty->termios.c_cc[VWERASE];
drivers/tty/tty_ioctl.c
699
tmp.t_lnextc = tty->termios.c_cc[VLNEXT];
drivers/tty/tty_ioctl.c
712
tty->termios.c_cc[VSUSP] = tmp.t_suspc;
drivers/tty/tty_ioctl.c
714
tty->termios.c_cc[VEOL2] = tmp.t_dsuspc;
drivers/tty/tty_ioctl.c
715
tty->termios.c_cc[VREPRINT] = tmp.t_rprntc;
drivers/tty/tty_ioctl.c
717
tty->termios.c_cc[VEOL2] = tmp.t_flushc;
drivers/tty/tty_ioctl.c
718
tty->termios.c_cc[VWERASE] = tmp.t_werasc;
drivers/tty/tty_ioctl.c
719
tty->termios.c_cc[VLNEXT] = tmp.t_lnextc;
drivers/tty/tty_ioctl.c
744
old = tty->termios;
drivers/tty/tty_ioctl.c
745
tty->termios.c_cflag &= ~CLOCAL;
drivers/tty/tty_ioctl.c
746
tty->termios.c_cflag |= bit;
drivers/tty/tty_ioctl.c
807
if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
drivers/tty/tty_ioctl.c
813
if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
drivers/tty/tty_ioctl.c
839
if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
drivers/tty/tty_ioctl.c
847
(struct termios __user *) arg))
drivers/tty/tty_ioctl.c
856
if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
drivers/tty/tty_ioctl.c
864
(struct termios __user *) arg))
drivers/tty/tty_ldisc.c
410
tty->termios.c_line = disc;
drivers/tty/tty_ldisc.c
628
tty->termios = tty->driver->init_termios;
drivers/tty/tty_ldisc.c
629
tty->termios.c_ispeed = tty_termios_input_baud_rate(&tty->termios);
drivers/tty/tty_ldisc.c
630
tty->termios.c_ospeed = tty_termios_baud_rate(&tty->termios);
drivers/tty/tty_ldisc.c
725
if (tty_ldisc_reinit(tty, tty->termios.c_line) < 0 &&
drivers/tty/vt/vt.c
3690
tty->termios.c_iflag |= IUTF8;
drivers/tty/vt/vt.c
3692
tty->termios.c_iflag &= ~IUTF8;
drivers/usb/class/cdc-acm.c
1095
struct ktermios *termios = &tty->termios;
drivers/usb/class/cdc-acm.c
1100
newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0;
drivers/usb/class/cdc-acm.c
1101
newline.bParityType = termios->c_cflag & PARENB ?
drivers/usb/class/cdc-acm.c
1102
(termios->c_cflag & PARODD ? 1 : 2) +
drivers/usb/class/cdc-acm.c
1103
(termios->c_cflag & CMSPAR ? 2 : 0) : 0;
drivers/usb/class/cdc-acm.c
1104
newline.bDataBits = tty_get_char_size(termios->c_cflag);
drivers/usb/class/cdc-acm.c
1107
acm->clocal = ((termios->c_cflag & CLOCAL) != 0);
drivers/usb/class/cdc-acm.c
658
tty->termios.c_lflag &= ~ECHO;
drivers/usb/serial/ark3116.c
196
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ark3116.c
197
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/ark3116.c
292
if (tty_termios_baud_rate(termios))
drivers/usb/serial/ark3116.c
293
tty_termios_encode_baud_rate(termios, bps, bps);
drivers/usb/serial/belkin_sa.c
290
struct ktermios *termios = &tty->termios;
drivers/usb/serial/belkin_sa.c
292
iflag = termios->c_iflag;
drivers/usb/serial/belkin_sa.c
293
cflag = termios->c_cflag;
drivers/usb/serial/belkin_sa.c
295
termios->c_cflag &= ~CMSPAR;
drivers/usb/serial/ch341.c
502
tty->termios.c_cflag &= ~CRTSCTS;
drivers/usb/serial/ch341.c
503
tty->termios.c_cflag |= (old_termios->c_cflag & CRTSCTS);
drivers/usb/serial/ch341.c
521
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/ch341.c
561
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/console.c
163
tty->termios.c_cflag = cflag;
drivers/usb/serial/console.c
164
tty_termios_encode_baud_rate(&tty->termios, baud, baud);
drivers/usb/serial/cp210x.c
1059
if (tty->termios.c_ospeed == 0)
drivers/usb/serial/cp210x.c
1066
baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed);
drivers/usb/serial/cp210x.c
1153
tty->termios.c_cflag &= ~CRTSCTS;
drivers/usb/serial/cp210x.c
1154
tty->termios.c_iflag &= ~(IXON | IXOFF);
drivers/usb/serial/cp210x.c
1157
if (tty->termios.c_ospeed != 0 &&
drivers/usb/serial/cp210x.c
1183
if (tty->termios.c_ospeed == 0) {
drivers/usb/serial/cp210x.c
1263
if (old_termios && !cp210x_termios_change(&tty->termios, old_termios) &&
drivers/usb/serial/cp210x.c
1264
tty->termios.c_ospeed != 0)
drivers/usb/serial/cp210x.c
1267
if (!old_termios || tty->termios.c_ospeed != old_termios->c_ospeed)
drivers/usb/serial/cp210x.c
1272
tty->termios.c_cflag &= ~(CSIZE | CSTOPB | CMSPAR);
drivers/usb/serial/cp210x.c
1273
tty->termios.c_cflag |= CS8;
drivers/usb/serial/cypress_m8.c
872
tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS);
drivers/usb/serial/cypress_m8.c
874
cflag = tty->termios.c_cflag;
drivers/usb/serial/cypress_m8.c
922
tty->termios.c_iflag /* input modes - */
drivers/usb/serial/cypress_m8.c
932
tty->termios.c_oflag /* output modes */
drivers/usb/serial/cypress_m8.c
935
tty->termios.c_lflag /* line discipline modes */
drivers/usb/serial/digi_acceleport.c
1097
not_termios.c_cflag = ~tty->termios.c_cflag;
drivers/usb/serial/digi_acceleport.c
1098
not_termios.c_iflag = ~tty->termios.c_iflag;
drivers/usb/serial/digi_acceleport.c
656
unsigned int iflag = tty->termios.c_iflag;
drivers/usb/serial/digi_acceleport.c
657
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/digi_acceleport.c
718
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/empeg.c
100
termios->c_oflag
drivers/usb/serial/empeg.c
103
termios->c_lflag
drivers/usb/serial/empeg.c
110
termios->c_cflag
drivers/usb/serial/empeg.c
115
termios->c_cflag
drivers/usb/serial/empeg.c
79
struct ktermios *termios = &tty->termios;
drivers/usb/serial/empeg.c
90
termios->c_iflag
drivers/usb/serial/f81232.c
619
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/f81232.c
650
new_lcr |= UART_LCR_WLEN(tty_get_char_size(tty->termios.c_cflag));
drivers/usb/serial/f81534.c
977
new_lcr |= UART_LCR_WLEN(tty_get_char_size(tty->termios.c_cflag));
drivers/usb/serial/ftdi_sio.c
2581
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ftdi_sio.c
2588
if (priv->force_baud && ((termios->c_cflag & CBAUD) != B0)) {
drivers/usb/serial/ftdi_sio.c
2597
termios->c_cflag |= CRTSCTS;
drivers/usb/serial/ftdi_sio.c
2617
termios->c_cflag &= ~CSIZE;
drivers/usb/serial/ftdi_sio.c
2619
termios->c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/ftdi_sio.c
2621
termios->c_cflag |= CS8;
drivers/usb/serial/ftdi_sio.c
2624
cflag = termios->c_cflag;
drivers/usb/serial/ftdi_sio.c
2629
if (old_termios->c_cflag == termios->c_cflag
drivers/usb/serial/ftdi_sio.c
2630
&& old_termios->c_ispeed == termios->c_ispeed
drivers/usb/serial/ftdi_sio.c
2631
&& old_termios->c_ospeed == termios->c_ospeed)
drivers/usb/serial/ftdi_sio.c
2639
(termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)))
drivers/usb/serial/io_edgeport.c
1811
edge_port, &tty->termios);
drivers/usb/serial/io_edgeport.c
2355
cflag = tty->termios.c_cflag;
drivers/usb/serial/io_ti.c
1859
edge_set_termios(tty, port, &tty->termios);
drivers/usb/serial/io_ti.c
2223
tty->termios = *old_termios;
drivers/usb/serial/io_ti.c
2227
cflag = tty->termios.c_cflag;
drivers/usb/serial/io_ti.c
2312
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/ir-usb.c
436
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/iuu_phoenix.c
887
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/iuu_phoenix.c
896
baud = tty->termios.c_ospeed;
drivers/usb/serial/iuu_phoenix.c
927
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/iuu_phoenix.c
932
tty->termios.c_cflag &= ~(supported_mask|CSIZE);
drivers/usb/serial/iuu_phoenix.c
933
tty->termios.c_cflag |= newval | csize;
drivers/usb/serial/iuu_phoenix.c
950
tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
drivers/usb/serial/iuu_phoenix.c
951
tty->termios.c_ispeed = 9600;
drivers/usb/serial/iuu_phoenix.c
952
tty->termios.c_ospeed = 9600;
drivers/usb/serial/iuu_phoenix.c
953
tty->termios.c_lflag = 0;
drivers/usb/serial/iuu_phoenix.c
954
tty->termios.c_oflag = 0;
drivers/usb/serial/iuu_phoenix.c
955
tty->termios.c_iflag = 0;
drivers/usb/serial/iuu_phoenix.c
967
baud = tty->termios.c_ospeed;
drivers/usb/serial/keyspan.c
1547
cflag = tty->termios.c_cflag;
drivers/usb/serial/keyspan.c
632
cflag = tty->termios.c_cflag;
drivers/usb/serial/keyspan.c
653
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/keyspan_pda.c
367
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/kl5kusb105.c
373
unsigned int iflag = tty->termios.c_iflag;
drivers/usb/serial/kl5kusb105.c
375
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/kl5kusb105.c
466
tty->termios.c_cflag &= ~(PARENB|PARODD|CSTOPB);
drivers/usb/serial/kl5kusb105.c
476
tty->termios.c_cflag &= ~CRTSCTS;
drivers/usb/serial/kobil_sct.c
172
tty->termios.c_lflag = 0;
drivers/usb/serial/kobil_sct.c
173
tty->termios.c_iflag = IGNBRK | IGNPAR | IXOFF;
drivers/usb/serial/kobil_sct.c
175
tty->termios.c_oflag &= ~ONLCR;
drivers/usb/serial/kobil_sct.c
436
int c_cflag = tty->termios.c_cflag;
drivers/usb/serial/kobil_sct.c
444
tty_termios_copy_hw(&tty->termios, old);
drivers/usb/serial/kobil_sct.c
475
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/mct_u232.c
600
struct ktermios *termios = &tty->termios;
drivers/usb/serial/mct_u232.c
601
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/mct_u232.c
664
termios->c_cflag &= ~CMSPAR;
drivers/usb/serial/mos7720.c
1387
cflag = tty->termios.c_cflag;
drivers/usb/serial/mos7840.c
1195
cflag = tty->termios.c_cflag;
drivers/usb/serial/mxuport.c
848
!tty_termios_hw_change(&tty->termios, old_termios) &&
drivers/usb/serial/mxuport.c
849
tty->termios.c_iflag == old_termios->c_iflag) {
drivers/usb/serial/oti6858.c
408
cflag = tty->termios.c_cflag;
drivers/usb/serial/pl2303.c
838
if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
drivers/usb/serial/pl2303.c
845
tty->termios = *old_termios;
drivers/usb/serial/pl2303.c
851
buf[6] = tty_get_char_size(tty->termios.c_cflag);
drivers/usb/serial/quatech2.c
261
struct ktermios *termios = &tty->termios;
drivers/usb/serial/quatech2.c
263
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/quatech2.c
378
qt2_set_termios(tty, port, &tty->termios);
drivers/usb/serial/spcp8x5.c
282
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/spcp8x5.c
290
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/ssu100.c
221
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ssu100.c
223
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/ssu100.c
315
ssu100_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
679
ti_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
714
ti_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
926
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/upd78f0730.c
309
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/upd78f0730.c
329
tty->termios.c_cflag &= ~CSIZE;
drivers/usb/serial/upd78f0730.c
330
tty->termios.c_cflag |= CS8;
drivers/usb/serial/upd78f0730.c
349
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/upd78f0730.c
366
tty->termios.c_cflag &= ~CRTSCTS;
drivers/usb/serial/upd78f0730.c
370
tty->termios.c_iflag &= ~(IXOFF | IXON);
drivers/usb/serial/usb-serial.c
230
init_termios = (driver->termios[idx] == NULL);
drivers/usb/serial/usb-serial.c
531
tty_termios_copy_hw(&tty->termios, old);
drivers/usb/serial/usb_debug.c
81
tty->termios.c_lflag &= ~(ECHO | ECHONL);
drivers/usb/serial/whiteheat.c
618
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/xr_serial.c
567
baud = tty->termios.c_ospeed;
drivers/usb/serial/xr_serial.c
694
struct ktermios *termios = &tty->termios;
drivers/usb/serial/xr_serial.c
698
if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed))
drivers/usb/serial/xr_serial.c
705
termios->c_cflag &= ~CSIZE;
drivers/usb/serial/xr_serial.c
707
termios->c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/xr_serial.c
709
termios->c_cflag |= CS8;
drivers/usb/serial/xr_serial.c
763
if (tty->termios.c_ospeed)
drivers/usb/serial/xr_serial.c
764
lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed);
drivers/usb/serial/xr_serial.c
791
tty->termios.c_cflag &= ~CSIZE;
drivers/usb/serial/xr_serial.c
793
tty->termios.c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/xr_serial.c
795
tty->termios.c_cflag |= CS8;
include/linux/serial_8250.h
186
void serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
include/linux/serial_8250.h
188
void serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios);
include/linux/serial_core.h
1033
unsigned int uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
include/linux/serial_core.h
471
struct ktermios *termios,
include/linux/termios_internal.h
42
int user_termios_to_kernel_termios_1(struct ktermios *, struct termios __user *);
include/linux/termios_internal.h
43
int kernel_termios_to_user_termios_1(struct termios __user *, struct ktermios *);
include/linux/termios_internal.h
45
int user_termios_to_kernel_termios(struct ktermios *, struct termios __user *);
include/linux/termios_internal.h
46
int kernel_termios_to_user_termios(struct termios __user *, struct ktermios *);
include/linux/tty.h
204
struct ktermios termios, termios_locked;
include/linux/tty.h
34
#define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
include/linux/tty.h
35
#define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
include/linux/tty.h
36
#define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
include/linux/tty.h
37
#define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
include/linux/tty.h
38
#define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
include/linux/tty.h
39
#define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
include/linux/tty.h
40
#define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
include/linux/tty.h
41
#define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
include/linux/tty.h
42
#define START_CHAR(tty) ((tty)->termios.c_cc[VSTART])
include/linux/tty.h
426
speed_t tty_termios_baud_rate(const struct ktermios *termios);
include/linux/tty.h
427
void tty_termios_encode_baud_rate(struct ktermios *termios, speed_t ibaud,
include/linux/tty.h
43
#define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP])
include/linux/tty.h
44
#define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP])
include/linux/tty.h
442
return tty_termios_baud_rate(&tty->termios);
include/linux/tty.h
45
#define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL])
include/linux/tty.h
46
#define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT])
include/linux/tty.h
47
#define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD])
include/linux/tty.h
48
#define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE])
include/linux/tty.h
49
#define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT])
include/linux/tty.h
50
#define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2])
include/linux/tty.h
52
#define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f))
include/linux/tty.h
53
#define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f))
include/linux/tty.h
54
#define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f))
include/linux/tty.h
55
#define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f))
include/linux/tty_driver.h
548
struct ktermios **termios;
net/bluetooth/rfcomm/tty.c
853
struct ktermios *new = &tty->termios;
net/nfc/nci/uart.c
411
new_termios = nu->tty->termios;
samples/uhid/uhid-example.c
393
struct termios state;
tools/accounting/delaytop.c
185
static struct termios orig_termios;
tools/accounting/delaytop.c
188
struct termios raw;
tools/arch/x86/dell-uart-backlight-emulator/dell-uart-backlight-emulator.c
44
struct termios tty, saved_tty;
tools/firewire/nosy-dump.c
864
static struct termios saved_attributes;
tools/firewire/nosy-dump.c
875
struct termios tattr;
tools/perf/builtin-kvm.c
1411
struct termios save;
tools/perf/builtin-top.c
498
struct termios save;
tools/perf/builtin-top.c
678
struct termios save;
tools/perf/ui/tui/setup.c
128
static struct termios tty;
tools/perf/util/term.c
30
void set_term_quiet_input(struct termios *old)
tools/perf/util/term.c
32
struct termios tc;
tools/perf/util/term.h
5
struct termios;
tools/perf/util/term.h
9
void set_term_quiet_input(struct termios *old);
tools/power/acpi/os_specific/service_layers/osunixxf.c
106
sizeof(struct termios));
tools/power/acpi/os_specific/service_layers/osunixxf.c
49
struct termios original_term_attributes;
tools/power/acpi/os_specific/service_layers/osunixxf.c
86
struct termios local_term_attributes;