| /OK3568_Linux_fs/kernel/drivers/tty/ |
| H A D | tty_baudrate.c | 61 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 72 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 95 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 108 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate() 156 if ((termios->c_cflag >> IBSHIFT) & CBAUD) in tty_termios_encode_baud_rate() 164 if ((termios->c_cflag & CBAUD) == BOTHER) { in tty_termios_encode_baud_rate() 169 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 172 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate() 174 termios->c_cflag &= ~(CBAUD << IBSHIFT); in tty_termios_encode_baud_rate() 187 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate() [all …]
|
| H A 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() 641 tty->termios.c_cflag &= ~CLOCAL; in tty_change_softcar() 642 tty->termios.c_cflag |= bit; in tty_change_softcar() 781 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A 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); \
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/shared/ |
| H A D | posix_tty.c | 153 t.c_cflag &= ~(CSIZE | PARENB); in xf86OpenSerial() 154 t.c_cflag |= CS8 | CLOCAL; in xf86OpenSerial() 217 t.c_cflag &= ~(CSTOPB); in xf86SetSerial() 220 t.c_cflag |= CSTOPB; in xf86SetSerial() 232 t.c_cflag &= ~(CSIZE); in xf86SetSerial() 233 t.c_cflag |= CS5; in xf86SetSerial() 236 t.c_cflag &= ~(CSIZE); in xf86SetSerial() 237 t.c_cflag |= CS6; in xf86SetSerial() 240 t.c_cflag &= ~(CSIZE); in xf86SetSerial() 241 t.c_cflag |= CS7; in xf86SetSerial() [all …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | rbsb.c | 274 tty.c_cflag &= ~PARENB; /* Disable parity */ in io_mode() 275 tty.c_cflag |= CS8; /* Set character size = 8 */ in io_mode() 277 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode() 321 tty.c_cflag &= ~(PARENB); /* Same baud rate, disable parity */ in io_mode() 323 tty.c_cflag &= ~(CSIZE); in io_mode() 324 tty.c_cflag |= CS8; in io_mode() 326 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode() 357 tty.c_cflag &= ~PARENB; /* Disable parity */ in io_mode() 358 tty.c_cflag |= CS8; /* Set character size = 8 */ in io_mode() 360 tty.c_cflag |= CSTOPB; /* Set two stop bits */ in io_mode() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/picocom/picocom/ |
| H A D | 0001-Fix-building-with-musl.patch | 38 t2.c_cflag = tios->c_cflag; 52 tios->c_cflag = t2.c_cflag; 74 tios->c_cflag &= ~((CBAUD | CBAUDEX) << IBSHIFT); 75 tios->c_cflag |= (speed << IBSHIFT); 79 tios->c_cflag &= ~(CBAUD | CBAUDEX); 80 tios->c_cflag |= BOTHER; 91 tios->c_cflag &= ~((CBAUD | CBAUDEX) << IBSHIFT); 92 tios->c_cflag |= (BOTHER << IBSHIFT);
|
| /OK3568_Linux_fs/kernel/drivers/tty/serdev/ |
| H A D | serdev-ttyport.c | 140 ktermios.c_cflag &= ~(CSIZE | PARENB); in ttyport_open() 141 ktermios.c_cflag |= CS8; in ttyport_open() 142 ktermios.c_cflag |= CRTSCTS; in ttyport_open() 144 ktermios.c_cflag |= CLOCAL; in ttyport_open() 181 ktermios.c_cflag &= ~CBAUD; in ttyport_set_baudrate() 196 ktermios.c_cflag |= CRTSCTS; in ttyport_set_flow_control() 198 ktermios.c_cflag &= ~CRTSCTS; in ttyport_set_flow_control() 210 ktermios.c_cflag &= ~(PARENB | PARODD | CMSPAR); in ttyport_set_parity() 212 ktermios.c_cflag |= PARENB; in ttyport_set_parity() 214 ktermios.c_cflag |= PARODD; in ttyport_set_parity() [all …]
|
| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A 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()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A 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 …]
|
| H A D | fsl_lpuart.c | 1208 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma() 1209 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma() 1793 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios() 1810 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios() 1811 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios() 1812 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 1813 termios->c_cflag |= old_csize; in lpuart_set_termios() 1817 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios() 1818 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios() 1821 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios() [all …]
|
| H A 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()
|
| H A 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 …]
|
| H A 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()
|
| H A D | vt8500_serial.c | 379 if (termios->c_cflag & PARENB) { in vt8500_set_termios() 381 termios->c_cflag &= ~CMSPAR; in vt8500_set_termios() 382 if (termios->c_cflag & PARODD) in vt8500_set_termios() 388 switch (termios->c_cflag & CSIZE) { in vt8500_set_termios() 394 termios->c_cflag &= ~CSIZE; in vt8500_set_termios() 395 termios->c_cflag |= CS8; in vt8500_set_termios() 401 if (termios->c_cflag & CSTOPB) in vt8500_set_termios() 416 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 430 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) in vt8500_set_termios()
|
| H A D | sa1100.c | 420 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in sa1100_set_termios() 425 while ((termios->c_cflag & CSIZE) != CS7 && in sa1100_set_termios() 426 (termios->c_cflag & CSIZE) != CS8) { in sa1100_set_termios() 427 termios->c_cflag &= ~CSIZE; in sa1100_set_termios() 428 termios->c_cflag |= old_csize; in sa1100_set_termios() 432 if ((termios->c_cflag & CSIZE) == CS8) in sa1100_set_termios() 437 if (termios->c_cflag & CSTOPB) in sa1100_set_termios() 439 if (termios->c_cflag & PARENB) { in sa1100_set_termios() 441 if (!(termios->c_cflag & PARODD)) in sa1100_set_termios() 486 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios() [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/imxx11/gprs/ |
| H A D | gprs.cpp | 212 serialAttr.c_cflag &= ~CSIZE; in openSerialPort() 213 serialAttr.c_cflag |= CS8; in openSerialPort() 217 serialAttr.c_cflag &= ~CSIZE; in openSerialPort() 218 serialAttr.c_cflag |= CS7; in openSerialPort() 224 serialAttr.c_cflag |= (PARODD | PARENB); in openSerialPort() 229 serialAttr.c_cflag |= PARENB; in openSerialPort() 230 serialAttr.c_cflag &= ~PARODD; in openSerialPort()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/alpha/include/asm/ |
| H A D | termios.h | 30 *(unsigned short *)&k_termios->c_cflag = k_termio.c_cflag; \ 59 k_termio.c_cflag = k_termios->c_cflag; \
|
| /OK3568_Linux_fs/kernel/arch/ia64/include/asm/ |
| H A D | termios.h | 35 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 47 put_user((termios)->c_cflag, &(termio)->c_cflag); \
|
| /OK3568_Linux_fs/kernel/arch/parisc/include/asm/ |
| H A D | termios.h | 29 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 41 put_user((termios)->c_cflag, &(termio)->c_cflag); \
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/uapi/asm/ |
| H A 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
|
| /OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_uarttest/ |
| H A D | uarttest.c | 70 newtio.c_cflag = speed|CS8|CLOCAL|CREAD; in main() 71 newtio.c_cflag &= ~CSTOPB; in main() 72 newtio.c_cflag &= ~PARENB; in main()
|