Searched refs:termios (Results 101 - 125 of 195) sorted by relevance

12345678

/linux-master/drivers/tty/serial/
H A Dmsm_serial.c1258 static void msm_set_termios(struct uart_port *port, struct ktermios *termios, argument
1272 baud = uart_get_baud_rate(port, termios, old, 300, 4000000);
1274 if (tty_termios_baud_rate(termios))
1275 tty_termios_encode_baud_rate(termios, baud, baud);
1280 if (termios->c_cflag & PARENB) {
1281 if (termios->c_cflag & PARODD)
1283 else if (termios->c_cflag & CMSPAR)
1291 switch (termios->c_cflag & CSIZE) {
1309 if (termios->c_cflag & CSTOPB)
1320 if (termios
[all...]
H A Dpch_uart.c1289 struct ktermios *termios,
1298 switch (termios->c_cflag & CSIZE) {
1312 if (termios->c_cflag & CSTOPB)
1317 if (termios->c_cflag & PARENB) {
1318 if (termios->c_cflag & PARODD)
1327 if ((termios->c_cflag & CRTSCTS) && (priv->fifo_size == 256))
1332 termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
1334 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
1338 uart_update_timeout(port, termios->c_cflag, baud);
1345 if (tty_termios_baud_rate(termios))
1288 pch_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dpmac_zilog.c1188 static void __pmz_set_termios(struct uart_port *port, struct ktermios *termios, argument
1203 baud = uart_get_baud_rate(port, termios, old, 1200, 4000000);
1208 pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
1212 baud = uart_get_baud_rate(port, termios, old, 1200, 230400);
1213 pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud);
1215 if (UART_ENABLE_MS(&uap->port, termios->c_cflag)) {
1226 uart_update_timeout(port, termios->c_cflag, baud);
1230 static void pmz_set_termios(struct uart_port *port, struct ktermios *termios, argument
[all...]
H A Dsunsu.c898 sunsu_set_termios(struct uart_port *port, struct ktermios *termios, argument
906 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
909 sunsu_change_speed(port, termios->c_cflag, termios->c_iflag, quot);
1333 struct ktermios termios; local
1351 memset(&termios, 0, sizeof(struct ktermios));
1352 termios.c_cflag = co->cflag;
1354 port->ops->set_termios(port, &termios, &dummy);
H A Dip22zilog.c873 ip22zilog_set_termios(struct uart_port *port, struct ktermios *termios, argument
881 baud = uart_get_baud_rate(port, termios, old, 1200, 76800);
887 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
889 if (UART_ENABLE_MS(&up->port, termios->c_cflag))
895 uart_update_timeout(port, termios->c_cflag, baud);
H A Dmeson_uart.c337 struct ktermios *termios,
346 cflags = termios->c_cflag;
347 iflags = termios->c_iflag;
387 termios->c_cflag &= ~CRTSCTS;
394 baud = uart_get_baud_rate(port, termios, old, 50, 4000000);
407 uart_update_timeout(port, termios->c_cflag, baud);
336 meson_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
H A Dsamsung_tty.c1468 struct ktermios *termios,
1483 termios->c_cflag &= ~(HUPCL | CMSPAR);
1484 termios->c_cflag |= CLOCAL;
1490 baud = uart_get_baud_rate(port, termios, old, 0, 3000000);
1526 switch (termios->c_cflag & CSIZE) {
1549 if (termios->c_cflag & CSTOPB)
1552 if (termios->c_cflag & PARENB) {
1553 if (termios->c_cflag & PARODD)
1573 if (termios->c_cflag & CRTSCTS) {
1595 uart_update_timeout(port, termios
1467 s3c24xx_serial_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dqcom_geni_serial.c1209 struct ktermios *termios,
1228 baud = uart_get_baud_rate(uport, termios, old, 300, 4000000);
1270 if (termios->c_cflag & PARENB) {
1275 if (termios->c_cflag & PARODD) {
1278 } else if (termios->c_cflag & CMSPAR) {
1293 bits_per_char = tty_get_char_size(termios->c_cflag);
1296 if (termios->c_cflag & CSTOPB)
1302 if (termios->c_cflag & CRTSCTS)
1308 uart_update_timeout(uport, termios->c_cflag, baud);
1208 qcom_geni_serial_set_termios(struct uart_port *uport, struct ktermios *termios, const struct ktermios *old) argument
H A Dstm32-usart.c222 static int stm32_usart_config_rs485(struct uart_port *port, struct ktermios *termios, argument
1166 struct ktermios *termios,
1175 tcflag_t cflag = termios->c_cflag;
1185 baud = uart_get_baud_rate(port, termios, old, 0, uart_clk / 8);
1248 termios->c_cflag = cflag;
1333 if (termios->c_iflag & INPCK)
1335 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
1340 if (termios->c_iflag & IGNPAR)
1342 if (termios->c_iflag & IGNBRK) {
1348 if (termios
1165 stm32_usart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
/linux-master/drivers/tty/serial/8250/
H A D8250_mid.c207 static void mid8250_set_termios(struct uart_port *p, struct ktermios *termios, argument
210 unsigned int baud = tty_termios_baud_rate(termios);
239 serial8250_do_set_termios(p, termios, old);
H A D8250_lpss.c72 static void byt_set_termios(struct uart_port *p, struct ktermios *termios, argument
75 unsigned int baud = tty_termios_baud_rate(termios);
103 dw8250_do_set_termios(p, termios, old);
H A D8250_exar.c127 int (*rs485_config)(struct uart_port *port, struct ktermios *termios,
428 static int generic_rs485_config(struct uart_port *port, struct ktermios *termios, argument
449 static int sealevel_rs485_config(struct uart_port *port, struct ktermios *termios, argument
458 ret = generic_rs485_config(port, termios, rs485);
498 static int iot2040_rs485_config(struct uart_port *port, struct ktermios *termios, argument
528 return generic_rs485_config(port, termios, rs485);
/linux-master/drivers/s390/char/
H A Dsclp_con.c16 #include <linux/termios.h>
/linux-master/arch/alpha/include/uapi/asm/
H A Dtermbits.h10 * termios type and macro definitions. Be careful about adding stuff
16 struct termios { struct
27 /* Alpha has identical termios and termios2 */
40 /* Alpha has matching termios and ktermios */
/linux-master/arch/parisc/include/uapi/asm/
H A Dtermbits.h10 struct termios { struct
/linux-master/arch/mips/include/uapi/asm/
H A Dtermbits.h23 struct termios { struct
/linux-master/include/uapi/asm-generic/
H A Dtermbits.h10 struct termios { struct
/linux-master/drivers/usb/serial/
H A Dmct_u232.c601 struct ktermios *termios = &tty->termios; local
602 unsigned int cflag = termios->c_cflag;
665 termios->c_cflag &= ~CMSPAR;
H A Dcp210x.c1059 if (tty->termios.c_ospeed == 0)
1066 baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed);
1153 tty->termios.c_cflag &= ~CRTSCTS;
1154 tty->termios.c_iflag &= ~(IXON | IXOFF);
1157 if (tty->termios.c_ospeed != 0 &&
1183 if (tty->termios.c_ospeed == 0) {
1263 if (old_termios && !cp210x_termios_change(&tty->termios, old_termios) &&
1264 tty->termios.c_ospeed != 0)
1267 if (!old_termios || tty->termios.c_ospeed != old_termios->c_ospeed)
1272 tty->termios
[all...]
H A Dcypress_m8.c600 /* Set termios */
875 tty->termios.c_cflag &= ~(CMSPAR|CRTSCTS);
877 cflag = tty->termios.c_cflag;
918 * termios flag base comes from empeg.c */
922 dev_dbg(dev, "Using custom termios settings for a baud rate of 4800bps.\n");
923 /* define custom termios settings for NMEA protocol */
925 tty->termios.c_iflag /* input modes - */
935 tty->termios.c_oflag /* output modes */
938 tty->termios.c_lflag /* line discipline modes */
H A Dspcp8x5.c292 unsigned int cflag = tty->termios.c_cflag;
300 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
/linux-master/drivers/tty/
H A Dtty.h83 speed_t tty_termios_input_baud_rate(const struct ktermios *termios);
/linux-master/samples/uhid/
H A Duhid-example.c47 #include <termios.h>
393 struct termios state;
/linux-master/drivers/ipack/devices/
H A Dipoctal.c506 cflag = tty->termios.c_cflag;
523 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8;
537 tty->termios.c_cflag &= ~CMSPAR;
569 tty_termios_encode_baud_rate(&tty->termios, baud, baud);
613 tty_termios_encode_baud_rate(&tty->termios, 38400, 38400);
/linux-master/drivers/net/usb/
H A Dhso.c1042 static void hso_init_termios(struct ktermios *termios) argument
1047 termios->c_iflag &=
1058 termios->c_oflag &= ~OPOST;
1060 termios->c_lflag &=
1069 termios->c_cflag &=
1075 termios->c_cflag |= CS8; /* character size 8 bits */
1078 tty_termios_encode_baud_rate(termios, 115200, 115200);
1095 tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */
1097 tty->termios.c_cflag &=
1103 tty->termios
[all...]

Completed in 349 milliseconds

12345678