| /linux-6.15/drivers/tty/ |
| H A D | tty_baudrate.c | 62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 90 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 143 if (((termios->c_cflag >> IBSHIFT) & CBAUD) != B0) in tty_termios_encode_baud_rate() 151 if ((termios->c_cflag & CBAUD) == BOTHER) { in tty_termios_encode_baud_rate() 156 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 159 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate() 160 termios->c_cflag &= ~(CBAUD << IBSHIFT); in tty_termios_encode_baud_rate() 172 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate() 184 termios->c_cflag |= (baud_bits[i] << IBSHIFT); in tty_termios_encode_baud_rate() 191 termios->c_cflag |= BOTHER; in tty_termios_encode_baud_rate() [all …]
|
| H A D | tty_ioctl.c | 216 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 239 new->c_cflag &= HUPCL | CREAD | CLOCAL; in tty_termios_copy_hw() 240 new->c_cflag |= old->c_cflag & ~(HUPCL | CREAD | CLOCAL); in tty_termios_copy_hw() 260 if ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL)) in tty_termios_hw_change() 342 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB; in tty_set_termios() 374 termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag; in user_termio_to_kernel_termios() 391 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio() 749 tty->termios.c_cflag &= ~CLOCAL; in tty_change_softcar() 750 tty->termios.c_cflag |= bit; in tty_change_softcar() 884 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | termios.c | 22 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio() 39 err |= get_user(k->c_cflag, &u->c_cflag); in user_termios_to_kernel_termios() 61 err |= put_user(k->c_cflag, &u->c_cflag); in kernel_termios_to_user_termios() 83 err |= get_user(k->c_cflag, &u->c_cflag); in user_termios_to_kernel_termios_1() 103 err |= put_user(k->c_cflag, &u->c_cflag); in kernel_termios_to_user_termios_1()
|
| /linux-6.15/drivers/tty/serdev/ |
| H A D | serdev-ttyport.c | 124 ktermios.c_cflag &= ~(CSIZE | PARENB); in ttyport_open() 125 ktermios.c_cflag |= CS8; in ttyport_open() 126 ktermios.c_cflag |= CRTSCTS; in ttyport_open() 128 ktermios.c_cflag |= CLOCAL; in ttyport_open() 165 ktermios.c_cflag &= ~CBAUD; in ttyport_set_baudrate() 180 ktermios.c_cflag |= CRTSCTS; in ttyport_set_flow_control() 182 ktermios.c_cflag &= ~CRTSCTS; in ttyport_set_flow_control() 194 ktermios.c_cflag &= ~(PARENB | PARODD | CMSPAR); in ttyport_set_parity() 196 ktermios.c_cflag |= PARENB; in ttyport_set_parity() 198 ktermios.c_cflag |= PARODD; in ttyport_set_parity() [all …]
|
| /linux-6.15/arch/alpha/kernel/ |
| H A D | termios.c | 15 termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag; in user_termio_to_kernel_termios() 41 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio()
|
| /linux-6.15/drivers/tty/serial/ |
| H A D | fsl_linflexuart.c | 435 termios->c_cflag &= ~CSIZE; in linflex_set_termios() 436 termios->c_cflag |= old_csize; in linflex_set_termios() 450 if (termios->c_cflag & CMSPAR) { in linflex_set_termios() 452 termios->c_cflag &= ~CSIZE; in linflex_set_termios() 453 termios->c_cflag |= CS8; in linflex_set_termios() 459 if (termios->c_cflag & CSTOPB) in linflex_set_termios() 460 termios->c_cflag &= ~CSTOPB; in linflex_set_termios() 463 if ((termios->c_cflag & CSIZE) == CS7) in linflex_set_termios() 464 termios->c_cflag |= PARENB; in linflex_set_termios() 466 if ((termios->c_cflag & PARENB)) { in linflex_set_termios() [all …]
|
| H A D | 21285.c | 233 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios() 234 termios->c_cflag |= CLOCAL; in serial21285_set_termios() 249 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios() 264 if (termios->c_cflag & CSTOPB) in serial21285_set_termios() 266 if (termios->c_cflag & PARENB) { in serial21285_set_termios() 268 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios() 280 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 301 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()
|
| H A D | fsl_lpuart.c | 2011 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 2022 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 2023 termios->c_cflag |= CS8; in lpuart_set_termios() 2033 termios->c_cflag &= ~CRTSCTS; in lpuart_set_termios() 2040 termios->c_cflag &= ~CSTOPB; in lpuart_set_termios() 2044 termios->c_cflag |= PARENB; in lpuart_set_termios() 2247 termios->c_cflag &= ~CSIZE; in lpuart32_set_termios() 2258 termios->c_cflag &= ~CSIZE; in lpuart32_set_termios() 2259 termios->c_cflag |= CS8; in lpuart32_set_termios() 2285 if ((termios->c_cflag & CSIZE) == CS7 && !(termios->c_cflag & PARENB)) { in lpuart32_set_termios() [all …]
|
| H A D | digicolor-usart.c | 295 termios->c_cflag &= ~CMSPAR; in digicolor_uart_set_termios() 304 switch (termios->c_cflag & CSIZE) { in digicolor_uart_set_termios() 310 termios->c_cflag &= ~CSIZE; in digicolor_uart_set_termios() 311 termios->c_cflag |= CS8; in digicolor_uart_set_termios() 315 if (termios->c_cflag & CSTOPB) in digicolor_uart_set_termios() 318 if (termios->c_cflag & PARENB) { in digicolor_uart_set_termios() 320 if (termios->c_cflag & PARODD) in digicolor_uart_set_termios() 332 if (!(termios->c_cflag & CREAD)) in digicolor_uart_set_termios() 338 uart_update_timeout(port, termios->c_cflag, baud); in digicolor_uart_set_termios()
|
| H A D | vt8500_serial.c | 356 if (termios->c_cflag & PARENB) { in vt8500_set_termios() 358 termios->c_cflag &= ~CMSPAR; in vt8500_set_termios() 359 if (termios->c_cflag & PARODD) in vt8500_set_termios() 365 switch (termios->c_cflag & CSIZE) { in vt8500_set_termios() 371 termios->c_cflag &= ~CSIZE; in vt8500_set_termios() 372 termios->c_cflag |= CS8; in vt8500_set_termios() 378 if (termios->c_cflag & CSTOPB) in vt8500_set_termios() 393 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 407 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) in vt8500_set_termios()
|
| H A D | rda-uart.c | 258 switch (termios->c_cflag & CSIZE) { in rda_uart_set_termios() 265 termios->c_cflag &= ~CSIZE; in rda_uart_set_termios() 266 termios->c_cflag |= CS7; in rda_uart_set_termios() 274 if (termios->c_cflag & CSTOPB) in rda_uart_set_termios() 280 if (termios->c_cflag & PARENB) { in rda_uart_set_termios() 284 if (termios->c_cflag & CMSPAR) { in rda_uart_set_termios() 285 if (termios->c_cflag & PARODD) in rda_uart_set_termios() 289 } else if (termios->c_cflag & PARODD) { in rda_uart_set_termios() 299 if (termios->c_cflag & CRTSCTS) { in rda_uart_set_termios() 326 uart_update_timeout(port, termios->c_cflag, baud); in rda_uart_set_termios()
|
| H A D | mcf.c | 215 switch (termios->c_cflag & CSIZE) { in mcf_set_termios() 223 if (termios->c_cflag & PARENB) { in mcf_set_termios() 224 if (termios->c_cflag & CMSPAR) { in mcf_set_termios() 225 if (termios->c_cflag & PARODD) in mcf_set_termios() 230 if (termios->c_cflag & PARODD) in mcf_set_termios() 245 if (termios->c_cflag & CSTOPB) in mcf_set_termios() 250 if (termios->c_cflag & CRTSCTS) { in mcf_set_termios() 261 uart_update_timeout(port, termios->c_cflag, baud); in mcf_set_termios()
|
| H A D | sa1100.c | 393 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in sa1100_set_termios() 398 while ((termios->c_cflag & CSIZE) != CS7 && in sa1100_set_termios() 399 (termios->c_cflag & CSIZE) != CS8) { in sa1100_set_termios() 400 termios->c_cflag &= ~CSIZE; in sa1100_set_termios() 401 termios->c_cflag |= old_csize; in sa1100_set_termios() 405 if ((termios->c_cflag & CSIZE) == CS8) in sa1100_set_termios() 410 if (termios->c_cflag & CSTOPB) in sa1100_set_termios() 412 if (termios->c_cflag & PARENB) { in sa1100_set_termios() 414 if (!(termios->c_cflag & PARODD)) in sa1100_set_termios() 459 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios() [all …]
|
| H A D | clps711x.c | 260 termios->c_cflag &= ~CMSPAR; in uart_clps711x_set_termios() 268 switch (termios->c_cflag & CSIZE) { in uart_clps711x_set_termios() 284 if (termios->c_cflag & CSTOPB) in uart_clps711x_set_termios() 287 if (termios->c_cflag & PARENB) { in uart_clps711x_set_termios() 289 if (!(termios->c_cflag & PARODD)) in uart_clps711x_set_termios() 303 if (!(termios->c_cflag & CREAD)) in uart_clps711x_set_termios() 307 uart_update_timeout(port, termios->c_cflag, baud); in uart_clps711x_set_termios()
|
| H A D | serial_txx9.c | 584 termios->c_cflag &= ~(HUPCL | CMSPAR); in serial_txx9_set_termios() 585 termios->c_cflag |= CLOCAL; in serial_txx9_set_termios() 590 switch (termios->c_cflag & CSIZE) { in serial_txx9_set_termios() 599 termios->c_cflag &= ~CSIZE; in serial_txx9_set_termios() 600 termios->c_cflag |= CS8; in serial_txx9_set_termios() 605 if (termios->c_cflag & CSTOPB) in serial_txx9_set_termios() 610 if (termios->c_cflag & PARENB) in serial_txx9_set_termios() 612 if (!(termios->c_cflag & PARODD)) in serial_txx9_set_termios() 634 uart_update_timeout(up, termios->c_cflag, baud); in serial_txx9_set_termios() 662 if ((termios->c_cflag & CREAD) == 0) in serial_txx9_set_termios() [all …]
|
| /linux-6.15/drivers/mmc/core/ |
| H A D | sdio_uart.c | 252 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); in sdio_uart_change_speed() 254 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed() 256 if (termios->c_cflag & PARENB) in sdio_uart_change_speed() 258 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed() 271 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed() 273 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed() 276 termios->c_cflag |= B9600; in sdio_uart_change_speed() 310 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed() 317 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed() 860 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios() [all …]
|
| /linux-6.15/arch/parisc/include/uapi/asm/ |
| H A D | termbits.h | 13 tcflag_t c_cflag; /* control mode flags */ member 22 tcflag_t c_cflag; /* control mode flags */ member 33 tcflag_t c_cflag; /* control mode flags */ member
|
| /linux-6.15/include/uapi/asm-generic/ |
| H A D | termbits.h | 13 tcflag_t c_cflag; /* control mode flags */ member 22 tcflag_t c_cflag; /* control mode flags */ member 33 tcflag_t c_cflag; /* control mode flags */ member
|
| /linux-6.15/arch/mips/include/uapi/asm/ |
| H A D | termbits.h | 26 tcflag_t c_cflag; /* control mode flags */ member 35 tcflag_t c_cflag; /* control mode flags */ member 46 tcflag_t c_cflag; /* control mode flags */ member
|
| /linux-6.15/arch/alpha/include/uapi/asm/ |
| H A D | termbits.h | 19 tcflag_t c_cflag; /* control mode flags */ member 32 tcflag_t c_cflag; /* control mode flags */ member 45 tcflag_t c_cflag; /* control mode flags */ member
|
| /linux-6.15/net/bluetooth/rfcomm/ |
| H A 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()
|
| /linux-6.15/arch/sparc/include/uapi/asm/ |
| H A D | termbits.h | 17 tcflag_t c_cflag; /* control mode flags */ member 31 tcflag_t c_cflag; /* control mode flags */ member 42 tcflag_t c_cflag; /* control mode flags */ member
|
| /linux-6.15/tools/arch/x86/dell-uart-backlight-emulator/ |
| H A D | dell-uart-backlight-emulator.c | 68 tty.c_cflag &= ~CSTOPB; in main() 69 tty.c_cflag &= ~CRTSCTS; in main() 70 tty.c_cflag |= CLOCAL | CREAD; in main()
|
| /linux-6.15/drivers/usb/serial/ |
| H A D | upd78f0730.c | 314 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios() 329 tty->termios.c_cflag &= ~CSIZE; in upd78f0730_set_termios() 330 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios() 349 tty->termios.c_cflag &= ~CMSPAR; in upd78f0730_set_termios() 366 tty->termios.c_cflag &= ~CRTSCTS; in upd78f0730_set_termios()
|
| H A D | empeg.c | 110 termios->c_cflag in empeg_init_termios() 115 termios->c_cflag in empeg_init_termios()
|