| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A D | termios.h | 20 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument 27 termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp; in user_termio_to_kernel_termios() 31 termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp; in user_termio_to_kernel_termios() 35 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios() 39 termios->c_lflag = (0xffff0000 & termios->c_lflag) | tmp; in user_termio_to_kernel_termios() 41 if (get_user(termios->c_line, &termio->c_line) < 0) in user_termio_to_kernel_termios() 44 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 57 struct ktermios *termios) in kernel_termios_to_user_termio() argument 59 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio() 60 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
| H A D | termios-base.h | 15 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument 22 termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp; in user_termio_to_kernel_termios() 26 termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp; in user_termio_to_kernel_termios() 30 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios() 34 termios->c_lflag = (0xffff0000 & termios->c_lflag) | tmp; in user_termio_to_kernel_termios() 36 if (get_user(termios->c_line, &termio->c_line) < 0) in user_termio_to_kernel_termios() 39 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0) in user_termio_to_kernel_termios() 52 struct ktermios *termios) in kernel_termios_to_user_termio() argument 54 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio() 55 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A D | termios.h | 29 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument 39 termios->c_iflag = (termios->c_iflag & 0xffff0000) | iflag; in user_termio_to_kernel_termios() 41 termios->c_oflag = (termios->c_oflag & 0xffff0000) | oflag; in user_termio_to_kernel_termios() 43 termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag; in user_termio_to_kernel_termios() 45 termios->c_lflag = (termios->c_lflag & 0xffff0000) | lflag; in user_termio_to_kernel_termios() 46 err |=__get_user(termios->c_line, &termio->c_line); in user_termio_to_kernel_termios() 50 if (__copy_from_user(termios->c_cc, termio->c_cc, NCC)) in user_termio_to_kernel_termios() 60 struct ktermios *termios) in kernel_termios_to_user_termio() argument 67 err = __put_user(termios->c_iflag, &termio->c_iflag); in kernel_termios_to_user_termio() 68 err |= __put_user(termios->c_oflag, &termio->c_oflag); in kernel_termios_to_user_termio() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/ |
| H A D | tty_ioctl.c | 245 struct ktermios *termios = &tty->termios; in unset_locked_termios() local 251 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios() 252 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); in unset_locked_termios() 253 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 254 NOSET_MASK(termios->c_lflag, old->c_lflag, locked->c_lflag); in unset_locked_termios() 255 termios->c_line = locked->c_line ? old->c_line : termios->c_line; in unset_locked_termios() 257 termios->c_cc[i] = locked->c_cc[i] ? in unset_locked_termios() 258 old->c_cc[i] : termios->c_cc[i]; in unset_locked_termios() 329 old_termios = tty->termios; in tty_set_termios() 330 tty->termios = *new_termios; in tty_set_termios() [all …]
|
| H A D | tty_baudrate.c | 57 speed_t tty_termios_baud_rate(struct ktermios *termios) in tty_termios_baud_rate() argument 61 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 66 return termios->c_ospeed; in tty_termios_baud_rate() 72 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 92 speed_t tty_termios_input_baud_rate(struct ktermios *termios) in tty_termios_input_baud_rate() argument 95 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 98 return tty_termios_baud_rate(termios); in tty_termios_input_baud_rate() 102 return termios->c_ispeed; in tty_termios_input_baud_rate() 108 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate() 114 return tty_termios_baud_rate(termios); in tty_termios_input_baud_rate() [all …]
|
| /OK3568_Linux_fs/kernel/arch/ia64/include/asm/ |
| H A D | termios.h | 25 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 28 *(unsigned short *) &(termios)->x = __tmp; \ 31 #define user_termio_to_kernel_termios(termios, termio) \ argument 33 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \ 34 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \ 35 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 36 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \ 37 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 43 #define kernel_termios_to_user_termio(termio, termios) \ argument 45 put_user((termios)->c_iflag, &(termio)->c_iflag); \ [all …]
|
| /OK3568_Linux_fs/kernel/arch/parisc/include/asm/ |
| H A D | termios.h | 19 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \ argument 22 *(unsigned short *) &(termios)->x = __tmp; \ 25 #define user_termio_to_kernel_termios(termios, termio) \ argument 27 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \ 28 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \ 29 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \ 30 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \ 31 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 37 #define kernel_termios_to_user_termio(termio, termios) \ argument 39 put_user((termios)->c_iflag, &(termio)->c_iflag); \ [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | termios.h | 30 #define user_termio_to_kernel_termios(termios, termio) \ argument 35 (termios)->c_iflag = (0xffff0000 & ((termios)->c_iflag)) | tmp; \ 37 (termios)->c_oflag = (0xffff0000 & ((termios)->c_oflag)) | tmp; \ 39 (termios)->c_cflag = (0xffff0000 & ((termios)->c_cflag)) | tmp; \ 41 (termios)->c_lflag = (0xffff0000 & ((termios)->c_lflag)) | tmp; \ 42 err |= copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \ 51 #define kernel_termios_to_user_termio(termio, termios) \ argument 54 err = put_user((termios)->c_iflag, &(termio)->c_iflag); \ 55 err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \ 56 err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \ [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | oepydevshell-internal.py | 11 import termios 19 old = termios.tcgetattr(fd) 20 old[3] = old[3] | termios.ECHO | termios.ICANON 21 termios.tcsetattr(fd, termios.TCSADRAIN, old) 24 old = termios.tcgetattr(fd) 25 old[3] = old[3] &~ termios.ECHO &~ termios.ICANON 26 termios.tcsetattr(fd, termios.TCSADRAIN, old)
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/ |
| H A D | termios.h | 48 extern speed_t cfgetospeed (const struct termios *__termios_p) __THROW; 51 extern speed_t cfgetispeed (const struct termios *__termios_p) __THROW; 54 extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW; 57 extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW; 61 extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW; 66 extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW; 71 const struct termios *__termios_p) __THROW; 76 extern void cfmakeraw (struct termios *__termios_p) __THROW;
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/ |
| H A D | termios.h | 48 extern speed_t cfgetospeed (const struct termios *__termios_p) __THROW; 51 extern speed_t cfgetispeed (const struct termios *__termios_p) __THROW; 54 extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW; 57 extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW; 61 extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW; 66 extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW; 71 const struct termios *__termios_p) __THROW; 76 extern void cfmakeraw (struct termios *__termios_p) __THROW;
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-devtools/brcm-tools/files/ |
| H A D | brcm_patchram_plus1.c | 171 struct termios termios; variable 616 tcgetattr(uart_fd, &termios); in init_uart() 619 cfmakeraw(&termios); in init_uart() 621 termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP in init_uart() 623 termios.c_oflag &= ~OPOST; in init_uart() 624 termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in init_uart() 625 termios.c_cflag &= ~(CSIZE | PARENB); in init_uart() 626 termios.c_cflag |= CS8; in init_uart() 629 termios.c_cflag |= CRTSCTS; in init_uart() 630 tcsetattr(uart_fd, TCSANOW, &termios); in init_uart() [all …]
|
| /OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/ |
| H A D | bt_test.c | 826 struct termios termios; variable 837 int n = tcgetattr(uart_fd, &termios); in init_uart_brcm() 841 cfmakeraw(&termios); in init_uart_brcm() 843 termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP in init_uart_brcm() 845 termios.c_oflag &= ~OPOST; in init_uart_brcm() 846 termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in init_uart_brcm() 847 termios.c_cflag &= ~(CSIZE | PARENB); in init_uart_brcm() 848 termios.c_cflag |= CS8; in init_uart_brcm() 852 tcsetattr(uart_fd, TCSANOW, &termios); in init_uart_brcm() 854 tcsetattr(uart_fd, TCSANOW, &termios); in init_uart_brcm() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/serial/ |
| H A D | empeg.c | 80 struct ktermios *termios = &tty->termios; in empeg_init_termios() local 91 termios->c_iflag in empeg_init_termios() 101 termios->c_oflag in empeg_init_termios() 104 termios->c_lflag in empeg_init_termios() 111 termios->c_cflag in empeg_init_termios() 116 termios->c_cflag in empeg_init_termios()
|
| /OK3568_Linux_fs/external/rkwifibt/tools/brcm_tools/ |
| H A D | brcm_patchram_plus1.c | 199 struct termios termios; variable 666 tcgetattr(uart_fd, &termios); in init_uart() 669 cfmakeraw(&termios); in init_uart() 671 termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP in init_uart() 673 termios.c_oflag &= ~OPOST; in init_uart() 674 termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); in init_uart() 675 termios.c_cflag &= ~(CSIZE | PARENB); in init_uart() 676 termios.c_cflag |= CS8; in init_uart() 679 termios.c_cflag |= CRTSCTS; in init_uart() 680 tcsetattr(uart_fd, TCSANOW, &termios); in init_uart() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | 21285.c | 245 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, in serial21285_set_termios() argument 254 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios() 255 termios->c_cflag |= CLOCAL; in serial21285_set_termios() 260 termios->c_iflag &= ~(IGNBRK | BRKINT); in serial21285_set_termios() 265 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios() 268 tty_termios_encode_baud_rate(termios, b, b); 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() [all …]
|
| H A D | fsl_linflexuart.c | 416 linflex_set_termios(struct uart_port *port, struct ktermios *termios, in linflex_set_termios() argument 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 | 1203 struct ktermios *termios = &tty->termios; in lpuart_start_rx_dma() local 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() 1786 lpuart_set_termios(struct uart_port *port, struct ktermios *termios, in lpuart_set_termios() argument 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() [all …]
|
| H A D | pnx8xxx_uart.c | 433 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, in pnx8xxx_set_termios() argument 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() 468 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in pnx8xxx_set_termios() [all …]
|
| H A D | clps711x.c | 221 struct ktermios *termios) in uart_clps711x_set_ldisc() argument 227 (termios->c_line == N_IRDA) ? SYSCON1_SIREN : 0); in uart_clps711x_set_ldisc() 253 struct ktermios *termios, in uart_clps711x_set_termios() argument 260 termios->c_cflag &= ~CMSPAR; in uart_clps711x_set_termios() 261 termios->c_iflag &= ~(BRKINT | IGNBRK); in uart_clps711x_set_termios() 264 baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096, 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() [all …]
|
| H A D | digicolor-usart.c | 289 struct ktermios *termios, in digicolor_uart_set_termios() argument 297 termios->c_cflag &= ~CMSPAR; in digicolor_uart_set_termios() 298 termios->c_iflag &= ~(BRKINT | IGNBRK); in digicolor_uart_set_termios() 301 baud = uart_get_baud_rate(port, termios, old, 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() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | tty.h | 107 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) 108 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) 109 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) 110 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) 111 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) 112 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) 113 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) 114 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) 115 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) 116 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/jsm/ |
| H A D | jsm_tty.c | 153 struct ktermios *termios; in jsm_tty_send_xchar() local 156 termios = &port->state->port.tty->termios; in jsm_tty_send_xchar() 157 if (ch == termios->c_cc[VSTART]) in jsm_tty_send_xchar() 160 if (ch == termios->c_cc[VSTOP]) in jsm_tty_send_xchar() 194 struct ktermios *termios; in jsm_tty_open() local 245 termios = &port->state->port.tty->termios; in jsm_tty_open() 246 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open() 247 channel->ch_c_iflag = termios->c_iflag; in jsm_tty_open() 248 channel->ch_c_oflag = termios->c_oflag; in jsm_tty_open() 249 channel->ch_c_lflag = termios->c_lflag; in jsm_tty_open() [all …]
|
| /OK3568_Linux_fs/buildroot/package/python3/ |
| H A D | 0008-Serial-ioctl-workaround.patch | 14 Modules/termios.c | 2 ++ 17 diff --git a/Modules/termios.c b/Modules/termios.c 19 --- a/Modules/termios.c 20 +++ b/Modules/termios.c 24 #include <termios.h>
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/picocom/picocom/ |
| H A D | 0001-Fix-building-with-musl.patch | 20 #include <termios.h> 35 tc2setattr(int fd, int optional_actions, const struct termios *tios) 37 @@ -79,8 +84,13 @@ tc2setattr(int fd, int optional_actions, const struct termios *tios) 51 @@ -101,8 +111,13 @@ tc2getattr(int fd, struct termios *tios) 65 @@ -131,7 +146,11 @@ cf2setispeed(struct termios *tios, speed_t speed) 77 @@ -156,7 +175,11 @@ cf2setospeed_custom(struct termios *tios, int speed) 89 @@ -177,7 +200,11 @@ cf2setispeed_custom(struct termios *tios, int speed)
|