/Linux-v4.19/drivers/tty/ |
D | tty_baudrate.c | 65 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 76 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 99 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 112 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate() 160 if ((termios->c_cflag >> IBSHIFT) & CBAUD) in tty_termios_encode_baud_rate() 168 if ((termios->c_cflag & CBAUD) == BOTHER) { in tty_termios_encode_baud_rate() 173 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 176 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate() 178 termios->c_cflag &= ~(CBAUD << IBSHIFT); in tty_termios_encode_baud_rate() 191 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate() [all …]
|
D | tty_ioctl.c | 253 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 277 new->c_cflag &= HUPCL | CREAD | CLOCAL; in tty_termios_copy_hw() 278 new->c_cflag |= old->c_cflag & ~(HUPCL | CREAD | CLOCAL); in tty_termios_copy_hw() 297 if ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL)) in tty_termios_hw_change() 686 tty->termios.c_cflag &= ~CLOCAL; in tty_change_softcar() 687 tty->termios.c_cflag |= bit; in tty_change_softcar() 838 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | termios.h | 38 err |= get_user(tmp, &(termio)->c_cflag); \ 39 (termios)->c_cflag = (0xffff0000 & ((termios)->c_cflag)) | tmp; \ 56 err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \ 72 err |= get_user((k)->c_cflag, &(u)->c_cflag); \ 93 err |= put_user((k)->c_cflag, &(u)->c_cflag); \ 114 err |= get_user((k)->c_cflag, &(u)->c_cflag); \ 133 err |= put_user((k)->c_cflag, &(u)->c_cflag); \
|
/Linux-v4.19/drivers/tty/serdev/ |
D | serdev-ttyport.c | 134 ktermios.c_cflag &= ~(CSIZE | PARENB); in ttyport_open() 135 ktermios.c_cflag |= CS8; in ttyport_open() 136 ktermios.c_cflag |= CRTSCTS; in ttyport_open() 138 ktermios.c_cflag |= CLOCAL; in ttyport_open() 175 ktermios.c_cflag &= ~CBAUD; in ttyport_set_baudrate() 190 ktermios.c_cflag |= CRTSCTS; in ttyport_set_flow_control() 192 ktermios.c_cflag &= ~CRTSCTS; in ttyport_set_flow_control() 204 ktermios.c_cflag &= ~(PARENB | PARODD | CMSPAR); in ttyport_set_parity() 206 ktermios.c_cflag |= PARENB; in ttyport_set_parity() 208 ktermios.c_cflag |= PARODD; in ttyport_set_parity() [all …]
|
/Linux-v4.19/include/asm-generic/ |
D | termios-base.h | 28 if (get_user(tmp, &termio->c_cflag) < 0) in user_termio_to_kernel_termios() 30 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios() 56 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio()
|
D | termios.h | 33 if (get_user(tmp, &termio->c_cflag) < 0) in user_termio_to_kernel_termios() 35 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios() 61 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | termios.h | 42 err |=__get_user(cflag, &termio->c_cflag); in user_termio_to_kernel_termios() 43 termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag; in user_termio_to_kernel_termios() 69 err |= __put_user(termios->c_cflag, &termio->c_cflag); in kernel_termios_to_user_termio()
|
/Linux-v4.19/drivers/tty/serial/ |
D | fsl_lpuart.c | 988 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma() 989 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma() 1407 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios() 1424 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios() 1425 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios() 1426 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 1427 termios->c_cflag |= old_csize; in lpuart_set_termios() 1431 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios() 1432 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios() 1435 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios() [all …]
|
D | 21285.c | 219 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios() 220 termios->c_cflag |= CLOCAL; in serial21285_set_termios() 235 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios() 250 if (termios->c_cflag & CSTOPB) in serial21285_set_termios() 252 if (termios->c_cflag & PARENB) { in serial21285_set_termios() 254 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios() 266 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 287 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()
|
D | pnx8xxx_uart.c | 446 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in pnx8xxx_set_termios() 451 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios() 452 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios() 453 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios() 454 termios->c_cflag |= old_csize; in pnx8xxx_set_termios() 458 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios() 463 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios() 465 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios() 467 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios() 513 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios() [all …]
|
D | serial_ks8695.c | 389 switch (termios->c_cflag & CSIZE) { in ks8695uart_set_termios() 405 if (termios->c_cflag & CSTOPB) in ks8695uart_set_termios() 409 if (termios->c_cflag & PARENB) { in ks8695uart_set_termios() 410 if (termios->c_cflag & CMSPAR) { /* Mark or Space parity */ in ks8695uart_set_termios() 411 if (termios->c_cflag & PARODD) in ks8695uart_set_termios() 416 else if (termios->c_cflag & PARODD) in ks8695uart_set_termios() 430 uart_update_timeout(port, termios->c_cflag, baud); in ks8695uart_set_termios() 457 if ((termios->c_cflag & CREAD) == 0) in ks8695uart_set_termios() 461 if (UART_ENABLE_MS(port, termios->c_cflag)) in ks8695uart_set_termios()
|
D | vt8500_serial.c | 383 if (termios->c_cflag & PARENB) { in vt8500_set_termios() 385 termios->c_cflag &= ~CMSPAR; in vt8500_set_termios() 386 if (termios->c_cflag & PARODD) in vt8500_set_termios() 392 switch (termios->c_cflag & CSIZE) { in vt8500_set_termios() 398 termios->c_cflag &= ~CSIZE; in vt8500_set_termios() 399 termios->c_cflag |= CS8; in vt8500_set_termios() 405 if (termios->c_cflag & CSTOPB) in vt8500_set_termios() 420 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 434 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) in vt8500_set_termios()
|
D | vr41xx_siu.c | 505 tcflag_t c_cflag, c_iflag; in siu_set_termios() local 510 c_cflag = new->c_cflag; in siu_set_termios() 511 switch (c_cflag & CSIZE) { in siu_set_termios() 526 if (c_cflag & CSTOPB) in siu_set_termios() 528 if (c_cflag & PARENB) in siu_set_termios() 530 if ((c_cflag & PARODD) != PARODD) in siu_set_termios() 532 if (c_cflag & CMSPAR) in siu_set_termios() 542 uart_update_timeout(port, c_cflag, baud); in siu_set_termios() 561 if ((c_cflag & CREAD) == 0) in siu_set_termios() 566 if (UART_ENABLE_MS(port, c_cflag)) in siu_set_termios()
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | termios.h | 30 *(unsigned short *)&k_termios->c_cflag = k_termio.c_cflag; \ 59 k_termio.c_cflag = k_termios->c_cflag; \
|
/Linux-v4.19/arch/ia64/include/asm/ |
D | termios.h | 35 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 47 put_user((termios)->c_cflag, &(termio)->c_cflag); \
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | termios.h | 29 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 41 put_user((termios)->c_cflag, &(termio)->c_cflag); \
|
/Linux-v4.19/arch/sparc/include/uapi/asm/ |
D | termbits.h | 20 unsigned short c_cflag; /* control mode flags */ member 30 tcflag_t c_cflag; /* control mode flags */ member 44 tcflag_t c_cflag; /* control mode flags */ member 55 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/drivers/mmc/core/ |
D | sdio_uart.c | 257 switch (termios->c_cflag & CSIZE) { in sdio_uart_change_speed() 273 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed() 275 if (termios->c_cflag & PARENB) in sdio_uart_change_speed() 277 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed() 290 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed() 292 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed() 295 termios->c_cflag |= B9600; in sdio_uart_change_speed() 329 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed() 336 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed() 882 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios() [all …]
|
/Linux-v4.19/net/bluetooth/rfcomm/ |
D | tty.c | 887 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios() 891 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios() 892 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios() 898 if (new->c_cflag & PARENB) { in rfcomm_tty_set_termios() 899 if (new->c_cflag & PARODD) { in rfcomm_tty_set_termios() 931 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios() 937 if (new->c_cflag & CSTOPB) in rfcomm_tty_set_termios() 943 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios() 946 switch (new->c_cflag & CSIZE) { in rfcomm_tty_set_termios() 1154 rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL; in rfcomm_init_ttys()
|
/Linux-v4.19/arch/xtensa/include/uapi/asm/ |
D | termbits.h | 28 tcflag_t c_cflag; /* control mode flags */ member 37 tcflag_t c_cflag; /* control mode flags */ member 48 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/arch/ia64/include/uapi/asm/ |
D | termbits.h | 24 tcflag_t c_cflag; /* control mode flags */ member 33 tcflag_t c_cflag; /* control mode flags */ member 44 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/arch/parisc/include/uapi/asm/ |
D | termbits.h | 15 tcflag_t c_cflag; /* control mode flags */ member 24 tcflag_t c_cflag; /* control mode flags */ member 35 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/include/uapi/asm-generic/ |
D | termbits.h | 15 tcflag_t c_cflag; /* control mode flags */ member 24 tcflag_t c_cflag; /* control mode flags */ member 35 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/arch/mips/include/uapi/asm/ |
D | termbits.h | 28 tcflag_t c_cflag; /* control mode flags */ member 37 tcflag_t c_cflag; /* control mode flags */ member 48 tcflag_t c_cflag; /* control mode flags */ member
|
/Linux-v4.19/drivers/usb/serial/ |
D | upd78f0730.c | 317 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios() 332 tty->termios.c_cflag &= ~CSIZE; in upd78f0730_set_termios() 333 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios() 352 tty->termios.c_cflag &= ~CMSPAR; in upd78f0730_set_termios() 369 tty->termios.c_cflag &= ~CRTSCTS; in upd78f0730_set_termios()
|