Home
last modified time | relevance | path

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

123

/linux/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
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()
589 cflag |= DZ_PARENB; in dz_set_termios()
591 cflag |= DZ_PARODD; in dz_set_termios()
604 cflag |= bflag; in dz_set_termios()
607 cflag |= DZ_RXENAB; in dz_set_termios()
[all …]
A Dsunsu.c91 unsigned int cflag; member
486 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud()
489 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud()
778 switch (cflag & CSIZE) { in sunsu_change_speed()
794 if (cflag & CSTOPB) in sunsu_change_speed()
796 if (cflag & PARENB) in sunsu_change_speed()
798 if (!(cflag & PARODD)) in sunsu_change_speed()
801 if (cflag & CMSPAR) in sunsu_change_speed()
863 if ((cflag & CREAD) == 0) in sunsu_change_speed()
894 up->cflag = cflag; in sunsu_change_speed()
[all …]
A 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()
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()
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()
961 up->cflag = termios->c_cflag; in sunzilog_set_termios()
1235 switch (con->cflag & CBAUD) { in sunzilog_console_setup()
[all …]
A 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()
A Dst-asc.c510 tcflag_t cflag; in asc_set_termios() local
520 cflag = termios->c_cflag; in asc_set_termios()
536 if ((cflag & CSIZE) == CS7) { in asc_set_termios()
539 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
544 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
547 if (cflag & PARODD) in asc_set_termios()
551 if ((cflag & CRTSCTS)) { in asc_set_termios()
596 uart_update_timeout(port, cflag, baud); in asc_set_termios()
/linux/arch/m68k/atari/
A Ddebug.c161 static void __init atari_init_mfp_port(int cflag) in atari_init_mfp_port() argument
168 int baud = cflag & CBAUD; in atari_init_mfp_port()
169 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x04 : 0x06) : 0; in atari_init_mfp_port()
172 if (cflag & CBAUDEX) in atari_init_mfp_port()
218 int baud = cflag & CBAUD; in atari_init_scc_port()
221 if (cflag & CBAUDEX) in atari_init_scc_port()
239 reg3 = (cflag & CSIZE) == CS8 ? 0xc0 : 0x40; in atari_init_scc_port()
245 SCC_WRITE(4, (cflag & PARENB) ? ((cflag & PARODD) ? 0x01 : 0x03) in atari_init_scc_port()
265 int baud = cflag & CBAUD; in atari_init_midi_port()
268 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x0c : 0x08) : 0x04; in atari_init_midi_port()
[all …]
/linux/drivers/usb/serial/
A Dbelkin_sa.c281 unsigned int cflag; in belkin_sa_set_termios() local
292 cflag = termios->c_cflag; in belkin_sa_set_termios()
306 if ((cflag & CBAUD) != (old_cflag & CBAUD)) { in belkin_sa_set_termios()
347 if ((cflag ^ old_cflag) & (PARENB | PARODD)) { in belkin_sa_set_termios()
348 if (cflag & PARENB) in belkin_sa_set_termios()
349 urb_value = (cflag & PARODD) ? BELKIN_SA_PARITY_ODD in belkin_sa_set_termios()
358 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in belkin_sa_set_termios()
365 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios()
366 urb_value = (cflag & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios()
375 ((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.c291 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local
346 switch (cflag & CSIZE) { in spcp8x5_set_termios()
363 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios()
367 if (cflag & PARENB) { in spcp8x5_set_termios()
368 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios()
383 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
A Dark3116.c197 unsigned int cflag = termios->c_cflag; in ark3116_set_termios() local
203 switch (cflag & CSIZE) { in ark3116_set_termios()
218 if (cflag & CSTOPB) in ark3116_set_termios()
220 if (cflag & PARENB) in ark3116_set_termios()
222 if (!(cflag & PARODD)) in ark3116_set_termios()
225 if (cflag & CMSPAR) in ark3116_set_termios()
229 hcr = (cflag & CRTSCTS) ? 0x03 : 0x00; in ark3116_set_termios()
A Dkeyspan.c576 unsigned int cflag; member
624 unsigned int cflag; in keyspan_set_termios() local
628 cflag = tty->termios.c_cflag; in keyspan_set_termios()
645 p_priv->cflag = cflag; in keyspan_set_termios()
1499 unsigned int cflag = 0; in keyspan_open() local
1544 cflag = tty->termios.c_cflag; in keyspan_open()
1556 p_priv->cflag = cflag; in keyspan_open()
2097 if (p_priv->cflag & PARENB) { in keyspan_usa26_send_setup()
2367 if (p_priv->cflag & PARENB) { in keyspan_usa49_send_setup()
2543 if (p_priv->cflag & PARENB) { in keyspan_usa90_send_setup()
[all …]
A Dwhiteheat.c623 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() local
628 port_settings.bits = tty_get_char_size(cflag); in firm_setup_port()
632 if (cflag & PARENB) in firm_setup_port()
633 if (cflag & CMSPAR) in firm_setup_port()
634 if (cflag & PARODD) in firm_setup_port()
639 if (cflag & PARODD) in firm_setup_port()
648 if (cflag & CSTOPB) in firm_setup_port()
655 if (cflag & CRTSCTS) in firm_setup_port()
/linux/arch/sh/kernel/
A Dsh_bios.c122 int cflag = CREAD | HUPCL | CLOCAL; in sh_console_setup() local
130 cflag |= B115200 | CS8 | /*no parity*/0; in sh_console_setup()
132 co->cflag = cflag; in sh_console_setup()
/linux/fs/jfs/
A Djfs_incore.h41 unsigned long cflag; /* commit flags */ member
151 #define set_cflag(flag, ip) set_bit(flag, &(JFS_IP(ip)->cflag))
152 #define clear_cflag(flag, ip) clear_bit(flag, &(JFS_IP(ip)->cflag))
153 #define test_cflag(flag, ip) test_bit(flag, &(JFS_IP(ip)->cflag))
155 test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
/linux/arch/mips/include/asm/
A Dtermios.h32 unsigned short iflag, oflag, cflag, lflag; in user_termio_to_kernel_termios() local
42 err |=__get_user(cflag, &termio->c_cflag); in user_termio_to_kernel_termios()
43 termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag; in user_termio_to_kernel_termios()
/linux/arch/sh/kernel/cpu/sh4a/
A Dserial-sh7722.c8 static void sh7722_sci_init_pins(struct uart_port *port, unsigned int cflag) in sh7722_sci_init_pins() argument
15 if (!(cflag & CRTSCTS)) in sh7722_sci_init_pins()
/linux/arch/sh/kernel/cpu/sh3/
A Dserial-sh770x.c10 static void sh770x_sci_init_pins(struct uart_port *port, unsigned int cflag) in sh770x_sci_init_pins() argument
19 if (!(cflag & CRTSCTS)) { in sh770x_sci_init_pins()
A Dserial-sh7720.c8 static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag) in sh7720_sci_init_pins() argument
12 if (cflag & CRTSCTS) { in sh7720_sci_init_pins()
/linux/drivers/tty/
A Damiserial.c574 unsigned cflag, cval = 0; in change_speed() local
578 cflag = tty->termios.c_cflag; in change_speed()
583 if (cflag & CSTOPB) { in change_speed()
587 if (cflag & PARENB) { in change_speed()
591 if (!(cflag & PARODD)) in change_speed()
594 if (cflag & CMSPAR) in change_speed()
642 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed()
643 if (cflag & CRTSCTS) in change_speed()
646 if (~cflag & CLOCAL) in change_speed()
680 if ((cflag & CREAD) == 0) in change_speed()
[all …]
/linux/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()
/linux/drivers/ipack/devices/
A Dipoctal.c502 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()

Completed in 46 milliseconds

123