Home
last modified time | relevance | path

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

123

/drivers/tty/serial/
Dsuncore.c88 int baud, bits, stop, cflag; in sunserial_console_termios() local
116 cflag = CREAD | HUPCL | CLOCAL; in sunserial_console_termios()
130 case 150: cflag |= B150; break; in sunserial_console_termios()
131 case 300: cflag |= B300; break; in sunserial_console_termios()
132 case 600: cflag |= B600; break; in sunserial_console_termios()
133 case 1200: cflag |= B1200; break; in sunserial_console_termios()
134 case 2400: cflag |= B2400; break; in sunserial_console_termios()
135 case 4800: cflag |= B4800; break; in sunserial_console_termios()
136 case 9600: cflag |= B9600; break; in sunserial_console_termios()
137 case 19200: cflag |= B19200; break; in sunserial_console_termios()
[all …]
Ddz.c76 unsigned int cflag; member
150 dport->cflag &= ~DZ_RXENAB; in dz_stop_rx()
151 dz_out(dport, DZ_LPR, dport->cflag); in dz_stop_rx()
569 unsigned int cflag, baud; in dz_set_termios() local
572 cflag = dport->port.line; in dz_set_termios()
576 cflag |= DZ_CS5; in dz_set_termios()
579 cflag |= DZ_CS6; in dz_set_termios()
582 cflag |= DZ_CS7; in dz_set_termios()
586 cflag |= DZ_CS8; in dz_set_termios()
590 cflag |= DZ_CSTOPB; in dz_set_termios()
[all …]
Dsunsu.c94 unsigned int cflag; member
488 sunsu_change_speed(struct uart_port *port, unsigned int cflag,
493 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud()
496 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud()
497 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunsu_change_mouse_baud()
501 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud()
777 sunsu_change_speed(struct uart_port *port, unsigned int cflag, in sunsu_change_speed() argument
785 switch (cflag & CSIZE) { in sunsu_change_speed()
801 if (cflag & CSTOPB) in sunsu_change_speed()
803 if (cflag & PARENB) in sunsu_change_speed()
[all …]
Dlantiq.c391 unsigned int cflag; in lqasc_set_termios() local
398 cflag = new->c_cflag; in lqasc_set_termios()
401 switch (cflag & CSIZE) { in lqasc_set_termios()
415 cflag &= ~CMSPAR; /* Mark/Space parity is not supported */ in lqasc_set_termios()
417 if (cflag & CSTOPB) in lqasc_set_termios()
420 if (cflag & PARENB) { in lqasc_set_termios()
421 if (!(cflag & PARODD)) in lqasc_set_termios()
444 if ((cflag & CREAD) == 0) in lqasc_set_termios()
484 uart_update_timeout(port, cflag, baud); in lqasc_set_termios()
Dmax3100.c433 unsigned cflag; in max3100_set_termios() local
438 cflag = termios->c_cflag; in max3100_set_termios()
491 if ((cflag & CSIZE) == CS8) { in max3100_set_termios()
497 cflag = (cflag & ~CSIZE) | CS7; in max3100_set_termios()
501 if (cflag & CSTOPB) in max3100_set_termios()
507 if (cflag & PARENB) { in max3100_set_termios()
516 if (cflag & PARODD) in max3100_set_termios()
522 cflag &= ~CMSPAR; in max3100_set_termios()
523 termios->c_cflag = cflag; in max3100_set_termios()
Dsunzilog.c95 unsigned int cflag; member
285 unsigned int cur_cflag = up->cflag; in sunzilog_change_mouse_baud()
288 up->cflag &= ~CBAUD; in sunzilog_change_mouse_baud()
289 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud()
868 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, in sunzilog_convert_to_zs() argument
885 switch (cflag & CSIZE) { in sunzilog_convert_to_zs()
909 if (cflag & CSTOPB) in sunzilog_convert_to_zs()
913 if (cflag & PARENB) in sunzilog_convert_to_zs()
917 if (!(cflag & PARODD)) in sunzilog_convert_to_zs()
937 if ((cflag & CREAD) == 0) in sunzilog_convert_to_zs()
[all …]
Dst-asc.c484 tcflag_t cflag; in asc_set_termios() local
494 cflag = termios->c_cflag; in asc_set_termios()
510 if ((cflag & CSIZE) == CS7) { in asc_set_termios()
513 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
518 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
521 if (cflag & PARODD) in asc_set_termios()
525 if ((cflag & CRTSCTS)) in asc_set_termios()
547 uart_update_timeout(port, cflag, baud); in asc_set_termios()
/drivers/usb/serial/
Dcp210x.c730 unsigned int cflag; in cp210x_get_termios() local
731 cflag = 0; in cp210x_get_termios()
732 cp210x_get_termios_port(port, &cflag, &baud); in cp210x_get_termios()
744 unsigned int cflag; in cp210x_get_termios_port() local
755 cflag = *cflagp; in cp210x_get_termios_port()
758 cflag &= ~CSIZE; in cp210x_get_termios_port()
762 cflag |= CS5; in cp210x_get_termios_port()
766 cflag |= CS6; in cp210x_get_termios_port()
770 cflag |= CS7; in cp210x_get_termios_port()
774 cflag |= CS8; in cp210x_get_termios_port()
[all …]
Dconsole.c65 int cflag = CREAD | HUPCL | CLOCAL; in usb_console_setup() local
92 cflag |= CS7; in usb_console_setup()
96 cflag |= CS8; in usb_console_setup()
101 cflag |= PARODD; in usb_console_setup()
104 cflag |= PARENB; in usb_console_setup()
107 co->cflag = cflag; in usb_console_setup()
164 tty->termios.c_cflag = cflag; in usb_console_setup()
Dbelkin_sa.c287 unsigned int cflag; in belkin_sa_set_termios() local
298 cflag = termios->c_cflag; in belkin_sa_set_termios()
312 if ((cflag & CBAUD) != (old_cflag & CBAUD)) { in belkin_sa_set_termios()
353 if ((cflag ^ old_cflag) & (PARENB | PARODD)) { in belkin_sa_set_termios()
354 if (cflag & PARENB) in belkin_sa_set_termios()
355 urb_value = (cflag & PARODD) ? BELKIN_SA_PARITY_ODD in belkin_sa_set_termios()
364 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in belkin_sa_set_termios()
365 switch (cflag & CSIZE) { in belkin_sa_set_termios()
389 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios()
390 urb_value = (cflag & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios()
[all …]
Dkl5kusb105.c423 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() local
441 if ((cflag & CBAUD) != (old_cflag & CBAUD)) { in klsi_105_set_termios()
487 if ((cflag & CBAUD) == B0) { in klsi_105_set_termios()
500 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in klsi_105_set_termios()
502 switch (cflag & CSIZE) { in klsi_105_set_termios()
527 if ((cflag & (PARENB|PARODD)) != (old_cflag & (PARENB|PARODD)) in klsi_105_set_termios()
528 || (cflag & CSTOPB) != (old_cflag & CSTOPB)) { in klsi_105_set_termios()
535 if (cflag & PARENB) in klsi_105_set_termios()
536 priv->last_lcr |= (cflag & PARODD) ? in klsi_105_set_termios()
542 priv->last_lcr |= (cflag & CSTOPB) ? in klsi_105_set_termios()
[all …]
Dkeyspan.c103 unsigned int cflag; member
153 unsigned int cflag; in keyspan_set_termios() local
157 cflag = tty->termios.c_cflag; in keyspan_set_termios()
174 p_priv->cflag = cflag; in keyspan_set_termios()
175 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_set_termios()
1024 unsigned int cflag = 0; in keyspan_open() local
1069 cflag = tty->termios.c_cflag; in keyspan_open()
1081 p_priv->cflag = cflag; in keyspan_open()
1082 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_open()
1607 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
[all …]
Ddigi_acceleport.c679 unsigned int cflag = tty->termios.c_cflag; in digi_set_termios() local
690 priv->dp_port_num, iflag, old_iflag, cflag, old_cflag); in digi_set_termios()
742 if ((cflag&(PARENB|PARODD)) != (old_cflag&(PARENB|PARODD))) { in digi_set_termios()
743 if (cflag&PARENB) { in digi_set_termios()
744 if (cflag&PARODD) in digi_set_termios()
757 if ((cflag&CSIZE) != (old_cflag&CSIZE)) { in digi_set_termios()
759 switch (cflag&CSIZE) { in digi_set_termios()
767 (cflag&CSIZE)); in digi_set_termios()
781 if ((cflag&CSTOPB) != (old_cflag&CSTOPB)) { in digi_set_termios()
783 if ((cflag&CSTOPB)) in digi_set_termios()
[all …]
Dspcp8x5.c313 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local
368 switch (cflag & CSIZE) { in spcp8x5_set_termios()
385 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios()
389 if (cflag & PARENB) { in spcp8x5_set_termios()
390 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios()
405 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
Dark3116.c231 unsigned int cflag = termios->c_cflag; in ark3116_set_termios() local
237 switch (cflag & CSIZE) { in ark3116_set_termios()
252 if (cflag & CSTOPB) in ark3116_set_termios()
254 if (cflag & PARENB) in ark3116_set_termios()
256 if (!(cflag & PARODD)) in ark3116_set_termios()
259 if (cflag & CMSPAR) in ark3116_set_termios()
263 hcr = (cflag & CRTSCTS) ? 0x03 : 0x00; in ark3116_set_termios()
Dwhiteheat.c679 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() local
684 switch (cflag & CSIZE) { in firm_setup_port()
694 if (cflag & PARENB) in firm_setup_port()
695 if (cflag & CMSPAR) in firm_setup_port()
696 if (cflag & PARODD) in firm_setup_port()
701 if (cflag & PARODD) in firm_setup_port()
710 if (cflag & CSTOPB) in firm_setup_port()
717 if (cflag & CRTSCTS) in firm_setup_port()
Dmct_u232.c607 unsigned int cflag = termios->c_cflag; in mct_u232_set_termios() local
635 if ((cflag & CBAUD) == B0) { in mct_u232_set_termios()
647 if (cflag & PARENB) in mct_u232_set_termios()
648 last_lcr |= (cflag & PARODD) ? in mct_u232_set_termios()
654 switch (cflag & CSIZE) { in mct_u232_set_termios()
673 last_lcr |= (cflag & CSTOPB) ? in mct_u232_set_termios()
Doti6858.c423 unsigned int cflag; in oti6858_set_termios() local
428 cflag = tty->termios.c_cflag; in oti6858_set_termios()
437 switch (cflag & CSIZE) { in oti6858_set_termios()
473 if ((cflag & CSTOPB) != 0) in oti6858_set_termios()
479 if ((cflag & PARENB) != 0) { in oti6858_set_termios()
480 if ((cflag & PARODD) != 0) in oti6858_set_termios()
489 if ((cflag & CRTSCTS) != 0) in oti6858_set_termios()
Dssu100.c222 unsigned int cflag = termios->c_cflag; in ssu100_set_termios() local
226 if (cflag & PARENB) { in ssu100_set_termios()
227 if (cflag & PARODD) in ssu100_set_termios()
233 switch (cflag & CSIZE) { in ssu100_set_termios()
267 if (cflag & CRTSCTS) in ssu100_set_termios()
/drivers/net/irda/
Dirtty-sir.c119 int cflag; in irtty_change_speed() local
128 cflag = tty->termios.c_cflag; in irtty_change_speed()
281 int cflag; in irtty_stop_receiver() local
285 cflag = tty->termios.c_cflag; in irtty_stop_receiver()
288 cflag &= ~CREAD; in irtty_stop_receiver()
290 cflag |= CREAD; in irtty_stop_receiver()
292 tty->termios.c_cflag = cflag; in irtty_stop_receiver()
/drivers/staging/speakup/
Dserialio.c31 int cflag = CREAD | HUPCL | CLOCAL | B9600 | CS8; in spk_serial_init() local
43 cval = cflag & (CSIZE | CSTOPB); in spk_serial_init()
49 if (cflag & PARENB) in spk_serial_init()
51 if (!(cflag & PARODD)) in spk_serial_init()
/drivers/isdn/gigaset/
Dusb-gigaset.c211 static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) in gigaset_baud_rate() argument
216 cflag &= CBAUD; in gigaset_baud_rate()
218 switch (cflag) { in gigaset_baud_rate()
232 " using default of B9600\n", cflag); in gigaset_baud_rate()
244 static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) in gigaset_set_line_ctrl() argument
249 if (cflag & PARENB) in gigaset_set_line_ctrl()
250 val |= (cflag & PARODD) ? 0x10 : 0x20; in gigaset_set_line_ctrl()
253 switch (cflag & CSIZE) { in gigaset_set_line_ctrl()
269 if (cflag & CSTOPB) { in gigaset_set_line_ctrl()
270 if ((cflag & CSIZE) == CS5) in gigaset_set_line_ctrl()
Dinterface.c406 unsigned int cflag; in if_set_termios() local
420 cflag = tty->termios.c_cflag; in if_set_termios()
421 old_cflag = old ? old->c_cflag : cflag; in if_set_termios()
423 cs->minor_index, iflag, cflag, old_cflag); in if_set_termios()
448 cs->ops->baud_rate(cs, cflag & CBAUD); in if_set_termios()
450 if ((cflag & CBAUD) == B0) { in if_set_termios()
462 cs->ops->set_line_ctrl(cs, cflag); in if_set_termios()
/drivers/ipack/devices/
Dipoctal.c483 unsigned int cflag; in ipoctal_set_termios() local
490 cflag = tty->termios.c_cflag; in ipoctal_set_termios()
496 switch (cflag & CSIZE) { in ipoctal_set_termios()
507 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8; in ipoctal_set_termios()
512 if (cflag & PARENB) in ipoctal_set_termios()
513 if (cflag & PARODD) in ipoctal_set_termios()
524 if (cflag & CSTOPB) in ipoctal_set_termios()
532 if (cflag & CRTSCTS) { in ipoctal_set_termios()
/drivers/tty/
Damiserial.c662 unsigned cflag, cval = 0; in change_speed() local
666 cflag = tty->termios.c_cflag; in change_speed()
671 if (cflag & CSTOPB) { in change_speed()
675 if (cflag & PARENB) { in change_speed()
679 if (!(cflag & PARODD)) in change_speed()
682 if (cflag & CMSPAR) in change_speed()
730 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed()
731 if (cflag & CRTSCTS) in change_speed()
733 tty_port_set_check_carrier(port, ~cflag & CLOCAL); in change_speed()
734 if (~cflag & CLOCAL) in change_speed()
[all …]

123