/kernel/linux/linux-5.10/drivers/tty/ |
D | tty_baudrate.c | 62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 73 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 96 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 109 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate() 157 if ((termios->c_cflag >> IBSHIFT) & CBAUD) in tty_termios_encode_baud_rate() 165 if ((termios->c_cflag & CBAUD) == BOTHER) { in tty_termios_encode_baud_rate() 170 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 173 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate() 175 termios->c_cflag &= ~(CBAUD << IBSHIFT); in tty_termios_encode_baud_rate() 188 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate() [all …]
|
/kernel/linux/linux-5.10/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); \
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | fsl_linflexuart.c | 421 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in linflex_set_termios() 446 while ((termios->c_cflag & CSIZE) != CS8 && in linflex_set_termios() 447 (termios->c_cflag & CSIZE) != CS7) { in linflex_set_termios() 448 termios->c_cflag &= ~CSIZE; in linflex_set_termios() 449 termios->c_cflag |= old_csize; in linflex_set_termios() 453 if ((termios->c_cflag & CSIZE) == CS7) { in linflex_set_termios() 458 if ((termios->c_cflag & CSIZE) == CS8) { in linflex_set_termios() 463 if (termios->c_cflag & CMSPAR) { in linflex_set_termios() 464 if ((termios->c_cflag & CSIZE) != CS8) { in linflex_set_termios() 465 termios->c_cflag &= ~CSIZE; in linflex_set_termios() [all …]
|
D | fsl_lpuart.c | 1214 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma() 1215 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma() 1821 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios() 1838 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios() 1839 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios() 1840 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 1841 termios->c_cflag |= old_csize; in lpuart_set_termios() 1845 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios() 1846 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios() 1849 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios() [all …]
|
D | 21285.c | 254 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios() 255 termios->c_cflag |= CLOCAL; in serial21285_set_termios() 270 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios() 285 if (termios->c_cflag & CSTOPB) in serial21285_set_termios() 287 if (termios->c_cflag & PARENB) { in serial21285_set_termios() 289 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios() 301 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 322 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()
|
D | pnx8xxx_uart.c | 440 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in pnx8xxx_set_termios() 445 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios() 446 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios() 447 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios() 448 termios->c_cflag |= old_csize; in pnx8xxx_set_termios() 452 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios() 457 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios() 459 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios() 461 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios() 507 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios() [all …]
|
D | digicolor-usart.c | 297 termios->c_cflag &= ~CMSPAR; in digicolor_uart_set_termios() 306 switch (termios->c_cflag & CSIZE) { in digicolor_uart_set_termios() 312 termios->c_cflag &= ~CSIZE; in digicolor_uart_set_termios() 313 termios->c_cflag |= CS8; in digicolor_uart_set_termios() 317 if (termios->c_cflag & CSTOPB) in digicolor_uart_set_termios() 320 if (termios->c_cflag & PARENB) { in digicolor_uart_set_termios() 322 if (termios->c_cflag & PARODD) in digicolor_uart_set_termios() 334 if (!(termios->c_cflag & CREAD)) in digicolor_uart_set_termios() 340 uart_update_timeout(port, termios->c_cflag, baud); in digicolor_uart_set_termios()
|
/kernel/linux/linux-5.10/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); \
|
/kernel/linux/linux-5.10/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); \
|
/kernel/linux/linux-5.10/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; \
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | sdio_uart.c | 253 switch (termios->c_cflag & CSIZE) { in sdio_uart_change_speed() 269 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed() 271 if (termios->c_cflag & PARENB) in sdio_uart_change_speed() 273 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed() 286 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed() 288 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed() 291 termios->c_cflag |= B9600; in sdio_uart_change_speed() 325 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed() 332 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed() 878 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios() [all …]
|
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
D | tty.c | 873 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios() 877 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios() 878 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios() 884 if (new->c_cflag & PARENB) { in rfcomm_tty_set_termios() 885 if (new->c_cflag & PARODD) { in rfcomm_tty_set_termios() 917 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios() 923 if (new->c_cflag & CSTOPB) in rfcomm_tty_set_termios() 929 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios() 932 switch (new->c_cflag & CSIZE) { in rfcomm_tty_set_termios() 1140 rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL; in rfcomm_init_ttys()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/ |
D | termbits.h | 16 tcflag_t c_cflag; member 24 tcflag_t c_cflag; member 34 tcflag_t c_cflag; member
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/ |
D | termbits.h | 29 tcflag_t c_cflag; member 37 tcflag_t c_cflag; member 47 tcflag_t c_cflag; member
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-mips/asm/ |
D | termbits.h | 29 tcflag_t c_cflag; member 37 tcflag_t c_cflag; member 47 tcflag_t c_cflag; member
|