/drivers/tty/ |
H A D | tty_ioctl.c | 10 #include <linux/termios.h> 32 * Internal flag options for termios setting behavior 97 * Takes the termios mutex to protect against parallel throttle/unthrottle 99 * termios data at this point when implementing software flow control. 118 * Takes the termios mutex to protect against parallel throttle/unthrottle 120 * termios data at this point when implementing software flow control. 169 static void unset_locked_termios(struct ktermios *termios, argument 182 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); 183 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); 184 NOSET_MASK(termios 241 tty_termios_baud_rate(struct ktermios *termios) argument 276 tty_termios_input_baud_rate(struct ktermios *termios) argument 325 tty_termios_encode_baud_rate(struct ktermios *termios, speed_t ibaud, speed_t obaud) argument 739 set_sgflags(struct ktermios *termios, int flags) argument 780 struct ktermios termios; local [all...] |
H A D | pty.c | 229 tty->termios->c_cflag &= ~(CSIZE | PARENB); 230 tty->termios->c_cflag |= (CS8 | CREAD); 238 * Update the termios variables and send the necessary signals to 299 /* We always use new tty termios data so we can do this 495 kfree(tty->termios); 515 tty->termios = kzalloc(sizeof(struct ktermios[2]), GFP_KERNEL); 516 if (tty->termios == NULL) 518 *tty->termios = driver->init_termios; 519 tty->termios_locked = tty->termios + 1; 521 o_tty->termios [all...] |
/drivers/usb/serial/ |
H A D | empeg.c | 99 struct ktermios *termios = tty->termios; local 110 termios->c_iflag 120 termios->c_oflag 123 termios->c_lflag 130 termios->c_cflag 135 termios->c_cflag
|
H A D | kl5kusb105.c | 133 struct ktermios termios; member in struct:klsi_105_private 266 /* priv->termios is left uninitialized until port opening */ 323 /* set up termios structure */ 325 priv->termios.c_iflag = tty->termios->c_iflag; 326 priv->termios.c_oflag = tty->termios->c_oflag; 327 priv->termios.c_cflag = tty->termios->c_cflag; 328 priv->termios [all...] |
H A D | ark3116.c | 218 struct ktermios *termios = tty->termios; local 219 *termios = tty_std_termios; 220 termios->c_cflag = B9600 | CS8 222 termios->c_ispeed = 9600; 223 termios->c_ospeed = 9600; 232 struct ktermios *termios = tty->termios; local 233 unsigned int cflag = termios->c_cflag; 343 if (tty_termios_baud_rate(termios)) [all...] |
H A D | cypress_m8.c | 130 struct ktermios tmp_termios; /* stores the old termios settings */ 615 /* Set termios */ 958 *(tty->termios) = tty_std_termios; 959 tty->termios->c_cflag = B4800 | CS8 | CREAD | HUPCL | 961 tty->termios->c_ispeed = 4800; 962 tty->termios->c_ospeed = 4800; 964 *(tty->termios) = tty_std_termios; 965 tty->termios->c_cflag = B9600 | CS8 | CREAD | HUPCL | 967 tty->termios->c_ispeed = 9600; 968 tty->termios [all...] |
/drivers/tty/serial/ |
H A D | 21285.c | 214 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, argument 223 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); 224 termios->c_cflag |= CLOCAL; 229 termios->c_iflag &= ~(IGNBRK | BRKINT); 234 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 237 tty_termios_encode_baud_rate(termios, b, b); 239 switch (termios->c_cflag & CSIZE) { 254 if (termios->c_cflag & CSTOPB) 256 if (termios->c_cflag & PARENB) { 258 if (!(termios [all...] |
H A D | pnx8xxx_uart.c | 432 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, argument 443 while ((termios->c_cflag & CSIZE) != CS7 && 444 (termios->c_cflag & CSIZE) != CS8) { 445 termios->c_cflag &= ~CSIZE; 446 termios->c_cflag |= old_csize; 450 if ((termios->c_cflag & CSIZE) == CS8) 455 if (termios->c_cflag & CSTOPB) 457 if (termios->c_cflag & PARENB) { 459 if (!(termios->c_cflag & PARODD)) 466 baud = uart_get_baud_rate(port, termios, ol [all...] |
H A D | clps711x.c | 286 clps711xuart_set_termios(struct uart_port *port, struct ktermios *termios, argument 295 termios->c_cflag |= CREAD; 300 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 303 switch (termios->c_cflag & CSIZE) { 317 if (termios->c_cflag & CSTOPB) 319 if (termios->c_cflag & PARENB) { 321 if (!(termios->c_cflag & PARODD)) 332 uart_update_timeout(port, termios->c_cflag, baud); 335 if (termios->c_iflag & INPCK) 342 if (termios [all...] |
H A D | serial_ks8695.c | 383 static void ks8695uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 392 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 395 switch (termios->c_cflag & CSIZE) { 411 if (termios->c_cflag & CSTOPB) 415 if (termios->c_cflag & PARENB) { 416 if (termios->c_cflag & CMSPAR) { /* Mark or Space parity */ 417 if (termios->c_cflag & PARODD) 422 else if (termios->c_cflag & PARODD) 436 uart_update_timeout(port, termios->c_cflag, baud); 439 if (termios [all...] |
H A D | xilinx_uartps.c | 425 * xuartps_set_termios - termios operations, handling data length, parity, 428 * @termios: Handle to the input termios structure 429 * @old: Values of the previously saved termios structure 433 struct ktermios *termios, struct ktermios *old) 454 baud = uart_get_baud_rate(port, termios, old, 0, 10000000); 456 if (tty_termios_baud_rate(termios)) 457 tty_termios_encode_baud_rate(termios, baud, baud); 462 uart_update_timeout(port, termios->c_cflag, baud); 485 if (termios 432 xuartps_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
H A D | netx-serial.c | 337 netx_set_termios(struct uart_port *port, struct ktermios *termios, argument 345 switch (termios->c_cflag & CSIZE) { 360 if (termios->c_cflag & CSTOPB) 363 if (termios->c_cflag & PARENB) { 365 if (!(termios->c_cflag & PARODD)) 369 if (termios->c_cflag & CRTSCTS) 372 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 380 uart_update_timeout(port, termios->c_cflag, baud); 396 if (UART_ENABLE_MS(port, termios->c_cflag)) 409 if (termios [all...] |
H A D | vt8500_serial.c | 327 struct ktermios *termios, 339 baud = uart_get_baud_rate(port, termios, old, 900, 921600); 341 if (tty_termios_baud_rate(termios)) 342 tty_termios_encode_baud_rate(termios, baud, baud); 347 if (termios->c_cflag & PARENB) { 349 termios->c_cflag &= ~CMSPAR; 350 if (termios->c_cflag & PARODD) 356 switch (termios->c_cflag & CSIZE) { 362 termios->c_cflag &= ~CSIZE; 363 termios 326 vt8500_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
H A D | mrst_max3110.c | 586 serial_m3110_set_termios(struct uart_port *port, struct ktermios *termios, argument 596 switch (termios->c_cflag & CSIZE) { 603 termios->c_cflag &= ~CSIZE; 604 termios->c_cflag |= CS8; 611 baud = uart_get_baud_rate(port, termios, old, 0, 230400); 652 tty_termios_encode_baud_rate(termios, baud, baud); 664 tty_termios_encode_baud_rate(termios, baud, baud); 669 if (unlikely(termios->c_cflag & CMSPAR)) 670 termios->c_cflag &= ~CMSPAR; 672 if (termios [all...] |
H A D | sa1100.c | 407 sa1100_set_termios(struct uart_port *port, struct ktermios *termios, argument 418 while ((termios->c_cflag & CSIZE) != CS7 && 419 (termios->c_cflag & CSIZE) != CS8) { 420 termios->c_cflag &= ~CSIZE; 421 termios->c_cflag |= old_csize; 425 if ((termios->c_cflag & CSIZE) == CS8) 430 if (termios->c_cflag & CSTOPB) 432 if (termios->c_cflag & PARENB) { 434 if (!(termios->c_cflag & PARODD)) 441 baud = uart_get_baud_rate(port, termios, ol [all...] |
H A D | serial_core.c | 165 tty->termios->c_cflag = uport->cons->cflag; 178 if (tty->termios->c_cflag & CBAUD) 246 if (!tty || (tty->termios->c_cflag & HUPCL)) 271 * @cflag: termios cflag value 321 * @termios: desired termios settings. 322 * @old: old termios (or NULL) 326 * Decode the termios structure into a numeric baud rate, 330 * If the new baud rate is invalid, try the old termios setting. 333 * Update the @termios structur 338 uart_get_baud_rate(struct uart_port *port, struct ktermios *termios, struct ktermios *old, unsigned int min, unsigned int max) argument 440 struct ktermios *termios; local 1772 struct ktermios termios; local 1938 struct ktermios termios; local [all...] |
H A D | m32r_sio.c | 695 struct ktermios *termios, struct ktermios *old) 702 switch (termios->c_cflag & CSIZE) { 718 if (termios->c_cflag & CSTOPB) 720 if (termios->c_cflag & PARENB) 722 if (!(termios->c_cflag & PARODD)) 725 if (termios->c_cflag & CMSPAR) 733 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/4); 735 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 750 uart_update_timeout(port, termios->c_cflag, baud); 753 if (termios 694 m32r_sio_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
H A D | sirfsoc_uart.c | 344 struct ktermios *termios, 361 switch (termios->c_cflag & CSIZE) { 376 if (termios->c_cflag & CSTOPB) 378 baud_rate = uart_get_baud_rate(port, termios, old, 0, 4000000); 383 if (termios->c_iflag & INPCK) 386 if (termios->c_iflag & (BRKINT | PARMRK)) 389 if (termios->c_iflag & IGNPAR) 392 if ((termios->c_cflag & CREAD) == 0) 395 if (termios->c_cflag & PARENB) { 396 if (termios 343 sirfsoc_uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
H A D | mcf.c | 196 static void mcf_set_termios(struct uart_port *port, struct ktermios *termios, argument 206 baud = uart_get_baud_rate(port, termios, old, 0, 230400); 217 switch (termios->c_cflag & CSIZE) { 225 if (termios->c_cflag & PARENB) { 226 if (termios->c_cflag & CMSPAR) { 227 if (termios->c_cflag & PARODD) 232 if (termios->c_cflag & PARODD) 241 if (termios->c_cflag & CSTOPB) 246 if (termios->c_cflag & CRTSCTS) { 252 uart_update_timeout(port, termios [all...] |
H A D | samsung.c | 682 struct ktermios *termios, 697 termios->c_cflag &= ~(HUPCL | CMSPAR); 698 termios->c_cflag |= CLOCAL; 704 baud = uart_get_baud_rate(port, termios, old, 0, 115200*8); 739 switch (termios->c_cflag & CSIZE) { 762 if (termios->c_cflag & CSTOPB) 765 umcon = (termios->c_cflag & CRTSCTS) ? S3C2410_UMCOM_AFC : 0; 767 if (termios->c_cflag & PARENB) { 768 if (termios->c_cflag & PARODD) 796 uart_update_timeout(port, termios 681 s3c24xx_serial_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 1028 struct ktermios *termios; local [all...] |
H A D | pxa.c | 456 serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios, argument 465 switch (termios->c_cflag & CSIZE) { 481 if (termios->c_cflag & CSTOPB) 483 if (termios->c_cflag & PARENB) 485 if (!(termios->c_cflag & PARODD)) 491 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 516 uart_update_timeout(port, termios->c_cflag, baud); 519 if (termios->c_iflag & INPCK) 521 if (termios->c_iflag & (BRKINT | PARMRK)) 528 if (termios [all...] |
/drivers/tty/serial/jsm/ |
H A D | jsm_tty.c | 161 struct ktermios *termios; local 164 termios = port->state->port.tty->termios; 165 if (ch == termios->c_cc[VSTART]) 168 if (ch == termios->c_cc[VSTOP]) 203 struct ktermios *termios; local 253 termios = port->state->port.tty->termios; 254 channel->ch_c_cflag = termios->c_cflag; 255 channel->ch_c_iflag = termios 310 jsm_tty_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old_termios) argument [all...] |
/drivers/mmc/card/ |
H A D | sdio_uart.c | 269 struct ktermios *termios, 275 switch (termios->c_cflag & CSIZE) { 291 if (termios->c_cflag & CSTOPB) 293 if (termios->c_cflag & PARENB) 295 if (!(termios->c_cflag & PARODD)) 299 baud = tty_termios_baud_rate(termios); 308 termios->c_cflag &= ~CBAUD; 310 termios->c_cflag |= old->c_cflag & CBAUD; 313 termios->c_cflag |= B9600; 323 if (termios 268 sdio_uart_change_speed(struct sdio_uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
/drivers/misc/ibmasm/ |
H A D | uart.c | 25 #include <linux/termios.h>
|
/drivers/net/irda/ |
H A D | irtty-sir.c | 127 old_termios = *(tty->termios); 128 cflag = tty->termios->c_cflag; 284 old_termios = *(tty->termios); 285 cflag = tty->termios->c_cflag; 292 tty->termios->c_cflag = cflag; 504 * some tty write and/or termios or ioctl operations.
|