Home
last modified time | relevance | path

Searched refs:c_cflag (Results 1 – 25 of 174) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/tty/
Dtty_baudrate.c61 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 …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dtermios.h38 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/
Dserdev-ttyport.c134 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/
Dtermios-base.h28 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()
Dtermios.h33 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/
Dtermios.h42 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/
Dfsl_linflexuart.c421 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 …]
Dfsl_lpuart.c1211 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma()
1212 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma()
1794 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios()
1811 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios()
1812 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios()
1813 termios->c_cflag &= ~CSIZE; in lpuart_set_termios()
1814 termios->c_cflag |= old_csize; in lpuart_set_termios()
1818 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios()
1819 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios()
1822 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios()
[all …]
D21285.c254 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()
Dpnx8xxx_uart.c440 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 …]
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dtermios.h35 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/
Dtermios.h29 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/
Dtermios.h30 *(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/
Dtermbits.h20 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/
Dsdio_uart.c253 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/
Dtty.c873 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/linux-5.10/arch/parisc/include/uapi/asm/
Dtermbits.h15 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/
Dtermbits.h15 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/patches/linux-5.10/prebuilts/usr/include/asm-generic/
Dtermbits.h29 tcflag_t c_cflag; member
37 tcflag_t c_cflag; member
47 tcflag_t c_cflag; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/
Dtermbits.h16 tcflag_t c_cflag; member
24 tcflag_t c_cflag; member
34 tcflag_t c_cflag; member
/kernel/linux/linux-5.10/arch/xtensa/include/uapi/asm/
Dtermbits.h28 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/linux-5.10/arch/ia64/include/uapi/asm/
Dtermbits.h24 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/mips/include/uapi/asm/
Dtermbits.h28 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/linux-5.10/arch/alpha/include/uapi/asm/
Dtermbits.h21 tcflag_t c_cflag; /* control mode flags */ member
34 tcflag_t c_cflag; /* control mode flags */ member
47 tcflag_t c_cflag; /* control mode flags */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-mips/asm/
Dtermbits.h29 tcflag_t c_cflag; member
37 tcflag_t c_cflag; member
47 tcflag_t c_cflag; member

1234567