Symbol: termios
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
345
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
349
(tty->termios.c_cflag & CRTSCTS) ? "failed" : "success");
drivers/bluetooth/hci_ldisc.c
379
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
383
!(tty->termios.c_cflag & CRTSCTS) ? "failed" : "success");
drivers/bluetooth/hci_ldisc.c
399
ktermios = tty->termios;
drivers/bluetooth/hci_ldisc.c
407
tty->termios.c_ispeed, tty->termios.c_ospeed);
drivers/bluetooth/hci_ldisc.c
532
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
1040
static void hso_init_termios(struct ktermios *termios)
drivers/net/usb/hso.c
1045
termios->c_iflag &=
drivers/net/usb/hso.c
1056
termios->c_oflag &= ~OPOST;
drivers/net/usb/hso.c
1058
termios->c_lflag &=
drivers/net/usb/hso.c
1067
termios->c_cflag &=
drivers/net/usb/hso.c
1073
termios->c_cflag |= CS8; /* character size 8 bits */
drivers/net/usb/hso.c
1076
tty_termios_encode_baud_rate(termios, 115200, 115200);
drivers/net/usb/hso.c
1093
tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */
drivers/net/usb/hso.c
1095
tty->termios.c_cflag &=
drivers/net/usb/hso.c
1101
tty->termios.c_cflag |= CS8; /* character size 8 bits */
drivers/net/usb/hso.c
1382
(unsigned int)tty->termios.c_cflag,
drivers/net/usb/hso.c
1390
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
473
static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dw.c
476
unsigned long newrate = tty_termios_baud_rate(termios) * 16;
drivers/tty/serial/8250/8250_dw.c
490
dw8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_dw.c
493
static void dw8250_set_ldisc(struct uart_port *p, struct ktermios *termios)
drivers/tty/serial/8250/8250_dw.c
499
if (termios->c_line == N_IRDA)
drivers/tty/serial/8250/8250_dw.c
506
serial8250_do_set_ldisc(p, termios);
drivers/tty/serial/8250/8250_dwlib.c
131
static int dw8250_rs485_config(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dwlib.c
149
if (termios)
drivers/tty/serial/8250/8250_dwlib.c
150
termios->c_cflag &= ~ADDRB;
drivers/tty/serial/8250/8250_dwlib.c
168
dw8250_rs485_set_addr(p, rs485, termios);
drivers/tty/serial/8250/8250_dwlib.c
46
void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_dwlib.c
50
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_dwlib.c
53
serial8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_dwlib.c
90
struct ktermios *termios)
drivers/tty/serial/8250/8250_dwlib.c
96
if (termios)
drivers/tty/serial/8250/8250_dwlib.c
97
termios->c_cflag |= ADDRB;
drivers/tty/serial/8250/8250_dwlib.h
95
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
200
static int fintek_8250_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_fintek.c
290
struct ktermios *termios,
drivers/tty/serial/8250/8250_fintek.c
294
unsigned int baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_fintek.c
349
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_fintek.c
353
serial8250_do_set_termios(port, termios, old);
drivers/tty/serial/8250/8250_keba.c
113
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
208
static void mid8250_set_termios(struct uart_port *p, struct ktermios *termios,
drivers/tty/serial/8250/8250_mid.c
211
unsigned int baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_mid.c
240
serial8250_do_set_termios(p, termios, old);
drivers/tty/serial/8250/8250_mtk.c
307
mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_mtk.c
341
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/8250/8250_mtk.c
343
serial8250_do_set_termios(port, termios, NULL);
drivers/tty/serial/8250/8250_mtk.c
345
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_mtk.c
360
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/8250/8250_mtk.c
381
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/8250/8250_mtk.c
412
if ((termios->c_cflag & CRTSCTS) && (!(termios->c_iflag & CRTSCTS)))
drivers/tty/serial/8250/8250_mtk.c
414
else if (termios->c_iflag & CRTSCTS)
drivers/tty/serial/8250/8250_mtk.c
422
up->port.cons->cflag = termios->c_cflag;
drivers/tty/serial/8250/8250_mtk.c
426
if (tty_termios_baud_rate(termios))
drivers/tty/serial/8250/8250_mtk.c
427
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_ni.c
105
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
1625
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
2570
struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2596
return uart_get_baud_rate(port, termios, old, min, max);
drivers/tty/serial/8250/8250_port.c
2622
serial8250_do_set_termios(port, &tty->termios, NULL);
drivers/tty/serial/8250/8250_port.c
2631
static void serial8250_set_mini(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2638
termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CMSPAR);
drivers/tty/serial/8250/8250_port.c
2640
tcflag_t csize = termios->c_cflag & CSIZE;
drivers/tty/serial/8250/8250_port.c
2642
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/8250/8250_port.c
2643
termios->c_cflag |= CS7;
drivers/tty/serial/8250/8250_port.c
2647
static void serial8250_set_trigger_for_slow_speed(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2669
static void serial8250_set_afe(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2677
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_port.c
2681
static void serial8250_set_errors_and_ignores(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2689
if (termios->c_iflag & INPCK)
drivers/tty/serial/8250/8250_port.c
2691
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/8250/8250_port.c
2696
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_port.c
2698
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/8250/8250_port.c
2704
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/8250/8250_port.c
2709
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/8250/8250_port.c
2713
static void serial8250_set_ier(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2719
if (!(up->bugs & UART_BUG_NOMSR) && UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/8250/8250_port.c
2729
static void serial8250_set_efr(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2743
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/8250/8250_port.c
2753
static void serial8250_set_fcr(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2778
serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2785
serial8250_set_mini(port, termios);
drivers/tty/serial/8250/8250_port.c
2786
lcr = serial8250_compute_lcr(up, termios->c_cflag);
drivers/tty/serial/8250/8250_port.c
2787
baud = serial8250_get_baud_rate(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2799
serial8250_set_trigger_for_slow_speed(port, termios, baud);
drivers/tty/serial/8250/8250_port.c
2800
serial8250_set_afe(port, termios);
drivers/tty/serial/8250/8250_port.c
2801
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/8250/8250_port.c
2802
serial8250_set_errors_and_ignores(port, termios);
drivers/tty/serial/8250/8250_port.c
2803
serial8250_set_ier(port, termios);
drivers/tty/serial/8250/8250_port.c
2804
serial8250_set_efr(port, termios);
drivers/tty/serial/8250/8250_port.c
2806
serial8250_set_fcr(port, termios);
drivers/tty/serial/8250/8250_port.c
2810
&& termios->c_cflag & CRTSCTS) {
drivers/tty/serial/8250/8250_port.c
2817
if (tty_termios_baud_rate(termios))
drivers/tty/serial/8250/8250_port.c
2818
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/8250/8250_port.c
2823
serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/8250/8250_port.c
2827
port->set_termios(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2829
serial8250_do_set_termios(port, termios, old);
drivers/tty/serial/8250/8250_port.c
2832
void serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2834
if (termios->c_line == N_PPS) {
drivers/tty/serial/8250/8250_port.c
2840
if (!UART_ENABLE_MS(port, termios->c_cflag)) {
drivers/tty/serial/8250/8250_port.c
2849
serial8250_set_ldisc(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/8250/8250_port.c
2852
port->set_ldisc(port, termios);
drivers/tty/serial/8250/8250_port.c
2854
serial8250_do_set_ldisc(port, termios);
drivers/tty/serial/8250/8250_port.c
3262
struct ktermios termios;
drivers/tty/serial/8250/8250_port.c
3265
termios.c_cflag = port->cons->cflag;
drivers/tty/serial/8250/8250_port.c
3266
termios.c_ispeed = port->cons->ispeed;
drivers/tty/serial/8250/8250_port.c
3267
termios.c_ospeed = port->cons->ospeed;
drivers/tty/serial/8250/8250_port.c
3268
if (port->state->port.tty && termios.c_cflag == 0) {
drivers/tty/serial/8250/8250_port.c
3269
termios.c_cflag = port->state->port.tty->termios.c_cflag;
drivers/tty/serial/8250/8250_port.c
3270
termios.c_ispeed = port->state->port.tty->termios.c_ispeed;
drivers/tty/serial/8250/8250_port.c
3271
termios.c_ospeed = port->state->port.tty->termios.c_ospeed;
drivers/tty/serial/8250/8250_port.c
3274
baud = serial8250_get_baud_rate(port, &termios, NULL);
drivers/tty/serial/8250/8250_port.c
623
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
2123
pl011_setup_status_masks(struct uart_port *port, struct ktermios *termios)
drivers/tty/serial/amba-pl011.c
2126
if (termios->c_iflag & INPCK)
drivers/tty/serial/amba-pl011.c
2128
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/amba-pl011.c
2135
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl011.c
2137
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/amba-pl011.c
2143
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/amba-pl011.c
2150
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/amba-pl011.c
2155
pl011_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/amba-pl011.c
2187
baud = uart_get_baud_rate(port, termios, old, 0, max_baud);
drivers/tty/serial/amba-pl011.c
2207
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/amba-pl011.c
2221
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/amba-pl011.c
2223
if (termios->c_cflag & PARENB) {
drivers/tty/serial/amba-pl011.c
2225
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/amba-pl011.c
2227
if (termios->c_cflag & CMSPAR)
drivers/tty/serial/amba-pl011.c
2233
bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/amba-pl011.c
2240
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/amba-pl011.c
2249
pl011_setup_status_masks(port, termios);
drivers/tty/serial/amba-pl011.c
2251
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/amba-pl011.c
2255
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/amba-pl011.c
2259
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/amba-pl011.c
2320
sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/amba-pl011.c
2327
tty_termios_encode_baud_rate(termios, uap->fixed_baud, uap->fixed_baud);
drivers/tty/serial/amba-pl011.c
2330
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
drivers/tty/serial/amba-pl011.c
2331
termios->c_cflag &= ~(CMSPAR | CRTSCTS);
drivers/tty/serial/amba-pl011.c
2332
termios->c_cflag |= CS8 | CLOCAL;
drivers/tty/serial/amba-pl011.c
2336
pl011_setup_status_masks(port, termios);
drivers/tty/serial/amba-pl011.c
2374
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
219
if (termios->c_cflag & PARENB) {
drivers/tty/serial/apbuart.c
221
if ((termios->c_cflag & PARODD))
drivers/tty/serial/apbuart.c
226
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/apbuart.c
232
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/apbuart.c
235
if (termios->c_iflag & INPCK)
drivers/tty/serial/apbuart.c
240
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/apbuart.c
244
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
588
static void dz_set_termios(struct uart_port *uport, struct ktermios *termios,
drivers/tty/serial/dz.c
598
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/dz.c
613
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/dz.c
615
if (termios->c_cflag & PARENB)
drivers/tty/serial/dz.c
617
if (termios->c_cflag & PARODD)
drivers/tty/serial/dz.c
620
baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600);
drivers/tty/serial/dz.c
632
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/dz.c
636
if (termios->c_cflag & CREAD)
drivers/tty/serial/dz.c
641
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/dz.c
648
if (termios->c_iflag & INPCK)
drivers/tty/serial/dz.c
650
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/dz.c
655
if ((termios->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
drivers/tty/serial/dz.c
657
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/dz.c
659
if (termios->c_iflag & IGNBRK)
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
1458
static int lpuart_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
1485
static int lpuart32_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
1997
lpuart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
2021
while ((termios->c_cflag & CSIZE) != CS8 &&
drivers/tty/serial/fsl_lpuart.c
2022
(termios->c_cflag & CSIZE) != CS7) {
drivers/tty/serial/fsl_lpuart.c
2023
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2024
termios->c_cflag |= old_csize;
drivers/tty/serial/fsl_lpuart.c
2028
if ((termios->c_cflag & CSIZE) == CS8 ||
drivers/tty/serial/fsl_lpuart.c
2029
(termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2032
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2033
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/fsl_lpuart.c
2034
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2035
termios->c_cflag |= CS8;
drivers/tty/serial/fsl_lpuart.c
2045
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/fsl_lpuart.c
2047
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/fsl_lpuart.c
2052
termios->c_cflag &= ~CSTOPB;
drivers/tty/serial/fsl_lpuart.c
2055
if ((termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2056
termios->c_cflag |= PARENB;
drivers/tty/serial/fsl_lpuart.c
2058
if (termios->c_cflag & PARENB) {
drivers/tty/serial/fsl_lpuart.c
2059
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2061
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2067
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/fsl_lpuart.c
2069
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2079
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
drivers/tty/serial/fsl_lpuart.c
2094
if (termios->c_iflag & INPCK)
drivers/tty/serial/fsl_lpuart.c
2096
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/fsl_lpuart.c
2101
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2103
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/fsl_lpuart.c
2109
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2114
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/fsl_lpuart.c
2235
lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/fsl_lpuart.c
2257
while ((termios->c_cflag & CSIZE) != CS8 &&
drivers/tty/serial/fsl_lpuart.c
2258
(termios->c_cflag & CSIZE) != CS7) {
drivers/tty/serial/fsl_lpuart.c
2259
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2260
termios->c_cflag |= old_csize;
drivers/tty/serial/fsl_lpuart.c
2264
if ((termios->c_cflag & CSIZE) == CS8 ||
drivers/tty/serial/fsl_lpuart.c
2265
(termios->c_cflag & CSIZE) == CS7)
drivers/tty/serial/fsl_lpuart.c
2268
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2269
if ((termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/fsl_lpuart.c
2270
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/fsl_lpuart.c
2271
termios->c_cflag |= CS8;
drivers/tty/serial/fsl_lpuart.c
2281
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/fsl_lpuart.c
2283
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/fsl_lpuart.c
2288
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/fsl_lpuart.c
2297
if ((termios->c_cflag & CSIZE) == CS7 && !(termios->c_cflag & PARENB)) {
drivers/tty/serial/fsl_lpuart.c
2303
termios->c_cflag |= PARENB;
drivers/tty/serial/fsl_lpuart.c
2306
if ((termios->c_cflag & PARENB)) {
drivers/tty/serial/fsl_lpuart.c
2307
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/fsl_lpuart.c
2312
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/fsl_lpuart.c
2314
if (termios->c_cflag & PARODD)
drivers/tty/serial/fsl_lpuart.c
2324
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
drivers/tty/serial/fsl_lpuart.c
2339
if (termios->c_iflag & INPCK)
drivers/tty/serial/fsl_lpuart.c
2341
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/fsl_lpuart.c
2346
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2348
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/fsl_lpuart.c
2354
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/fsl_lpuart.c
2359
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/fsl_lpuart.c
3198
struct ktermios termios;
drivers/tty/serial/fsl_lpuart.c
3211
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/fsl_lpuart.c
3212
termios.c_cflag = uport->cons->cflag;
drivers/tty/serial/fsl_lpuart.c
3213
if (port->tty && termios.c_cflag == 0)
drivers/tty/serial/fsl_lpuart.c
3214
termios = port->tty->termios;
drivers/tty/serial/fsl_lpuart.c
3215
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
1741
imx_uart_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/imx.c
1756
while ((termios->c_cflag & CSIZE) != CS7 &&
drivers/tty/serial/imx.c
1757
(termios->c_cflag & CSIZE) != CS8) {
drivers/tty/serial/imx.c
1758
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/imx.c
1759
termios->c_cflag |= old_csize;
drivers/tty/serial/imx.c
1768
baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
drivers/tty/serial/imx.c
1781
if ((termios->c_cflag & CSIZE) == CS8)
drivers/tty/serial/imx.c
1785
termios->c_cflag &= ~CRTSCTS;
drivers/tty/serial/imx.c
1798
} else if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/imx.c
1807
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/imx.c
1809
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/imx.c
1811
if (termios->c_cflag & PARENB) {
drivers/tty/serial/imx.c
1813
if (termios->c_cflag & PARODD)
drivers/tty/serial/imx.c
1818
if (termios->c_iflag & INPCK)
drivers/tty/serial/imx.c
1820
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/imx.c
1827
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/imx.c
1829
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/imx.c
1835
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/imx.c
1839
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/imx.c
1845
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/imx.c
1864
tty_termios_encode_baud_rate(termios,
drivers/tty/serial/imx.c
1896
if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
drivers/tty/serial/imx.c
2024
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
406
max3100_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/max3100.c
417
cflag = termios->c_cflag;
drivers/tty/serial/max3100.c
420
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/max3100.c
465
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/max3100.c
501
termios->c_cflag = cflag;
drivers/tty/serial/max3100.c
504
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/max3100.c
510
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/max3100.c
519
if (UART_ENABLE_MS(&s->port, termios->c_cflag))
drivers/tty/serial/max310x.c
1000
if (termios->c_cflag & CRTSCTS || termios->c_iflag & IXOFF) {
drivers/tty/serial/max310x.c
1008
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/max310x.c
1014
if (termios->c_iflag & IXON)
drivers/tty/serial/max310x.c
1017
if (termios->c_iflag & IXOFF) {
drivers/tty/serial/max310x.c
1028
if (!(termios->c_cflag & CRTSCTS) && !(termios->c_iflag & IXOFF)) {
drivers/tty/serial/max310x.c
1035
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/max310x.c
1043
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/max310x.c
1068
static int max310x_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/max310x.c
935
struct ktermios *termios,
drivers/tty/serial/max310x.c
942
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/max310x.c
945
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/max310x.c
961
if (termios->c_cflag & PARENB) {
drivers/tty/serial/max310x.c
963
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/max310x.c
968
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/max310x.c
976
if (termios->c_iflag & INPCK)
drivers/tty/serial/max310x.c
979
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/max310x.c
984
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/max310x.c
986
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/max310x.c
993
max310x_port_write(port, MAX310X_XON1_REG, termios->c_cc[VSTART]);
drivers/tty/serial/max310x.c
994
max310x_port_write(port, MAX310X_XOFF1_REG, termios->c_cc[VSTOP]);
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
1271
static void msm_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/msm_serial.c
1285
baud = uart_get_baud_rate(port, termios, old, 300, 4000000);
drivers/tty/serial/msm_serial.c
1287
if (tty_termios_baud_rate(termios))
drivers/tty/serial/msm_serial.c
1288
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/msm_serial.c
1293
if (termios->c_cflag & PARENB) {
drivers/tty/serial/msm_serial.c
1294
if (termios->c_cflag & PARODD)
drivers/tty/serial/msm_serial.c
1296
else if (termios->c_cflag & CMSPAR)
drivers/tty/serial/msm_serial.c
1304
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/msm_serial.c
1322
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/msm_serial.c
1333
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/msm_serial.c
1341
if (termios->c_iflag & INPCK)
drivers/tty/serial/msm_serial.c
1343
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/msm_serial.c
1346
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
1295
struct ktermios *termios,
drivers/tty/serial/pch_uart.c
1304
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/pch_uart.c
1318
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/pch_uart.c
1323
if (termios->c_cflag & PARENB) {
drivers/tty/serial/pch_uart.c
1324
if (termios->c_cflag & PARODD)
drivers/tty/serial/pch_uart.c
1333
if ((termios->c_cflag & CRTSCTS) && (priv->fifo_size == 256))
drivers/tty/serial/pch_uart.c
1338
termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
drivers/tty/serial/pch_uart.c
1340
baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
drivers/tty/serial/pch_uart.c
1344
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/pch_uart.c
1351
if (tty_termios_baud_rate(termios))
drivers/tty/serial/pch_uart.c
1352
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
1357
struct ktermios *termios,
drivers/tty/serial/qcom_geni_serial.c
1372
baud = uart_get_baud_rate(uport, termios, old, 300, 8000000);
drivers/tty/serial/qcom_geni_serial.c
1383
if (termios->c_cflag & PARENB) {
drivers/tty/serial/qcom_geni_serial.c
1388
if (termios->c_cflag & PARODD) {
drivers/tty/serial/qcom_geni_serial.c
1391
} else if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/qcom_geni_serial.c
1406
bits_per_char = tty_get_char_size(termios->c_cflag);
drivers/tty/serial/qcom_geni_serial.c
1409
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/qcom_geni_serial.c
1422
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/qcom_geni_serial.c
1431
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/qcom_geni_serial.c
1754
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
1464
struct ktermios *termios,
drivers/tty/serial/samsung_tty.c
1479
termios->c_cflag &= ~(HUPCL | CMSPAR);
drivers/tty/serial/samsung_tty.c
1480
termios->c_cflag |= CLOCAL;
drivers/tty/serial/samsung_tty.c
1486
baud = uart_get_baud_rate(port, termios, old, 0, 3000000);
drivers/tty/serial/samsung_tty.c
1522
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/samsung_tty.c
1545
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/samsung_tty.c
1548
if (termios->c_cflag & PARENB) {
drivers/tty/serial/samsung_tty.c
1549
if (termios->c_cflag & PARODD)
drivers/tty/serial/samsung_tty.c
1569
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/samsung_tty.c
1585
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/samsung_tty.c
1591
if (termios->c_iflag & INPCK)
drivers/tty/serial/samsung_tty.c
1598
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/samsung_tty.c
1600
if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR)
drivers/tty/serial/samsung_tty.c
1606
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
1008
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sc16is7xx.c
1009
termios->c_cflag |= CS8;
drivers/tty/serial/sc16is7xx.c
1014
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sc16is7xx.c
1016
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/sc16is7xx.c
1021
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sc16is7xx.c
1026
if (termios->c_iflag & INPCK)
drivers/tty/serial/sc16is7xx.c
1029
if (termios->c_iflag & (BRKINT | PARMRK))
drivers/tty/serial/sc16is7xx.c
1034
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/sc16is7xx.c
1036
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/sc16is7xx.c
1041
if (termios->c_cflag & CRTSCTS) {
drivers/tty/serial/sc16is7xx.c
1046
if (termios->c_iflag & IXON)
drivers/tty/serial/sc16is7xx.c
1048
if (termios->c_iflag & IXOFF)
drivers/tty/serial/sc16is7xx.c
1056
sc16is7xx_port_write(port, SC16IS7XX_XON1_REG, termios->c_cc[VSTART]);
drivers/tty/serial/sc16is7xx.c
1057
sc16is7xx_port_write(port, SC16IS7XX_XOFF1_REG, termios->c_cc[VSTOP]);
drivers/tty/serial/sc16is7xx.c
1063
baud = uart_get_baud_rate(port, termios, old,
drivers/tty/serial/sc16is7xx.c
1073
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sc16is7xx.c
1075
if (UART_ENABLE_MS(port, termios->c_cflag))
drivers/tty/serial/sc16is7xx.c
1081
static int sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sc16is7xx.c
979
struct ktermios *termios,
drivers/tty/serial/sc16is7xx.c
990
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/sc16is7xx.c
993
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sccnxp.c
640
struct ktermios *termios,
drivers/tty/serial/sccnxp.c
651
termios->c_cflag &= ~CMSPAR;
drivers/tty/serial/sccnxp.c
661
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/sccnxp.c
678
if (termios->c_cflag & PARENB) {
drivers/tty/serial/sccnxp.c
679
if (termios->c_cflag & PARODD)
drivers/tty/serial/sccnxp.c
685
mr2 = (termios->c_cflag & CSTOPB) ? MR2_STOP2 : MR2_STOP1;
drivers/tty/serial/sccnxp.c
694
if (termios->c_iflag & INPCK)
drivers/tty/serial/sccnxp.c
696
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/sccnxp.c
701
if (termios->c_iflag & IGNBRK)
drivers/tty/serial/sccnxp.c
703
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/sccnxp.c
705
if (!(termios->c_cflag & CREAD))
drivers/tty/serial/sccnxp.c
709
baud = uart_get_baud_rate(port, termios, old, 50,
drivers/tty/serial/sccnxp.c
715
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sccnxp.c
718
if (tty_termios_baud_rate(termios))
drivers/tty/serial/sccnxp.c
719
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
1473
ret = port->rs485_config(port, &tty->termios, &rs485);
drivers/tty/serial/serial_core.c
1633
uport->ops->set_ldisc(uport, &tty->termios);
drivers/tty/serial/serial_core.c
1641
unsigned int cflag = tty->termios.c_cflag;
drivers/tty/serial/serial_core.c
1658
tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] ||
drivers/tty/serial/serial_core.c
1659
tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP];
drivers/tty/serial/serial_core.c
1669
tty->termios.c_ospeed == old_termios->c_ospeed &&
drivers/tty/serial/serial_core.c
1670
tty->termios.c_ispeed == old_termios->c_ispeed &&
drivers/tty/serial/serial_core.c
1671
((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 &&
drivers/tty/serial/serial_core.c
1677
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
2192
struct ktermios termios;
drivers/tty/serial/serial_core.c
2205
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/serial_core.c
2207
termios.c_cflag |= CREAD | HUPCL | CLOCAL;
drivers/tty/serial/serial_core.c
2208
tty_termios_encode_baud_rate(&termios, baud, baud);
drivers/tty/serial/serial_core.c
2211
termios.c_cflag |= CS7;
drivers/tty/serial/serial_core.c
2213
termios.c_cflag |= CS8;
drivers/tty/serial/serial_core.c
2217
termios.c_cflag |= PARODD;
drivers/tty/serial/serial_core.c
222
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/serial_core.c
2220
termios.c_cflag |= PARENB;
drivers/tty/serial/serial_core.c
2225
termios.c_cflag |= CRTSCTS;
drivers/tty/serial/serial_core.c
2233
port->ops->set_termios(port, &termios, &dummy);
drivers/tty/serial/serial_core.c
2240
if (flow == 'r' && (termios.c_cflag & CRTSCTS)) {
drivers/tty/serial/serial_core.c
2251
co->cflag = termios.c_cflag;
drivers/tty/serial/serial_core.c
2252
co->ispeed = termios.c_ispeed;
drivers/tty/serial/serial_core.c
2253
co->ospeed = termios.c_ospeed;
drivers/tty/serial/serial_core.c
227
if (termios->c_cflag & CLOCAL)
drivers/tty/serial/serial_core.c
2379
struct ktermios termios;
drivers/tty/serial/serial_core.c
2400
memset(&termios, 0, sizeof(struct ktermios));
drivers/tty/serial/serial_core.c
2401
termios.c_cflag = uport->cons->cflag;
drivers/tty/serial/serial_core.c
2402
termios.c_ispeed = uport->cons->ispeed;
drivers/tty/serial/serial_core.c
2403
termios.c_ospeed = uport->cons->ospeed;
drivers/tty/serial/serial_core.c
2408
if (port->tty && termios.c_cflag == 0)
drivers/tty/serial/serial_core.c
2409
termios = port->tty->termios;
drivers/tty/serial/serial_core.c
2413
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
504
baud = tty_termios_baud_rate(termios);
drivers/tty/serial/serial_core.c
526
termios->c_cflag &= ~CBAUD;
drivers/tty/serial/serial_core.c
529
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/serial_core.c
543
tty_termios_encode_baud_rate(termios, baud, baud);
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
2679
static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/sh-sci.c
2692
if ((termios->c_cflag & CSIZE) == CS7) {
drivers/tty/serial/sh-sci.c
2695
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/sh-sci.c
2696
termios->c_cflag |= CS8;
drivers/tty/serial/sh-sci.c
2698
if (termios->c_cflag & PARENB)
drivers/tty/serial/sh-sci.c
2700
if (termios->c_cflag & PARODD)
drivers/tty/serial/sh-sci.c
2702
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/sh-sci.c
2714
baud = uart_get_baud_rate(port, termios, old, 0, 115200);
drivers/tty/serial/sh-sci.c
2721
baud = uart_get_baud_rate(port, termios, old, 0, max_freq / min_sr(s));
drivers/tty/serial/sh-sci.c
2808
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/sh-sci.c
2811
bits = tty_get_frame_size(termios->c_cflag);
drivers/tty/serial/sh-sci.c
2867
sci_init_pins(port, termios->c_cflag);
drivers/tty/serial/sh-sci.c
2876
(termios->c_cflag & CRTSCTS)) {
drivers/tty/serial/sh-sci.c
2923
if ((termios->c_cflag & CREAD) != 0)
drivers/tty/serial/sh-sci.c
2930
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
295
static void tegra_utc_set_termios(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/tegra-utc.c
299
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
drivers/tty/serial/tegra-utc.c
300
termios->c_cflag &= ~(CMSPAR | CRTSCTS);
drivers/tty/serial/tegra-utc.c
301
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
1610
static int cdns_rs485_config(struct uart_port *port, struct ktermios *termios,
drivers/tty/serial/xilinx_uartps.c
812
struct ktermios *termios,
drivers/tty/serial/xilinx_uartps.c
835
baud = uart_get_baud_rate(port, termios, old, minbaud, maxbaud);
drivers/tty/serial/xilinx_uartps.c
837
if (tty_termios_baud_rate(termios))
drivers/tty/serial/xilinx_uartps.c
838
tty_termios_encode_baud_rate(termios, baud, baud);
drivers/tty/serial/xilinx_uartps.c
841
uart_update_timeout(port, termios->c_cflag, baud);
drivers/tty/serial/xilinx_uartps.c
867
if (termios->c_iflag & INPCK)
drivers/tty/serial/xilinx_uartps.c
871
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/xilinx_uartps.c
876
if ((termios->c_cflag & CREAD) == 0)
drivers/tty/serial/xilinx_uartps.c
884
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/xilinx_uartps.c
894
termios->c_cflag &= ~CSIZE;
drivers/tty/serial/xilinx_uartps.c
895
termios->c_cflag |= CS8;
drivers/tty/serial/xilinx_uartps.c
900
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/xilinx_uartps.c
905
if (termios->c_cflag & PARENB) {
drivers/tty/serial/xilinx_uartps.c
907
if (termios->c_cflag & CMSPAR) {
drivers/tty/serial/xilinx_uartps.c
908
if (termios->c_cflag & PARODD)
drivers/tty/serial/xilinx_uartps.c
913
if (termios->c_cflag & PARODD)
drivers/tty/serial/xilinx_uartps.c
925
if (termios->c_cflag & CRTSCTS)
drivers/tty/serial/zs.c
848
static void zs_set_termios(struct uart_port *uport, struct ktermios *termios,
drivers/tty/serial/zs.c
864
switch (termios->c_cflag & CSIZE) {
drivers/tty/serial/zs.c
886
if (termios->c_cflag & CSTOPB)
drivers/tty/serial/zs.c
890
if (termios->c_cflag & PARENB)
drivers/tty/serial/zs.c
892
if (!(termios->c_cflag & PARODD))
drivers/tty/serial/zs.c
911
baud = uart_get_baud_rate(uport, termios, old_termios, 0,
drivers/tty/serial/zs.c
918
uart_update_timeout(uport, termios->c_cflag, baud);
drivers/tty/serial/zs.c
921
if (termios->c_iflag & INPCK)
drivers/tty/serial/zs.c
923
if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
drivers/tty/serial/zs.c
927
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/zs.c
929
if (termios->c_iflag & IGNBRK) {
drivers/tty/serial/zs.c
931
if (termios->c_iflag & IGNPAR)
drivers/tty/serial/zs.c
935
if (termios->c_cflag & CREAD)
drivers/tty/serial/zs.c
941
if (!(termios->c_cflag & CLOCAL)) {
drivers/tty/serial/zs.c
945
if (termios->c_cflag & CRTSCTS) {
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
3767
tty->termios.c_iflag |= IUTF8;
drivers/tty/vt/vt.c
3769
tty->termios.c_iflag &= ~IUTF8;
drivers/usb/class/cdc-acm.c
1108
struct ktermios *termios = &tty->termios;
drivers/usb/class/cdc-acm.c
1113
newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0;
drivers/usb/class/cdc-acm.c
1114
newline.bParityType = termios->c_cflag & PARENB ?
drivers/usb/class/cdc-acm.c
1115
(termios->c_cflag & PARODD ? 1 : 2) +
drivers/usb/class/cdc-acm.c
1116
(termios->c_cflag & CMSPAR ? 2 : 0) : 0;
drivers/usb/class/cdc-acm.c
1117
newline.bDataBits = tty_get_char_size(termios->c_cflag);
drivers/usb/class/cdc-acm.c
1120
acm->clocal = ((termios->c_cflag & CLOCAL) != 0);
drivers/usb/class/cdc-acm.c
658
tty->termios.c_lflag &= ~ECHO;
drivers/usb/serial/ark3116.c
195
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ark3116.c
196
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/ark3116.c
291
if (tty_termios_baud_rate(termios))
drivers/usb/serial/ark3116.c
292
tty_termios_encode_baud_rate(termios, bps, bps);
drivers/usb/serial/belkin_sa.c
291
struct ktermios *termios = &tty->termios;
drivers/usb/serial/belkin_sa.c
293
iflag = termios->c_iflag;
drivers/usb/serial/belkin_sa.c
294
cflag = termios->c_cflag;
drivers/usb/serial/belkin_sa.c
296
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
878
tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS);
drivers/usb/serial/cypress_m8.c
880
cflag = tty->termios.c_cflag;
drivers/usb/serial/cypress_m8.c
928
tty->termios.c_iflag /* input modes - */
drivers/usb/serial/cypress_m8.c
938
tty->termios.c_oflag /* output modes */
drivers/usb/serial/cypress_m8.c
941
tty->termios.c_lflag /* line discipline modes */
drivers/usb/serial/digi_acceleport.c
1103
not_termios.c_cflag = ~tty->termios.c_cflag;
drivers/usb/serial/digi_acceleport.c
1104
not_termios.c_iflag = ~tty->termios.c_iflag;
drivers/usb/serial/digi_acceleport.c
661
unsigned int iflag = tty->termios.c_iflag;
drivers/usb/serial/digi_acceleport.c
662
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/digi_acceleport.c
723
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/empeg.c
100
termios->c_lflag
drivers/usb/serial/empeg.c
107
termios->c_cflag
drivers/usb/serial/empeg.c
112
termios->c_cflag
drivers/usb/serial/empeg.c
76
struct ktermios *termios = &tty->termios;
drivers/usb/serial/empeg.c
87
termios->c_iflag
drivers/usb/serial/empeg.c
97
termios->c_oflag
drivers/usb/serial/f81232.c
616
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/f81232.c
647
new_lcr |= UART_LCR_WLEN(tty_get_char_size(tty->termios.c_cflag));
drivers/usb/serial/f81534.c
976
new_lcr |= UART_LCR_WLEN(tty_get_char_size(tty->termios.c_cflag));
drivers/usb/serial/ftdi_sio.c
2582
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ftdi_sio.c
2589
if (priv->force_baud && ((termios->c_cflag & CBAUD) != B0)) {
drivers/usb/serial/ftdi_sio.c
2598
termios->c_cflag |= CRTSCTS;
drivers/usb/serial/ftdi_sio.c
2618
termios->c_cflag &= ~CSIZE;
drivers/usb/serial/ftdi_sio.c
2620
termios->c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/ftdi_sio.c
2622
termios->c_cflag |= CS8;
drivers/usb/serial/ftdi_sio.c
2625
cflag = termios->c_cflag;
drivers/usb/serial/ftdi_sio.c
2630
if (old_termios->c_cflag == termios->c_cflag
drivers/usb/serial/ftdi_sio.c
2631
&& old_termios->c_ispeed == termios->c_ispeed
drivers/usb/serial/ftdi_sio.c
2632
&& old_termios->c_ospeed == termios->c_ospeed)
drivers/usb/serial/ftdi_sio.c
2640
(termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)))
drivers/usb/serial/io_edgeport.c
1812
edge_port, &tty->termios);
drivers/usb/serial/io_edgeport.c
2356
cflag = tty->termios.c_cflag;
drivers/usb/serial/io_ti.c
1874
edge_set_termios(tty, port, &tty->termios);
drivers/usb/serial/io_ti.c
2238
tty->termios = *old_termios;
drivers/usb/serial/io_ti.c
2242
cflag = tty->termios.c_cflag;
drivers/usb/serial/io_ti.c
2327
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/ir-usb.c
434
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/iuu_phoenix.c
885
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/iuu_phoenix.c
894
baud = tty->termios.c_ospeed;
drivers/usb/serial/iuu_phoenix.c
925
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/iuu_phoenix.c
930
tty->termios.c_cflag &= ~(supported_mask|CSIZE);
drivers/usb/serial/iuu_phoenix.c
931
tty->termios.c_cflag |= newval | csize;
drivers/usb/serial/iuu_phoenix.c
948
tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
drivers/usb/serial/iuu_phoenix.c
949
tty->termios.c_ispeed = 9600;
drivers/usb/serial/iuu_phoenix.c
950
tty->termios.c_ospeed = 9600;
drivers/usb/serial/iuu_phoenix.c
951
tty->termios.c_lflag = 0;
drivers/usb/serial/iuu_phoenix.c
952
tty->termios.c_oflag = 0;
drivers/usb/serial/iuu_phoenix.c
953
tty->termios.c_iflag = 0;
drivers/usb/serial/iuu_phoenix.c
965
baud = tty->termios.c_ospeed;
drivers/usb/serial/keyspan.c
1549
cflag = tty->termios.c_cflag;
drivers/usb/serial/keyspan.c
630
cflag = tty->termios.c_cflag;
drivers/usb/serial/keyspan.c
651
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/keyspan_pda.c
389
tty_termios_copy_hw(&tty->termios, old_termios);
drivers/usb/serial/kl5kusb105.c
371
unsigned int iflag = tty->termios.c_iflag;
drivers/usb/serial/kl5kusb105.c
373
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/kl5kusb105.c
464
tty->termios.c_cflag &= ~(PARENB|PARODD|CSTOPB);
drivers/usb/serial/kl5kusb105.c
474
tty->termios.c_cflag &= ~CRTSCTS;
drivers/usb/serial/kobil_sct.c
170
tty->termios.c_lflag = 0;
drivers/usb/serial/kobil_sct.c
171
tty->termios.c_iflag = IGNBRK | IGNPAR | IXOFF;
drivers/usb/serial/kobil_sct.c
173
tty->termios.c_oflag &= ~ONLCR;
drivers/usb/serial/kobil_sct.c
434
int c_cflag = tty->termios.c_cflag;
drivers/usb/serial/kobil_sct.c
442
tty_termios_copy_hw(&tty->termios, old);
drivers/usb/serial/kobil_sct.c
473
tty->termios.c_cflag &= ~CMSPAR;
drivers/usb/serial/mct_u232.c
604
struct ktermios *termios = &tty->termios;
drivers/usb/serial/mct_u232.c
605
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/mct_u232.c
668
termios->c_cflag &= ~CMSPAR;
drivers/usb/serial/mos7720.c
1388
cflag = tty->termios.c_cflag;
drivers/usb/serial/mos7840.c
1194
cflag = tty->termios.c_cflag;
drivers/usb/serial/mxuport.c
846
!tty_termios_hw_change(&tty->termios, old_termios) &&
drivers/usb/serial/mxuport.c
847
tty->termios.c_iflag == old_termios->c_iflag) {
drivers/usb/serial/oti6858.c
405
cflag = tty->termios.c_cflag;
drivers/usb/serial/pl2303.c
835
if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
drivers/usb/serial/pl2303.c
842
tty->termios = *old_termios;
drivers/usb/serial/pl2303.c
848
buf[6] = tty_get_char_size(tty->termios.c_cflag);
drivers/usb/serial/quatech2.c
259
struct ktermios *termios = &tty->termios;
drivers/usb/serial/quatech2.c
261
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/quatech2.c
376
qt2_set_termios(tty, port, &tty->termios);
drivers/usb/serial/spcp8x5.c
280
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/spcp8x5.c
288
if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
drivers/usb/serial/ssu100.c
219
struct ktermios *termios = &tty->termios;
drivers/usb/serial/ssu100.c
221
unsigned int cflag = termios->c_cflag;
drivers/usb/serial/ssu100.c
313
ssu100_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
677
ti_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
712
ti_set_termios(tty, port, &tty->termios);
drivers/usb/serial/ti_usb_3410_5052.c
924
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
227
init_termios = (driver->termios[idx] == NULL);
drivers/usb/serial/usb-serial.c
528
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
614
unsigned int cflag = tty->termios.c_cflag;
drivers/usb/serial/xr_serial.c
568
baud = tty->termios.c_ospeed;
drivers/usb/serial/xr_serial.c
695
struct ktermios *termios = &tty->termios;
drivers/usb/serial/xr_serial.c
699
if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed))
drivers/usb/serial/xr_serial.c
706
termios->c_cflag &= ~CSIZE;
drivers/usb/serial/xr_serial.c
708
termios->c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/xr_serial.c
710
termios->c_cflag |= CS8;
drivers/usb/serial/xr_serial.c
764
if (tty->termios.c_ospeed)
drivers/usb/serial/xr_serial.c
765
lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed);
drivers/usb/serial/xr_serial.c
792
tty->termios.c_cflag &= ~CSIZE;
drivers/usb/serial/xr_serial.c
794
tty->termios.c_cflag |= old_termios->c_cflag & CSIZE;
drivers/usb/serial/xr_serial.c
796
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
1035
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
555
struct ktermios **termios;
net/bluetooth/rfcomm/tty.c
850
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
1410
struct termios save;
tools/perf/builtin-top.c
499
struct termios save;
tools/perf/builtin-top.c
679
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;