Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/tty/serial/
H 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()
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 …]
H A Ddz.c73 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 |= DZ_CSTOPB; in dz_set_termios()
[all …]
H A Dsunsu.c91 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 & PARENB) in sunsu_change_speed()
[all …]
H A Dst-asc.c471 tcflag_t cflag; in asc_set_termios() local
481 cflag = termios->c_cflag; in asc_set_termios()
497 if ((cflag & CSIZE) == CS7) { in asc_set_termios()
499 cflag |= PARENB; in asc_set_termios()
501 ctrl_val |= (cflag & PARENB) ? ASC_CTL_MODE_8BIT_PAR : in asc_set_termios()
503 cflag &= ~CSIZE; in asc_set_termios()
504 cflag |= CS8; in asc_set_termios()
506 termios->c_cflag = cflag; in asc_set_termios()
509 ctrl_val |= (cflag & CSTOPB) ? ASC_CTL_STOP_2BIT : ASC_CTL_STOP_1BIT; in asc_set_termios()
512 if (cflag & PARODD) in asc_set_termios()
[all …]
H A Dmax3100.c440 unsigned cflag; in max3100_set_termios() local
445 cflag = termios->c_cflag; in max3100_set_termios()
497 if ((cflag & CSIZE) == CS8) { in max3100_set_termios()
503 cflag = (cflag & ~CSIZE) | CS7; in max3100_set_termios()
507 if (cflag & CSTOPB) in max3100_set_termios()
513 if (cflag & PARENB) { in max3100_set_termios()
522 if (cflag & PARODD) in max3100_set_termios()
528 cflag &= ~CMSPAR; in max3100_set_termios()
529 termios->c_cflag = cflag; in max3100_set_termios()
H 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()
H 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()
286 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud()
863 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, in sunzilog_convert_to_zs() argument
880 switch (cflag & CSIZE) { in sunzilog_convert_to_zs()
904 if (cflag & CSTOPB) in sunzilog_convert_to_zs()
908 if (cflag & PARENB) in sunzilog_convert_to_zs()
912 if (!(cflag & PARODD)) in sunzilog_convert_to_zs()
932 if ((cflag & CREAD) == 0) in sunzilog_convert_to_zs()
[all …]
/openbmc/linux/arch/m68k/atari/
H 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()
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 & CSIZE) == CS8 ? 0xc0 : 0x40; in atari_init_scc_port()
240 reg5 = (cflag & CSIZE) == CS8 ? 0x60 : 0x20 | 0x82 /* assert DTR/RTS */; in atari_init_scc_port()
[all …]
/openbmc/linux/drivers/usb/serial/
H A 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 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 & CSTOPB) ? BELKIN_SA_STOP_BITS(2) in belkin_sa_set_termios()
[all …]
H 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()
H A Ddigi_acceleport.c659 unsigned int cflag = tty->termios.c_cflag; in digi_set_termios() local
670 priv->dp_port_num, iflag, old_iflag, cflag, old_cflag); in digi_set_termios()
722 if ((cflag & (PARENB | PARODD)) != (old_cflag & (PARENB | PARODD))) { in digi_set_termios()
723 if (cflag & PARENB) { in digi_set_termios()
724 if (cflag & PARODD) in digi_set_termios()
737 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in digi_set_termios()
739 switch (cflag & CSIZE) { in digi_set_termios()
747 cflag & CSIZE); in digi_set_termios()
761 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { in digi_set_termios()
763 if ((cflag & CSTOPB)) in digi_set_termios()
[all …]
H A Dspcp8x5.c292 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() local
347 switch (cflag & CSIZE) { in spcp8x5_set_termios()
364 buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 : in spcp8x5_set_termios()
368 if (cflag & PARENB) { in spcp8x5_set_termios()
369 buf[1] |= (cflag & PARODD) ? in spcp8x5_set_termios()
384 if (cflag & CRTSCTS) { in spcp8x5_set_termios()
H A Dkl5kusb105.c376 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() local
437 if ((cflag & CSIZE) != (old_cflag & CSIZE)) { in klsi_105_set_termios()
439 switch (cflag & CSIZE) { in klsi_105_set_termios()
464 if ((cflag & (PARENB|PARODD)) != (old_cflag & (PARENB|PARODD)) in klsi_105_set_termios()
465 || (cflag & CSTOPB) != (old_cflag & CSTOPB)) { in klsi_105_set_termios()
475 || (cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { in klsi_105_set_termios()
H 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()
H 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()
650 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_set_termios()
1503 unsigned int cflag = 0; in keyspan_open() local
1548 cflag = tty->termios.c_cflag; in keyspan_open()
1560 p_priv->cflag = cflag; in keyspan_open()
1561 p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none; in keyspan_open()
2086 msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; in keyspan_usa26_send_setup()
[all …]
/openbmc/linux/arch/sh/kernel/
H 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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/
H A D0005-Don-t-match-Wnon-virtual-dtor-in-the-flags-are-neede.patch26 - elseif(${cflag} MATCHES "^(-Wno|/wd)")
27 + elseif(${cflag} MATCHES "^(-Wno-|/wd)")
29 set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
30 elseif(${cflag} MATCHES "^(-W|/w[1234eo])")
/openbmc/linux/fs/jfs/
H 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))
/openbmc/u-boot/board/cobra5272/
H A Dflash.c131 int iflag, cflag, prot, sect; in flash_erase() local
167 cflag = icache_status (); in flash_erase()
239 if (cflag) in flash_erase()
250 int cflag, iflag; in write_word() local
270 cflag = icache_status (); in write_word()
305 if (cflag) in write_word()
/openbmc/qemu/tests/qemu-iotests/
H A Dmeson.build5 foreach cflag: qemu_ldflags
6 if cflag.startswith('-fsanitize') and \
7 not cflag.contains('safe-stack') and not cflag.contains('cfi-icall')
/openbmc/linux/arch/sh/kernel/cpu/sh4a/
H 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()
/openbmc/linux/arch/sh/kernel/cpu/sh3/
H 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()
H 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()
/openbmc/linux/drivers/tty/
H A Damiserial.c573 unsigned cflag, cval = 0; in change_speed() local
577 cflag = tty->termios.c_cflag; in change_speed()
582 if (cflag & CSTOPB) { in change_speed()
586 if (cflag & PARENB) { in change_speed()
590 if (!(cflag & PARODD)) in change_speed()
592 if (cflag & CMSPAR) in change_speed()
639 tty_port_set_cts_flow(port, cflag & CRTSCTS); in change_speed()
640 if (cflag & CRTSCTS) in change_speed()
642 tty_port_set_check_carrier(port, ~cflag & CLOCAL); in change_speed()
643 if (~cflag & CLOCAL) in change_speed()
[all …]
/openbmc/linux/drivers/accessibility/speakup/
H 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()

123