/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A 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 | in sunserial_console_termios() 173 unsigned int cflag; global() member 183 suncore_mouse_baud_cflag_next(unsigned int cflag, int *new_baud) suncore_mouse_baud_cflag_next() argument [all...] |
H A 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 | in dz_set_termios() [all...] |
H A D | sunsu.c | 91 unsigned int cflag; member 485 sunsu_change_speed(struct uart_port *port, unsigned int cflag, 490 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud() 493 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud() 494 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunsu_change_mouse_baud() 498 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud() 774 sunsu_change_speed(struct uart_port *port, unsigned int cflag, in sunsu_change_speed() argument 782 switch (cflag & CSIZE) { in sunsu_change_speed() 798 if (cflag & CSTOPB) in sunsu_change_speed() 800 if (cflag in sunsu_change_speed() [all...] |
H A D | st-asc.c | 510 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() 538 cflag |= PARENB; in asc_set_termios() 540 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios() 542 cflag &= ~CSIZE; in asc_set_termios() 543 cflag |= CS8; in asc_set_termios() 545 termios->c_cflag = cflag; in asc_set_termios() 548 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios() 551 if (cflag in asc_set_termios() [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A 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 | in sunserial_console_termios() 173 unsigned int cflag; global() member 183 suncore_mouse_baud_cflag_next(unsigned int cflag, int *new_baud) suncore_mouse_baud_cflag_next() argument [all...] |
H A 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() 565 unsigned int cflag, baud; in dz_set_termios() local 568 cflag = dport->port.line; in dz_set_termios() 572 cflag |= DZ_CS5; in dz_set_termios() 575 cflag |= DZ_CS6; in dz_set_termios() 578 cflag |= DZ_CS7; in dz_set_termios() 582 cflag |= DZ_CS8; in dz_set_termios() 586 cflag | in dz_set_termios() [all...] |
H A D | sunsu.c | 91 unsigned int cflag; member 481 sunsu_change_speed(struct uart_port *port, unsigned int cflag, 486 unsigned int cur_cflag = up->cflag; in sunsu_change_mouse_baud() 489 up->cflag &= ~CBAUD; in sunsu_change_mouse_baud() 490 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunsu_change_mouse_baud() 494 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud() 770 sunsu_change_speed(struct uart_port *port, unsigned int cflag, in sunsu_change_speed() argument 778 switch (cflag & CSIZE) { in sunsu_change_speed() 794 if (cflag & CSTOPB) in sunsu_change_speed() 796 if (cflag in sunsu_change_speed() [all...] |
/kernel/linux/linux-5.10/arch/m68k/atari/ |
H A D | debug.c | 161 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() 170 int csize = ((cflag & CSIZE) == CS7) ? 0x20 : 0x00; in atari_init_mfp_port() 172 if (cflag & CBAUDEX) in atari_init_mfp_port() 203 static void __init atari_init_scc_port(int cflag) in atari_init_scc_port() argument 218 int baud = cflag & CBAUD; in atari_init_scc_port() 221 if (cflag & CBAUDEX) in atari_init_scc_port() 239 reg3 = (cflag in atari_init_scc_port() 263 atari_init_midi_port(int cflag) atari_init_midi_port() argument [all...] |
/kernel/linux/linux-6.6/arch/m68k/atari/ |
H A D | debug.c | 161 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() 170 int csize = ((cflag & CSIZE) == CS7) ? 0x20 : 0x00; in atari_init_mfp_port() 172 if (cflag & CBAUDEX) in atari_init_mfp_port() 203 static void __init atari_init_scc_port(int cflag) in atari_init_scc_port() argument 218 int baud = cflag & CBAUD; in atari_init_scc_port() 221 if (cflag & CBAUDEX) in atari_init_scc_port() 239 reg3 = (cflag in atari_init_scc_port() 263 atari_init_midi_port(int cflag) atari_init_midi_port() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/serial/ |
H A 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()
|
H A 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 switch (cflag & CSIZE) { in belkin_sa_set_termios() 385 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in belkin_sa_set_termios() 386 urb_value = (cflag in belkin_sa_set_termios() [all...] |
H A D | cp210x.c | 1075 tcflag_t cflag; in cp210x_get_termios() local 1076 cflag = 0; in cp210x_get_termios() 1077 cp210x_get_termios_port(port, &cflag, &baud); in cp210x_get_termios() 1089 tcflag_t cflag; in cp210x_get_termios_port() local 1101 cflag = *cflagp; in cp210x_get_termios_port() 1104 cflag &= ~CSIZE; in cp210x_get_termios_port() 1108 cflag |= CS5; in cp210x_get_termios_port() 1112 cflag |= CS6; in cp210x_get_termios_port() 1116 cflag |= CS7; in cp210x_get_termios_port() 1120 cflag | in cp210x_get_termios_port() 1387 unsigned int cflag, old_cflag; cp210x_set_termios() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/serial/ |
H A 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()
|
H A 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 in belkin_sa_set_termios() [all...] |
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_incore.h | 41 unsigned long cflag; /* commit flags */ member 108 * cflag 143 #define set_cflag(flag, ip) set_bit(flag, &(JFS_IP(ip)->cflag)) 144 #define clear_cflag(flag, ip) clear_bit(flag, &(JFS_IP(ip)->cflag)) 145 #define test_cflag(flag, ip) test_bit(flag, &(JFS_IP(ip)->cflag)) 147 test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
|
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_incore.h | 41 unsigned long cflag; /* commit flags */ member 116 * cflag 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))
|
/kernel/linux/linux-5.10/arch/sh/kernel/ |
H A D | sh_bios.c | 116 * - construct a cflag setting for the first rs_open() 122 int cflag = CREAD | HUPCL | CLOCAL; in sh_console_setup() local 125 * Now construct a cflag setting. in sh_console_setup() 126 * TODO: this is a totally bogus cflag, as we have in sh_console_setup() 130 cflag |= B115200 | CS8 | /*no parity*/0; in sh_console_setup() 132 co->cflag = cflag; in sh_console_setup()
|
/kernel/linux/linux-6.6/arch/sh/kernel/ |
H A D | sh_bios.c | 116 * - construct a cflag setting for the first rs_open() 122 int cflag = CREAD | HUPCL | CLOCAL; in sh_console_setup() local 125 * Now construct a cflag setting. in sh_console_setup() 126 * TODO: this is a totally bogus cflag, as we have in sh_console_setup() 130 cflag |= B115200 | CS8 | /*no parity*/0; in sh_console_setup() 132 co->cflag = cflag; in sh_console_setup()
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4a/ |
H A D | serial-sh7722.c | 8 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()
|
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh4a/ |
H A D | serial-sh7722.c | 8 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()
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/ |
H A D | serial-sh770x.c | 10 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()
|
H A D | serial-sh7720.c | 8 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()
|
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh3/ |
H A D | serial-sh770x.c | 10 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()
|
H A D | serial-sh7720.c | 8 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()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | termios.h | 32 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()
|