/linux-6.1.9/drivers/tty/ |
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 …]
|
D | tty_ioctl.c | 233 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 257 new->c_cflag &= HUPCL | CREAD | CLOCAL; in tty_termios_copy_hw() 258 new->c_cflag |= old->c_cflag & ~(HUPCL | CREAD | CLOCAL); in tty_termios_copy_hw() 277 if ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL)) in tty_termios_hw_change() 360 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB; in tty_set_termios() 392 termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag; in user_termio_to_kernel_termios() 409 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio() 742 tty->termios.c_cflag &= ~CLOCAL; in tty_change_softcar() 743 tty->termios.c_cflag |= bit; in tty_change_softcar() 878 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()
|
/linux-6.1.9/arch/sparc/kernel/ |
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.1.9/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-6.1.9/arch/alpha/kernel/ |
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.1.9/drivers/tty/serial/ |
D | fsl_linflexuart.c | 408 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in linflex_set_termios() 433 while ((termios->c_cflag & CSIZE) != CS8 && in linflex_set_termios() 434 (termios->c_cflag & CSIZE) != CS7) { in linflex_set_termios() 435 termios->c_cflag &= ~CSIZE; in linflex_set_termios() 436 termios->c_cflag |= old_csize; in linflex_set_termios() 440 if ((termios->c_cflag & CSIZE) == CS7) { in linflex_set_termios() 445 if ((termios->c_cflag & CSIZE) == CS8) { in linflex_set_termios() 450 if (termios->c_cflag & CMSPAR) { in linflex_set_termios() 451 if ((termios->c_cflag & CSIZE) != CS8) { in linflex_set_termios() 452 termios->c_cflag &= ~CSIZE; in linflex_set_termios() [all …]
|
D | fsl_lpuart.c | 1265 unsigned int bits = tty_get_frame_size(termios->c_cflag); in lpuart_start_rx_dma() 1813 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios() 1830 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios() 1831 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios() 1832 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 1833 termios->c_cflag |= old_csize; in lpuart_set_termios() 1837 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios() 1838 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios() 1841 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios() 1842 if ((termios->c_cflag & CSIZE) != CS8) { 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 | 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()
|
D | vt8500_serial.c | 378 if (termios->c_cflag & PARENB) { in vt8500_set_termios() 380 termios->c_cflag &= ~CMSPAR; in vt8500_set_termios() 381 if (termios->c_cflag & PARODD) in vt8500_set_termios() 387 switch (termios->c_cflag & CSIZE) { in vt8500_set_termios() 393 termios->c_cflag &= ~CSIZE; in vt8500_set_termios() 394 termios->c_cflag |= CS8; in vt8500_set_termios() 400 if (termios->c_cflag & CSTOPB) in vt8500_set_termios() 415 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 429 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) in vt8500_set_termios()
|
D | sa1100.c | 418 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in sa1100_set_termios() 423 while ((termios->c_cflag & CSIZE) != CS7 && in sa1100_set_termios() 424 (termios->c_cflag & CSIZE) != CS8) { in sa1100_set_termios() 425 termios->c_cflag &= ~CSIZE; in sa1100_set_termios() 426 termios->c_cflag |= old_csize; in sa1100_set_termios() 430 if ((termios->c_cflag & CSIZE) == CS8) in sa1100_set_termios() 435 if (termios->c_cflag & CSTOPB) in sa1100_set_termios() 437 if (termios->c_cflag & PARENB) { in sa1100_set_termios() 439 if (!(termios->c_cflag & PARODD)) in sa1100_set_termios() 484 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios() [all …]
|
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()
|
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()
|
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()
|
D | serial_txx9.c | 606 termios->c_cflag &= ~(HUPCL | CMSPAR); in serial_txx9_set_termios() 607 termios->c_cflag |= CLOCAL; in serial_txx9_set_termios() 612 switch (termios->c_cflag & CSIZE) { in serial_txx9_set_termios() 621 termios->c_cflag &= ~CSIZE; in serial_txx9_set_termios() 622 termios->c_cflag |= CS8; in serial_txx9_set_termios() 627 if (termios->c_cflag & CSTOPB) in serial_txx9_set_termios() 632 if (termios->c_cflag & PARENB) in serial_txx9_set_termios() 634 if (!(termios->c_cflag & PARODD)) in serial_txx9_set_termios() 656 uart_update_timeout(up, termios->c_cflag, baud); in serial_txx9_set_termios() 684 if ((termios->c_cflag & CREAD) == 0) in serial_txx9_set_termios() [all …]
|
D | amba-pl010.c | 385 switch (termios->c_cflag & CSIZE) { in pl010_set_termios() 399 if (termios->c_cflag & CSTOPB) in pl010_set_termios() 401 if (termios->c_cflag & PARENB) { in pl010_set_termios() 403 if (!(termios->c_cflag & PARODD)) in pl010_set_termios() 414 uart_update_timeout(port, termios->c_cflag, baud); in pl010_set_termios() 441 if ((termios->c_cflag & CREAD) == 0) in pl010_set_termios() 446 if (UART_ENABLE_MS(port, termios->c_cflag)) in pl010_set_termios() 474 if (!UART_ENABLE_MS(port, termios->c_cflag)) { in pl010_set_ldisc()
|
/linux-6.1.9/arch/sparc/include/uapi/asm/ |
D | termbits.h | 17 unsigned short c_cflag; /* control mode flags */ member 27 tcflag_t c_cflag; /* control mode flags */ member 41 tcflag_t c_cflag; /* control mode flags */ member 52 tcflag_t c_cflag; /* control mode flags */ member
|
/linux-6.1.9/drivers/mmc/core/ |
D | sdio_uart.c | 254 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); in sdio_uart_change_speed() 256 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed() 258 if (termios->c_cflag & PARENB) in sdio_uart_change_speed() 260 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed() 273 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed() 275 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed() 278 termios->c_cflag |= B9600; in sdio_uart_change_speed() 312 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed() 319 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed() 865 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios() [all …]
|
/linux-6.1.9/include/uapi/asm-generic/ |
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.1.9/arch/parisc/include/uapi/asm/ |
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.1.9/arch/mips/include/uapi/asm/ |
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.1.9/arch/alpha/include/uapi/asm/ |
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.1.9/net/bluetooth/rfcomm/ |
D | tty.c | 875 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios() 879 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios() 880 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios() 886 if (new->c_cflag & PARENB) { in rfcomm_tty_set_termios() 887 if (new->c_cflag & PARODD) { in rfcomm_tty_set_termios() 919 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios() 925 if (new->c_cflag & CSTOPB) in rfcomm_tty_set_termios() 931 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios() 934 switch (new->c_cflag & CSIZE) { in rfcomm_tty_set_termios() 1142 rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL; in rfcomm_init_ttys()
|
/linux-6.1.9/drivers/usb/serial/ |
D | upd78f0730.c | 311 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios() 326 tty->termios.c_cflag &= ~CSIZE; in upd78f0730_set_termios() 327 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios() 346 tty->termios.c_cflag &= ~CMSPAR; in upd78f0730_set_termios() 363 tty->termios.c_cflag &= ~CRTSCTS; in upd78f0730_set_termios()
|
D | empeg.c | 111 termios->c_cflag in empeg_init_termios() 116 termios->c_cflag in empeg_init_termios()
|