Home
last modified time | relevance | path

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

12

/drivers/tty/serial/
A 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()
149 case 5: cflag |= CS5; break; in sunserial_console_termios()
150 case 6: cflag |= CS6; break; in sunserial_console_termios()
151 case 7: cflag |= CS7; break; in sunserial_console_termios()
152 case 8: cflag |= CS8; break; in sunserial_console_termios()
153 default: cflag |= CS8; break; in sunserial_console_termios()
167 con->cflag = cflag; in sunserial_console_termios()
173 unsigned int cflag; member
[all …]
A Ddz.c73 unsigned int cflag; member
571 cflag |= DZ_CS5; in dz_set_termios()
574 cflag |= DZ_CS6; in dz_set_termios()
577 cflag |= DZ_CS7; in dz_set_termios()
581 cflag |= DZ_CS8; in dz_set_termios()
585 cflag |= DZ_CSTOPB; in dz_set_termios()
587 cflag |= DZ_PARENB; in dz_set_termios()
589 cflag |= DZ_PARODD; in dz_set_termios()
605 cflag |= bflag; in dz_set_termios()
608 cflag |= DZ_RXENAB; in dz_set_termios()
[all …]
A Dsunsu.c91 unsigned int cflag; member
463 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud()
466 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud()
755 switch (cflag & CSIZE) { in sunsu_change_speed()
771 if (cflag & CSTOPB) in sunsu_change_speed()
773 if (cflag & PARENB) in sunsu_change_speed()
775 if (!(cflag & PARODD)) in sunsu_change_speed()
777 if (cflag & CMSPAR) in sunsu_change_speed()
838 if ((cflag & CREAD) == 0) in sunsu_change_speed()
869 up->cflag = cflag; in sunsu_change_speed()
[all …]
A Dst-asc.c472 tcflag_t cflag; in asc_set_termios() local
482 cflag = termios->c_cflag; in asc_set_termios()
498 if ((cflag & CSIZE) == CS7) { in asc_set_termios()
500 cflag |= PARENB; in asc_set_termios()
502 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
504 cflag &= ~CSIZE; in asc_set_termios()
505 cflag |= CS8; in asc_set_termios()
507 termios->c_cflag = cflag; in asc_set_termios()
513 if (cflag & PARODD) in asc_set_termios()
517 if ((cflag & CRTSCTS)) { in asc_set_termios()
[all …]
A Dmax3100.c413 unsigned cflag; in max3100_set_termios() local
418 cflag = termios->c_cflag; in max3100_set_termios()
470 if ((cflag & CSIZE) == CS8) { in max3100_set_termios()
476 cflag = (cflag & ~CSIZE) | CS7; in max3100_set_termios()
480 if (cflag & CSTOPB) in max3100_set_termios()
486 if (cflag & PARENB) { in max3100_set_termios()
495 if (cflag & PARODD) in max3100_set_termios()
501 cflag &= ~CMSPAR; in max3100_set_termios()
502 termios->c_cflag = cflag; in max3100_set_termios()
A Dlantiq.c391 unsigned int cflag; in lqasc_set_termios() local
399 cflag = new->c_cflag; in lqasc_set_termios()
402 switch (cflag & CSIZE) { in lqasc_set_termios()
416 cflag &= ~CMSPAR; /* Mark/Space parity is not supported */ in lqasc_set_termios()
418 if (cflag & CSTOPB) in lqasc_set_termios()
421 if (cflag & PARENB) { in lqasc_set_termios()
422 if (!(cflag & PARODD)) in lqasc_set_termios()
445 if ((cflag & CREAD) == 0) in lqasc_set_termios()
485 uart_update_timeout(port, cflag, baud); in lqasc_set_termios()
A Dsunzilog.c92 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()
879 switch (cflag & CSIZE) { in sunzilog_convert_to_zs()
903 if (cflag & CSTOPB) in sunzilog_convert_to_zs()
907 if (cflag & PARENB) in sunzilog_convert_to_zs()
911 if (!(cflag & PARODD)) in sunzilog_convert_to_zs()
931 if ((cflag & CREAD) == 0) in sunzilog_convert_to_zs()
958 up->cflag = termios->c_cflag; in sunzilog_set_termios()
1232 switch (con->cflag & CBAUD) { in sunzilog_console_setup()
[all …]
A Dsunsab.c680 static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, in sunsab_convert_to_sab() argument
688 switch (cflag & CSIZE) { in sunsab_convert_to_sab()
697 if (cflag & CSTOPB) in sunsab_convert_to_sab()
700 if (cflag & PARENB) in sunsab_convert_to_sab()
703 if (cflag & PARODD) { in sunsab_convert_to_sab()
758 if ((cflag & CREAD) == 0) in sunsab_convert_to_sab()
762 uart_update_timeout(&up->port, cflag, in sunsab_convert_to_sab()
893 switch (con->cflag & CBAUD) { in sunsab_console_setup()
934 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); in sunsab_console_setup()
A Dsunhv.c333 unsigned int iflag, cflag; in sunhv_set_termios() local
339 cflag = termios->c_cflag; in sunhv_set_termios()
344 if ((cflag & CREAD) == 0) in sunhv_set_termios()
348 uart_update_timeout(port, cflag, in sunhv_set_termios()
/drivers/usb/serial/
A Dbelkin_sa.c282 unsigned int cflag; in belkin_sa_set_termios() local
293 cflag = termios->c_cflag; in belkin_sa_set_termios()
307 if ((cflag & CBAUD) != (old_cflag & CBAUD)) { in belkin_sa_set_termios()
348 if ((cflag ^ old_cflag) & (PARENB | PARODD)) { in belkin_sa_set_termios()
349 if (cflag & PARENB) in belkin_sa_set_termios()
350 urb_value = (cflag & PARODD) ? BELKIN_SA_PARITY_ODD in belkin_sa_set_termios()
359 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in belkin_sa_set_termios()
366 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios()
367 urb_value = (cflag & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios()
376 ((cflag ^ old_cflag) & CRTSCTS)) { in belkin_sa_set_termios()
[all …]
A 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()
106 cflag |= CRTSCTS; in usb_console_setup()
163 tty->termios.c_cflag = cflag; in usb_console_setup()
A Ddigi_acceleport.c657 unsigned int cflag = tty->termios.c_cflag; in digi_set_termios() local
721 if (cflag & PARENB) { in digi_set_termios()
722 if (cflag & PARODD) in digi_set_termios()
735 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in digi_set_termios()
737 switch (cflag & CSIZE) { in digi_set_termios()
745 cflag & CSIZE); in digi_set_termios()
761 if ((cflag & CSTOPB)) in digi_set_termios()
782 if (cflag & CRTSCTS) { in digi_set_termios()
810 if (cflag & CRTSCTS) in digi_set_termios()
822 if ((cflag & CREAD) != (old_cflag & CREAD)) { in digi_set_termios()
[all …]
A Dkl5kusb105.c375 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() local
436 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in klsi_105_set_termios()
438 switch (cflag & CSIZE) { in klsi_105_set_termios()
463 if ((cflag & (PARENB|PARODD)) != (old_cflag & (PARENB|PARODD)) in klsi_105_set_termios()
464 || (cflag & CSTOPB) != (old_cflag & CSTOPB)) { in klsi_105_set_termios()
474 || (cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { in klsi_105_set_termios()
A Dspcp8x5.c282 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local
337 switch (cflag & CSIZE) { in spcp8x5_set_termios()
354 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios()
358 if (cflag & PARENB) { in spcp8x5_set_termios()
359 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios()
374 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
A Dark3116.c197 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()
A Dkeyspan.c576 unsigned int cflag; member
628 unsigned int cflag; in keyspan_set_termios() local
632 cflag = tty->termios.c_cflag; in keyspan_set_termios()
649 p_priv->cflag = cflag; in keyspan_set_termios()
1502 unsigned int cflag = 0; in keyspan_open() local
1547 cflag = tty->termios.c_cflag; in keyspan_open()
1559 p_priv->cflag = cflag; in keyspan_open()
2100 if (p_priv->cflag & PARENB) { in keyspan_usa26_send_setup()
2370 if (p_priv->cflag & PARENB) { in keyspan_usa49_send_setup()
2546 if (p_priv->cflag & PARENB) { in keyspan_usa90_send_setup()
[all …]
A Dwhiteheat.c619 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() local
624 port_settings.bits = tty_get_char_size(cflag); in firm_setup_port()
628 if (cflag & PARENB) in firm_setup_port()
629 if (cflag & CMSPAR) in firm_setup_port()
630 if (cflag & PARODD) in firm_setup_port()
635 if (cflag & PARODD) in firm_setup_port()
644 if (cflag & CSTOPB) in firm_setup_port()
651 if (cflag & CRTSCTS) in firm_setup_port()
A 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 urb_value |= UART_LCR_WLEN(tty_get_char_size(cflag)); in ssu100_set_termios()
254 if (cflag & CRTSCTS) in ssu100_set_termios()
A Dmct_u232.c601 unsigned int cflag = termios->c_cflag; in mct_u232_set_termios() local
629 if ((cflag & CBAUD) == B0) { in mct_u232_set_termios()
641 if (cflag & PARENB) in mct_u232_set_termios()
642 last_lcr |= (cflag & PARODD) ? in mct_u232_set_termios()
648 switch (cflag & CSIZE) { in mct_u232_set_termios()
667 last_lcr |= (cflag & CSTOPB) ? in mct_u232_set_termios()
A Doti6858.c403 unsigned int cflag; in oti6858_set_termios() local
408 cflag = tty->termios.c_cflag; in oti6858_set_termios()
416 switch (cflag & CSIZE) { in oti6858_set_termios()
452 if ((cflag & CSTOPB) != 0) in oti6858_set_termios()
458 if ((cflag & PARENB) != 0) { in oti6858_set_termios()
459 if ((cflag & PARODD) != 0) in oti6858_set_termios()
468 if ((cflag & CRTSCTS) != 0) in oti6858_set_termios()
/drivers/tty/
A Damiserial.c571 unsigned cflag, cval = 0; in change_speed() local
575 cflag = tty->termios.c_cflag; in change_speed()
580 if (cflag & CSTOPB) { in change_speed()
584 if (cflag & PARENB) { in change_speed()
588 if (!(cflag & PARODD)) in change_speed()
590 if (cflag & CMSPAR) in change_speed()
637 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed()
638 if (cflag & CRTSCTS) in change_speed()
641 if (~cflag & CLOCAL) in change_speed()
675 if ((cflag & CREAD) == 0) in change_speed()
[all …]
A Dtty_ioctl.c268 unsigned char tty_get_char_size(unsigned int cflag) in tty_get_char_size() argument
270 switch (cflag & CSIZE) { in tty_get_char_size()
294 unsigned char tty_get_frame_size(unsigned int cflag) in tty_get_frame_size() argument
296 unsigned char bits = 2 + tty_get_char_size(cflag); in tty_get_frame_size()
298 if (cflag & CSTOPB) in tty_get_frame_size()
300 if (cflag & PARENB) in tty_get_frame_size()
302 if (cflag & ADDRB) in tty_get_frame_size()
/drivers/ipack/devices/
A Dipoctal.c499 unsigned int cflag; in ipoctal_set_termios() local
506 cflag = tty->termios.c_cflag; in ipoctal_set_termios()
512 switch (cflag & CSIZE) { in ipoctal_set_termios()
523 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8; in ipoctal_set_termios()
528 if (cflag & PARENB) in ipoctal_set_termios()
529 if (cflag & PARODD) in ipoctal_set_termios()
540 if (cflag & CSTOPB) in ipoctal_set_termios()
548 if (cflag & CRTSCTS) { in ipoctal_set_termios()
/drivers/accessibility/speakup/
A Dserialio.c52 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()
/drivers/net/ethernet/huawei/hinic3/
A Dhinic3_nic_io.h83 u8 cflag, u16 pi) in hinic3_write_db() argument
88 DB_INFO_SET(cflag, CFLAG) | in hinic3_write_db()

Completed in 68 milliseconds

12