Home
last modified time | relevance | path

Searched refs:cflag (Results 1 – 25 of 57) sorted by relevance

123

/drivers/tty/serial/
Dsuncore.c89 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 …]
Ddz.c77 unsigned int cflag; member
151 dport->cflag &= ~DZ_RXENAB; in dz_stop_rx()
152 dz_out(dport, DZ_LPR, dport->cflag); in dz_stop_rx()
570 unsigned int cflag, baud; in dz_set_termios() local
573 cflag = dport->port.line; in dz_set_termios()
577 cflag |= DZ_CS5; in dz_set_termios()
580 cflag |= DZ_CS6; in dz_set_termios()
583 cflag |= DZ_CS7; in dz_set_termios()
587 cflag |= DZ_CS8; in dz_set_termios()
591 cflag |= DZ_CSTOPB; in dz_set_termios()
[all …]
Dsunsu.c95 unsigned int cflag; member
489 sunsu_change_speed(struct uart_port *port, unsigned int cflag,
494 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud()
497 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud()
498 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunsu_change_mouse_baud()
502 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud()
778 sunsu_change_speed(struct uart_port *port, unsigned int cflag, in sunsu_change_speed() argument
786 switch (cflag & CSIZE) { in sunsu_change_speed()
802 if (cflag & CSTOPB) in sunsu_change_speed()
804 if (cflag & PARENB) in sunsu_change_speed()
[all …]
Dmax3100.c427 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()
Dsunzilog.c96 unsigned int cflag; member
286 unsigned int cur_cflag = up->cflag; in sunzilog_change_mouse_baud()
289 up->cflag &= ~CBAUD; in sunzilog_change_mouse_baud()
290 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud()
869 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, in sunzilog_convert_to_zs() argument
886 switch (cflag & CSIZE) { in sunzilog_convert_to_zs()
910 if (cflag & CSTOPB) in sunzilog_convert_to_zs()
914 if (cflag & PARENB) in sunzilog_convert_to_zs()
918 if (!(cflag & PARODD)) in sunzilog_convert_to_zs()
938 if ((cflag & CREAD) == 0) in sunzilog_convert_to_zs()
[all …]
Dlantiq.c413 unsigned int cflag; in lqasc_set_termios() local
421 cflag = new->c_cflag; in lqasc_set_termios()
424 switch (cflag & CSIZE) { in lqasc_set_termios()
438 cflag &= ~CMSPAR; /* Mark/Space parity is not supported */ in lqasc_set_termios()
440 if (cflag & CSTOPB) in lqasc_set_termios()
443 if (cflag & PARENB) { in lqasc_set_termios()
444 if (!(cflag & PARODD)) in lqasc_set_termios()
467 if ((cflag & CREAD) == 0) in lqasc_set_termios()
507 uart_update_timeout(port, cflag, baud); in lqasc_set_termios()
Dst-asc.c515 tcflag_t cflag; in asc_set_termios() local
525 cflag = termios->c_cflag; in asc_set_termios()
541 if ((cflag & CSIZE) == CS7) { in asc_set_termios()
544 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
549 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
552 if (cflag & PARODD) in asc_set_termios()
556 if ((cflag & CRTSCTS)) { in asc_set_termios()
602 uart_update_timeout(port, cflag, baud); in asc_set_termios()
/drivers/usb/serial/
Dcp210x.c899 tcflag_t cflag; in cp210x_get_termios() local
900 cflag = 0; in cp210x_get_termios()
901 cp210x_get_termios_port(port, &cflag, &baud); in cp210x_get_termios()
913 tcflag_t cflag; in cp210x_get_termios_port() local
924 cflag = *cflagp; in cp210x_get_termios_port()
927 cflag &= ~CSIZE; in cp210x_get_termios_port()
931 cflag |= CS5; in cp210x_get_termios_port()
935 cflag |= CS6; in cp210x_get_termios_port()
939 cflag |= CS7; in cp210x_get_termios_port()
943 cflag |= CS8; in cp210x_get_termios_port()
[all …]
Dbelkin_sa.c283 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 switch (cflag & CSIZE) { in belkin_sa_set_termios()
385 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios()
386 urb_value = (cflag & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios()
[all …]
Dconsole.c62 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()
160 tty->termios.c_cflag = cflag; in usb_console_setup()
Ddigi_acceleport.c680 unsigned int cflag = tty->termios.c_cflag; in digi_set_termios() local
691 priv->dp_port_num, iflag, old_iflag, cflag, old_cflag); in digi_set_termios()
743 if ((cflag & (PARENB | PARODD)) != (old_cflag & (PARENB | PARODD))) { in digi_set_termios()
744 if (cflag & PARENB) { in digi_set_termios()
745 if (cflag & PARODD) in digi_set_termios()
758 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in digi_set_termios()
760 switch (cflag & CSIZE) { in digi_set_termios()
768 cflag & CSIZE); in digi_set_termios()
782 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in digi_set_termios()
784 if ((cflag & CSTOPB)) in digi_set_termios()
[all …]
Dspcp8x5.c293 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local
348 switch (cflag & CSIZE) { in spcp8x5_set_termios()
365 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios()
369 if (cflag & PARENB) { in spcp8x5_set_termios()
370 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios()
385 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
Dkl5kusb105.c406 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() local
467 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in klsi_105_set_termios()
469 switch (cflag & CSIZE) { in klsi_105_set_termios()
494 if ((cflag & (PARENB|PARODD)) != (old_cflag & (PARENB|PARODD)) in klsi_105_set_termios()
495 || (cflag & CSTOPB) != (old_cflag & CSTOPB)) { in klsi_105_set_termios()
505 || (cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { in klsi_105_set_termios()
Dkeyspan.c596 unsigned int cflag; member
644 unsigned int cflag; in keyspan_set_termios() local
648 cflag = tty->termios.c_cflag; in keyspan_set_termios()
665 p_priv->cflag = cflag; in keyspan_set_termios()
666 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_set_termios()
1519 unsigned int cflag = 0; in keyspan_open() local
1564 cflag = tty->termios.c_cflag; in keyspan_open()
1576 p_priv->cflag = cflag; in keyspan_open()
1577 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_open()
2102 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
[all …]
Dark3116.c199 unsigned int cflag = termios->c_cflag; in ark3116_set_termios() local
205 switch (cflag & CSIZE) { in ark3116_set_termios()
220 if (cflag & CSTOPB) in ark3116_set_termios()
222 if (cflag & PARENB) in ark3116_set_termios()
224 if (!(cflag & PARODD)) in ark3116_set_termios()
227 if (cflag & CMSPAR) in ark3116_set_termios()
231 hcr = (cflag & CRTSCTS) ? 0x03 : 0x00; in ark3116_set_termios()
Dwhiteheat.c638 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() local
644 switch (cflag & CSIZE) { in firm_setup_port()
654 if (cflag & PARENB) in firm_setup_port()
655 if (cflag & CMSPAR) in firm_setup_port()
656 if (cflag & PARODD) in firm_setup_port()
661 if (cflag & PARODD) in firm_setup_port()
670 if (cflag & CSTOPB) in firm_setup_port()
677 if (cflag & CRTSCTS) in firm_setup_port()
Dmct_u232.c603 unsigned int cflag = termios->c_cflag; in mct_u232_set_termios() local
631 if ((cflag & CBAUD) == B0) { in mct_u232_set_termios()
643 if (cflag & PARENB) in mct_u232_set_termios()
644 last_lcr |= (cflag & PARODD) ? in mct_u232_set_termios()
650 switch (cflag & CSIZE) { in mct_u232_set_termios()
669 last_lcr |= (cflag & CSTOPB) ? in mct_u232_set_termios()
Doti6858.c404 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()
Dssu100.c223 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 switch (cflag & CSIZE) { in ssu100_set_termios()
268 if (cflag & CRTSCTS) in ssu100_set_termios()
/drivers/staging/isdn/gigaset/
Dusb-gigaset.c208 static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) in gigaset_baud_rate() argument
213 cflag &= CBAUD; in gigaset_baud_rate()
215 switch (cflag) { in gigaset_baud_rate()
229 " using default of B9600\n", cflag); in gigaset_baud_rate()
241 static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) in gigaset_set_line_ctrl() argument
246 if (cflag & PARENB) in gigaset_set_line_ctrl()
247 val |= (cflag & PARODD) ? 0x10 : 0x20; in gigaset_set_line_ctrl()
250 switch (cflag & CSIZE) { in gigaset_set_line_ctrl()
266 if (cflag & CSTOPB) { in gigaset_set_line_ctrl()
267 if ((cflag & CSIZE) == CS5) in gigaset_set_line_ctrl()
Dinterface.c411 unsigned int cflag; in if_set_termios() local
425 cflag = tty->termios.c_cflag; in if_set_termios()
426 old_cflag = old ? old->c_cflag : cflag; in if_set_termios()
428 cs->minor_index, iflag, cflag, old_cflag); in if_set_termios()
453 cs->ops->baud_rate(cs, cflag & CBAUD); in if_set_termios()
455 if ((cflag & CBAUD) == B0) { in if_set_termios()
467 cs->ops->set_line_ctrl(cs, cflag); in if_set_termios()
/drivers/staging/speakup/
Dserialio.c50 int cflag = CREAD | HUPCL | CLOCAL | B9600 | CS8; in spk_serial_init() local
62 cval = cflag & (CSIZE | CSTOPB); in spk_serial_init()
68 if (cflag & PARENB) in spk_serial_init()
70 if (!(cflag & PARODD)) in spk_serial_init()
/drivers/ipack/devices/
Dipoctal.c480 unsigned int cflag; in ipoctal_set_termios() local
487 cflag = tty->termios.c_cflag; in ipoctal_set_termios()
493 switch (cflag & CSIZE) { in ipoctal_set_termios()
504 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8; in ipoctal_set_termios()
509 if (cflag & PARENB) in ipoctal_set_termios()
510 if (cflag & PARODD) in ipoctal_set_termios()
521 if (cflag & CSTOPB) in ipoctal_set_termios()
529 if (cflag & CRTSCTS) { in ipoctal_set_termios()
/drivers/tty/
Damiserial.c651 unsigned cflag, cval = 0; in change_speed() local
655 cflag = tty->termios.c_cflag; in change_speed()
660 if (cflag & CSTOPB) { in change_speed()
664 if (cflag & PARENB) { in change_speed()
668 if (!(cflag & PARODD)) in change_speed()
671 if (cflag & CMSPAR) in change_speed()
719 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed()
720 if (cflag & CRTSCTS) in change_speed()
722 tty_port_set_check_carrier(port, ~cflag & CLOCAL); in change_speed()
723 if (~cflag & CLOCAL) in change_speed()
[all …]
Dmxser.c276 tcflag_t cflag; member
644 unsigned cflag, cval, fcr; in mxser_change_speed() local
648 cflag = tty->termios.c_cflag; in mxser_change_speed()
656 switch (cflag & CSIZE) { in mxser_change_speed()
673 if (cflag & CSTOPB) in mxser_change_speed()
675 if (cflag & PARENB) in mxser_change_speed()
677 if (!(cflag & PARODD)) in mxser_change_speed()
679 if (cflag & CMSPAR) in mxser_change_speed()
715 tty_port_set_cts_flow(&info->port, cflag & CRTSCTS); in mxser_change_speed()
716 if (cflag & CRTSCTS) { in mxser_change_speed()
[all …]

123