/drivers/tty/serial/ |
D | suncore.c | 89 int baud, bits, stop, cflag; in sunserial_console_termios() local 118 cflag = CREAD | HUPCL | CLOCAL; in sunserial_console_termios() 132 case 150: cflag |= B150; break; in sunserial_console_termios() 133 case 300: cflag |= B300; break; in sunserial_console_termios() 134 case 600: cflag |= B600; break; in sunserial_console_termios() 135 case 1200: cflag |= B1200; break; in sunserial_console_termios() 136 case 2400: cflag |= B2400; break; in sunserial_console_termios() 137 case 4800: cflag |= B4800; break; in sunserial_console_termios() 138 case 9600: cflag |= B9600; break; in sunserial_console_termios() 139 case 19200: cflag |= B19200; break; in sunserial_console_termios() [all …]
|
D | dz.c | 73 unsigned int cflag; member 147 dport->cflag &= ~DZ_RXENAB; in dz_stop_rx() 148 dz_out(dport, DZ_LPR, dport->cflag); in dz_stop_rx() 566 unsigned int cflag, baud; in dz_set_termios() local 569 cflag = dport->port.line; in dz_set_termios() 573 cflag |= DZ_CS5; in dz_set_termios() 576 cflag |= DZ_CS6; in dz_set_termios() 579 cflag |= DZ_CS7; in dz_set_termios() 583 cflag |= DZ_CS8; in dz_set_termios() 587 cflag |= DZ_CSTOPB; in dz_set_termios() [all …]
|
D | sunsu.c | 91 unsigned int cflag; member 482 sunsu_change_speed(struct uart_port *port, unsigned int cflag, 487 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud() 490 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud() 491 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunsu_change_mouse_baud() 495 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud() 771 sunsu_change_speed(struct uart_port *port, unsigned int cflag, in sunsu_change_speed() argument 779 switch (cflag & CSIZE) { in sunsu_change_speed() 795 if (cflag & CSTOPB) in sunsu_change_speed() 797 if (cflag & PARENB) in sunsu_change_speed() [all …]
|
D | st-asc.c | 509 tcflag_t cflag; in asc_set_termios() local 519 cflag = termios->c_cflag; in asc_set_termios() 535 if ((cflag & CSIZE) == CS7) { in asc_set_termios() 537 cflag |= PARENB; in asc_set_termios() 539 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios() 541 cflag &= ~CSIZE; in asc_set_termios() 542 cflag |= CS8; in asc_set_termios() 544 termios->c_cflag = cflag; in asc_set_termios() 547 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios() 550 if (cflag & PARODD) in asc_set_termios() [all …]
|
D | max3100.c | 427 unsigned cflag; in max3100_set_termios() local 432 cflag = termios->c_cflag; in max3100_set_termios() 484 if ((cflag & CSIZE) == CS8) { in max3100_set_termios() 490 cflag = (cflag & ~CSIZE) | CS7; in max3100_set_termios() 494 if (cflag & CSTOPB) in max3100_set_termios() 500 if (cflag & PARENB) { in max3100_set_termios() 509 if (cflag & PARODD) in max3100_set_termios() 515 cflag &= ~CMSPAR; in max3100_set_termios() 516 termios->c_cflag = cflag; in max3100_set_termios()
|
D | sunzilog.c | 92 unsigned int cflag; member 282 unsigned int cur_cflag = up->cflag; in sunzilog_change_mouse_baud() 285 up->cflag &= ~CBAUD; in sunzilog_change_mouse_baud() 286 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud() 865 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, in sunzilog_convert_to_zs() argument 882 switch (cflag & CSIZE) { in sunzilog_convert_to_zs() 906 if (cflag & CSTOPB) in sunzilog_convert_to_zs() 910 if (cflag & PARENB) in sunzilog_convert_to_zs() 914 if (!(cflag & PARODD)) in sunzilog_convert_to_zs() 934 if ((cflag & CREAD) == 0) in sunzilog_convert_to_zs() [all …]
|
D | lantiq.c | 418 unsigned int cflag; in lqasc_set_termios() local 426 cflag = new->c_cflag; in lqasc_set_termios() 429 switch (cflag & CSIZE) { in lqasc_set_termios() 443 cflag &= ~CMSPAR; /* Mark/Space parity is not supported */ in lqasc_set_termios() 445 if (cflag & CSTOPB) in lqasc_set_termios() 448 if (cflag & PARENB) { in lqasc_set_termios() 449 if (!(cflag & PARODD)) in lqasc_set_termios() 472 if ((cflag & CREAD) == 0) in lqasc_set_termios() 512 uart_update_timeout(port, cflag, baud); in lqasc_set_termios()
|
D | sunsab.c | 679 static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, in sunsab_convert_to_sab() argument 687 switch (cflag & CSIZE) { in sunsab_convert_to_sab() 696 if (cflag & CSTOPB) in sunsab_convert_to_sab() 699 if (cflag & PARENB) in sunsab_convert_to_sab() 702 if (cflag & PARODD) { in sunsab_convert_to_sab() 757 if ((cflag & CREAD) == 0) in sunsab_convert_to_sab() 761 uart_update_timeout(&up->port, cflag, in sunsab_convert_to_sab() 892 switch (con->cflag & CBAUD) { in sunsab_console_setup() 933 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); in sunsab_console_setup()
|
D | sunhv.c | 330 unsigned int iflag, cflag; in sunhv_set_termios() local 336 cflag = termios->c_cflag; in sunhv_set_termios() 341 if ((cflag & CREAD) == 0) in sunhv_set_termios() 345 uart_update_timeout(port, cflag, in sunhv_set_termios()
|
/drivers/usb/serial/ |
D | belkin_sa.c | 283 unsigned int cflag; in belkin_sa_set_termios() local 294 cflag = termios->c_cflag; in belkin_sa_set_termios() 308 if ((cflag & CBAUD) != (old_cflag & CBAUD)) { in belkin_sa_set_termios() 349 if ((cflag ^ old_cflag) & (PARENB | PARODD)) { in belkin_sa_set_termios() 350 if (cflag & PARENB) in belkin_sa_set_termios() 351 urb_value = (cflag & PARODD) ? BELKIN_SA_PARITY_ODD in belkin_sa_set_termios() 360 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in belkin_sa_set_termios() 361 urb_value = BELKIN_SA_DATA_BITS(tty_get_char_size(cflag)); in belkin_sa_set_termios() 367 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios() 368 urb_value = (cflag & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios() [all …]
|
D | console.c | 62 int cflag = CREAD | HUPCL | CLOCAL; in usb_console_setup() local 89 cflag |= CS7; in usb_console_setup() 93 cflag |= CS8; in usb_console_setup() 98 cflag |= PARODD; in usb_console_setup() 101 cflag |= PARENB; in usb_console_setup() 106 cflag |= CRTSCTS; in usb_console_setup() 163 tty->termios.c_cflag = cflag; in usb_console_setup()
|
D | digi_acceleport.c | 659 unsigned int cflag = tty->termios.c_cflag; in digi_set_termios() local 670 priv->dp_port_num, iflag, old_iflag, cflag, old_cflag); in digi_set_termios() 722 if ((cflag & (PARENB | PARODD)) != (old_cflag & (PARENB | PARODD))) { in digi_set_termios() 723 if (cflag & PARENB) { in digi_set_termios() 724 if (cflag & PARODD) in digi_set_termios() 737 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in digi_set_termios() 739 switch (cflag & CSIZE) { in digi_set_termios() 747 cflag & CSIZE); in digi_set_termios() 761 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in digi_set_termios() 763 if ((cflag & CSTOPB)) in digi_set_termios() [all …]
|
D | spcp8x5.c | 292 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local 347 switch (cflag & CSIZE) { in spcp8x5_set_termios() 364 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios() 368 if (cflag & PARENB) { in spcp8x5_set_termios() 369 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios() 384 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
|
D | kl5kusb105.c | 376 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() local 437 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in klsi_105_set_termios() 439 switch (cflag & CSIZE) { in klsi_105_set_termios() 464 if ((cflag & (PARENB|PARODD)) != (old_cflag & (PARENB|PARODD)) in klsi_105_set_termios() 465 || (cflag & CSTOPB) != (old_cflag & CSTOPB)) { in klsi_105_set_termios() 475 || (cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { in klsi_105_set_termios()
|
D | ark3116.c | 197 unsigned int cflag = termios->c_cflag; in ark3116_set_termios() local 203 lcr = UART_LCR_WLEN(tty_get_char_size(cflag)); in ark3116_set_termios() 205 if (cflag & CSTOPB) in ark3116_set_termios() 207 if (cflag & PARENB) in ark3116_set_termios() 209 if (!(cflag & PARODD)) in ark3116_set_termios() 211 if (cflag & CMSPAR) in ark3116_set_termios() 215 hcr = (cflag & CRTSCTS) ? 0x03 : 0x00; in ark3116_set_termios()
|
D | keyspan.c | 576 unsigned int cflag; member 625 unsigned int cflag; in keyspan_set_termios() local 629 cflag = tty->termios.c_cflag; in keyspan_set_termios() 646 p_priv->cflag = cflag; in keyspan_set_termios() 647 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_set_termios() 1500 unsigned int cflag = 0; in keyspan_open() local 1545 cflag = tty->termios.c_cflag; in keyspan_open() 1557 p_priv->cflag = cflag; in keyspan_open() 1558 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_open() 2083 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup() [all …]
|
D | whiteheat.c | 620 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() local 625 port_settings.bits = tty_get_char_size(cflag); in firm_setup_port() 629 if (cflag & PARENB) in firm_setup_port() 630 if (cflag & CMSPAR) in firm_setup_port() 631 if (cflag & PARODD) in firm_setup_port() 636 if (cflag & PARODD) in firm_setup_port() 645 if (cflag & CSTOPB) in firm_setup_port() 652 if (cflag & CRTSCTS) in firm_setup_port()
|
D | ssu100.c | 223 unsigned int cflag = termios->c_cflag; in ssu100_set_termios() local 227 if (cflag & PARENB) { in ssu100_set_termios() 228 if (cflag & PARODD) in ssu100_set_termios() 234 urb_value |= UART_LCR_WLEN(tty_get_char_size(cflag)); in ssu100_set_termios() 254 if (cflag & CRTSCTS) in ssu100_set_termios()
|
D | mct_u232.c | 602 unsigned int cflag = termios->c_cflag; in mct_u232_set_termios() local 630 if ((cflag & CBAUD) == B0) { in mct_u232_set_termios() 642 if (cflag & PARENB) in mct_u232_set_termios() 643 last_lcr |= (cflag & PARODD) ? in mct_u232_set_termios() 649 switch (cflag & CSIZE) { in mct_u232_set_termios() 668 last_lcr |= (cflag & CSTOPB) ? in mct_u232_set_termios()
|
D | oti6858.c | 404 unsigned int cflag; in oti6858_set_termios() local 409 cflag = tty->termios.c_cflag; in oti6858_set_termios() 418 switch (cflag & CSIZE) { in oti6858_set_termios() 454 if ((cflag & CSTOPB) != 0) in oti6858_set_termios() 460 if ((cflag & PARENB) != 0) { in oti6858_set_termios() 461 if ((cflag & PARODD) != 0) in oti6858_set_termios() 470 if ((cflag & CRTSCTS) != 0) in oti6858_set_termios()
|
D | mos7720.c | 1364 unsigned cflag; in change_port_settings() local 1386 cflag = tty->termios.c_cflag; in change_port_settings() 1388 lData = UART_LCR_WLEN(tty_get_char_size(cflag)); in change_port_settings() 1391 if (cflag & PARENB) { in change_port_settings() 1392 if (cflag & PARODD) { in change_port_settings() 1404 if (cflag & CMSPAR) in change_port_settings() 1408 if (cflag & CSTOPB) { in change_port_settings() 1440 if (cflag & CBAUD) in change_port_settings() 1443 if (cflag & CRTSCTS) { in change_port_settings() 1479 if (cflag & CBAUD) in change_port_settings()
|
/drivers/tty/ |
D | amiserial.c | 573 unsigned cflag, cval = 0; in change_speed() local 577 cflag = tty->termios.c_cflag; in change_speed() 582 if (cflag & CSTOPB) { in change_speed() 586 if (cflag & PARENB) { in change_speed() 590 if (!(cflag & PARODD)) in change_speed() 592 if (cflag & CMSPAR) in change_speed() 639 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed() 640 if (cflag & CRTSCTS) in change_speed() 642 tty_port_set_check_carrier(port, ~cflag & CLOCAL); in change_speed() 643 if (~cflag & CLOCAL) in change_speed() [all …]
|
D | tty_ioctl.c | 290 unsigned char tty_get_char_size(unsigned int cflag) in tty_get_char_size() argument 292 switch (cflag & CSIZE) { in tty_get_char_size() 315 unsigned char tty_get_frame_size(unsigned int cflag) in tty_get_frame_size() argument 317 unsigned char bits = 2 + tty_get_char_size(cflag); in tty_get_frame_size() 319 if (cflag & CSTOPB) in tty_get_frame_size() 321 if (cflag & PARENB) in tty_get_frame_size() 323 if (cflag & ADDRB) in tty_get_frame_size()
|
/drivers/ipack/devices/ |
D | ipoctal.c | 502 unsigned int cflag; in ipoctal_set_termios() local 509 cflag = tty->termios.c_cflag; in ipoctal_set_termios() 515 switch (cflag & CSIZE) { in ipoctal_set_termios() 526 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8; in ipoctal_set_termios() 531 if (cflag & PARENB) in ipoctal_set_termios() 532 if (cflag & PARODD) in ipoctal_set_termios() 543 if (cflag & CSTOPB) in ipoctal_set_termios() 551 if (cflag & CRTSCTS) { in ipoctal_set_termios()
|
/drivers/accessibility/speakup/ |
D | serialio.c | 52 int cflag = CREAD | HUPCL | CLOCAL | B9600 | CS8; in spk_serial_init() local 64 cval = cflag & (CSIZE | CSTOPB); in spk_serial_init() 70 if (cflag & PARENB) in spk_serial_init() 72 if (!(cflag & PARODD)) in spk_serial_init()
|