Home
last modified time | relevance | path

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

1234567

/openbmc/linux/drivers/tty/
H A Dtty_baudrate.c62 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 Dtty_ioctl.c224 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios()
248 new->c_cflag &= HUPCL | CREAD | CLOCAL; in tty_termios_copy_hw()
249 new->c_cflag |= old->c_cflag & ~(HUPCL | CREAD | CLOCAL); in tty_termios_copy_hw()
268 if ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL)) in tty_termios_hw_change()
351 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB; in tty_set_termios()
383 termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag; in user_termio_to_kernel_termios()
400 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio()
754 tty->termios.c_cflag &= ~CLOCAL; in tty_change_softcar()
755 tty->termios.c_cflag |= bit; in tty_change_softcar()
890 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()
/openbmc/linux/arch/sparc/kernel/
H A Dtermios.c22 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()
/openbmc/linux/drivers/tty/serdev/
H A 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 …]
/openbmc/qemu/chardev/
H A Dchar-serial.c145 tty.c_cflag &= ~(CSIZE | PARENB | PARODD | CRTSCTS | CSTOPB); in tty_serial_init()
149 tty.c_cflag |= CS8; in tty_serial_init()
152 tty.c_cflag |= CS7; in tty_serial_init()
155 tty.c_cflag |= CS6; in tty_serial_init()
158 tty.c_cflag |= CS5; in tty_serial_init()
166 tty.c_cflag |= PARENB; in tty_serial_init()
169 tty.c_cflag |= PARENB | PARODD; in tty_serial_init()
173 tty.c_cflag |= CSTOPB; in tty_serial_init()
/openbmc/linux/arch/alpha/kernel/
H A Dtermios.c15 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()
/openbmc/linux/drivers/tty/serial/
H A Dfsl_linflexuart.c407 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in linflex_set_termios()
432 while ((termios->c_cflag & CSIZE) != CS8 && in linflex_set_termios()
433 (termios->c_cflag & CSIZE) != CS7) { in linflex_set_termios()
434 termios->c_cflag &= ~CSIZE; in linflex_set_termios()
435 termios->c_cflag |= old_csize; in linflex_set_termios()
439 if ((termios->c_cflag & CSIZE) == CS7) { in linflex_set_termios()
444 if ((termios->c_cflag & CSIZE) == CS8) { in linflex_set_termios()
449 if (termios->c_cflag & CMSPAR) { in linflex_set_termios()
450 if ((termios->c_cflag & CSIZE) != CS8) { in linflex_set_termios()
451 termios->c_cflag &= ~CSIZE; in linflex_set_termios()
[all …]
H A D21285.c233 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 Dfsl_lpuart.c1353 unsigned int bits = tty_get_frame_size(termios->c_cflag); in lpuart_start_rx_dma()
1985 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios()
2002 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios()
2003 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios()
2004 termios->c_cflag &= ~CSIZE; in lpuart_set_termios()
2005 termios->c_cflag |= old_csize; in lpuart_set_termios()
2009 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios()
2010 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios()
2013 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios()
2014 if ((termios->c_cflag & CSIZE) != CS8) { in lpuart_set_termios()
[all …]
H A Ddigicolor-usart.c295 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 Dvt8500_serial.c356 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 Dsa1100.c393 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 Dmcf.c215 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 Drda-uart.c258 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 Dclps711x.c260 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 Dserial_txx9.c583 termios->c_cflag &= ~(HUPCL | CMSPAR); in serial_txx9_set_termios()
584 termios->c_cflag |= CLOCAL; in serial_txx9_set_termios()
589 switch (termios->c_cflag & CSIZE) { in serial_txx9_set_termios()
598 termios->c_cflag &= ~CSIZE; in serial_txx9_set_termios()
599 termios->c_cflag |= CS8; in serial_txx9_set_termios()
604 if (termios->c_cflag & CSTOPB) in serial_txx9_set_termios()
609 if (termios->c_cflag & PARENB) in serial_txx9_set_termios()
611 if (!(termios->c_cflag & PARODD)) in serial_txx9_set_termios()
633 uart_update_timeout(up, termios->c_cflag, baud); in serial_txx9_set_termios()
661 if ((termios->c_cflag & CREAD) == 0) in serial_txx9_set_termios()
[all …]
/openbmc/linux/drivers/mmc/core/
H A Dsdio_uart.c254 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()
864 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios()
[all …]
/openbmc/linux/include/uapi/asm-generic/
H A Dtermbits.h13 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
/openbmc/linux/arch/parisc/include/uapi/asm/
H A Dtermbits.h13 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
/openbmc/linux/net/bluetooth/rfcomm/
H A Dtty.c876 if ((old->c_cflag & CRTSCTS) && !(new->c_cflag & CRTSCTS)) in rfcomm_tty_set_termios()
880 if (((old->c_cflag & PARENB) != (new->c_cflag & PARENB)) || in rfcomm_tty_set_termios()
881 ((old->c_cflag & PARODD) != (new->c_cflag & PARODD))) { in rfcomm_tty_set_termios()
887 if (new->c_cflag & PARENB) { in rfcomm_tty_set_termios()
888 if (new->c_cflag & PARODD) { in rfcomm_tty_set_termios()
920 if ((old->c_cflag & CSTOPB) != (new->c_cflag & CSTOPB)) in rfcomm_tty_set_termios()
926 if (new->c_cflag & CSTOPB) in rfcomm_tty_set_termios()
932 if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE)) in rfcomm_tty_set_termios()
935 switch (new->c_cflag & CSIZE) { in rfcomm_tty_set_termios()
1143 rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL; in rfcomm_init_ttys()
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dtermbits.h19 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
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dtermbits.h26 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
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dtermbits.h17 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
/openbmc/linux/drivers/usb/serial/
H A Dupd78f0730.c314 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 Dempeg.c111 termios->c_cflag in empeg_init_termios()
116 termios->c_cflag in empeg_init_termios()

1234567