Searched refs:termios (Results 26 - 50 of 196) sorted by relevance

12345678

/linux-master/drivers/tty/serial/
H A Dowl-uart.c308 struct ktermios *termios,
321 switch (termios->c_cflag & CSIZE) {
337 if (termios->c_cflag & CSTOPB)
343 if (termios->c_cflag & PARENB) {
344 if (termios->c_cflag & CMSPAR) {
345 if (termios->c_cflag & PARODD)
349 } else if (termios->c_cflag & PARODD)
356 if (termios->c_cflag & CRTSCTS)
363 baud = uart_get_baud_rate(port, termios, old, 9600, 3200000);
367 if (tty_termios_baud_rate(termios))
307 owl_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dclps711x.c221 struct ktermios *termios)
227 (termios->c_line == N_IRDA) ? SYSCON1_SIREN : 0);
253 struct ktermios *termios,
259 /* Mask termios capabilities we don't support */
260 termios->c_cflag &= ~CMSPAR;
261 termios->c_iflag &= ~(BRKINT | IGNBRK);
264 baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096,
268 switch (termios->c_cflag & CSIZE) {
284 if (termios->c_cflag & CSTOPB)
287 if (termios
220 uart_clps711x_set_ldisc(struct uart_port *port, struct ktermios *termios) argument
252 uart_clps711x_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Ddigicolor-usart.c287 struct ktermios *termios,
294 /* Mask termios capabilities we don't support */
295 termios->c_cflag &= ~CMSPAR;
296 termios->c_iflag &= ~(BRKINT | IGNBRK);
299 baud = uart_get_baud_rate(port, termios, old,
304 switch (termios->c_cflag & CSIZE) {
310 termios->c_cflag &= ~CSIZE;
311 termios->c_cflag |= CS8;
315 if (termios->c_cflag & CSTOPB)
318 if (termios
286 digicolor_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dmilbeaut_usio.c300 struct ktermios *termios,
306 switch (termios->c_cflag & CSIZE) {
322 if (termios->c_cflag & CSTOPB)
325 if (termios->c_cflag & PARENB) {
327 if (termios->c_cflag & PARODD)
332 (termios->c_cflag & CRTSCTS))
335 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk);
342 uart_update_timeout(port, termios->c_cflag, baud);
345 if (termios->c_iflag & INPCK)
349 if (termios
299 mlb_usio_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dapbuart.c205 struct ktermios *termios, const struct ktermios *old)
212 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
221 if (termios->c_cflag & PARENB) {
223 if ((termios->c_cflag & PARODD))
228 if (termios->c_cflag & CRTSCTS)
234 uart_update_timeout(port, termios->c_cflag, baud);
237 if (termios->c_iflag & INPCK)
242 if (termios->c_iflag & IGNPAR)
246 if ((termios->c_cflag & CREAD) == 0)
204 apbuart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
H A Dmen_z135_uart.c640 struct ktermios *termios,
654 switch (termios->c_cflag & CSIZE) {
670 if (termios->c_cflag & CSTOPB)
674 if (termios->c_cflag & PARENB) {
677 if (termios->c_cflag & PARODD)
685 if (termios->c_cflag & CRTSCTS) {
688 termios->c_cflag &= ~CLOCAL;
694 termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */
703 baud = uart_get_baud_rate(port, termios, old, 0, uart_freq / 16);
706 if (tty_termios_baud_rate(termios))
639 men_z135_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dserial_txx9.c574 serial_txx9_set_termios(struct uart_port *up, struct ktermios *termios, argument
584 termios->c_cflag &= ~(HUPCL | CMSPAR);
585 termios->c_cflag |= CLOCAL;
590 switch (termios->c_cflag & CSIZE) {
599 termios->c_cflag &= ~CSIZE;
600 termios->c_cflag |= CS8;
605 if (termios->c_cflag & CSTOPB)
610 if (termios->c_cflag & PARENB)
612 if (!(termios->c_cflag & PARODD))
618 baud = uart_get_baud_rate(up, termios, ol
[all...]
H A Desp32_uart.c391 struct ktermios *termios,
400 termios->c_cflag &= ~CMSPAR;
405 baud = uart_get_baud_rate(port, termios, old,
417 if (termios->c_cflag & PARENB) {
419 if (termios->c_cflag & PARODD)
423 switch (termios->c_cflag & CSIZE) {
438 if (termios->c_cflag & CSTOPB)
443 if (termios->c_cflag & CRTSCTS)
451 uart_update_timeout(port, termios->c_cflag, baud);
455 tty_termios_encode_baud_rate(termios, bau
390 esp32_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dmcf.c194 static void mcf_set_termios(struct uart_port *port, struct ktermios *termios, argument
204 baud = uart_get_baud_rate(port, termios, old, 0, 230400);
215 switch (termios->c_cflag & CSIZE) {
223 if (termios->c_cflag & PARENB) {
224 if (termios->c_cflag & CMSPAR) {
225 if (termios->c_cflag & PARODD)
230 if (termios->c_cflag & PARODD)
241 * need to be initialized based on termios settings for
245 if (termios->c_cflag & CSTOPB)
250 if (termios
416 mcf_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument
[all...]
H A Dsifive.c628 struct ktermios *termios,
637 if ((termios->c_cflag & CSIZE) != CS8) {
639 termios->c_cflag &= ~CSIZE;
640 termios->c_cflag |= CS8;
642 if (termios->c_iflag & (INPCK | PARMRK))
644 if (termios->c_iflag & BRKINT)
646 termios->c_iflag &= ~(INPCK|PARMRK|BRKINT);
649 nstop = (termios->c_cflag & CSTOPB) ? 2 : 1;
653 rate = uart_get_baud_rate(port, termios, old, 0,
660 uart_update_timeout(port, termios
627 sifive_serial_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
H A Dsa1100.c386 sa1100_set_termios(struct uart_port *port, struct ktermios *termios, argument
398 while ((termios->c_cflag & CSIZE) != CS7 &&
399 (termios->c_cflag & CSIZE) != CS8) {
400 termios->c_cflag &= ~CSIZE;
401 termios->c_cflag |= old_csize;
405 if ((termios->c_cflag & CSIZE) == CS8)
410 if (termios->c_cflag & CSTOPB)
412 if (termios->c_cflag & PARENB) {
414 if (!(termios->c_cflag & PARODD))
421 baud = uart_get_baud_rate(port, termios, ol
[all...]
H A Dmax310x.c893 struct ktermios *termios,
899 /* Mask termios capabilities we don't support */
900 termios->c_cflag &= ~CMSPAR;
903 switch (termios->c_cflag & CSIZE) {
919 if (termios->c_cflag & PARENB) {
921 if (!(termios->c_cflag & PARODD))
926 if (termios->c_cflag & CSTOPB)
934 if (termios->c_iflag & INPCK)
937 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
942 if (termios
892 max310x_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
1026 max310x_rs485_config(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument
[all...]
H A Dfsl_lpuart.c1346 struct ktermios *termios = &tty->termios; local
1348 unsigned int bits = tty_get_frame_size(termios->c_cflag);
1448 static int lpuart_config_rs485(struct uart_port *port, struct ktermios *termios, argument
1478 static int lpuart32_config_rs485(struct uart_port *port, struct ktermios *termios, argument
1973 lpuart_set_termios(struct uart_port *port, struct ktermios *termios, argument
1997 while ((termios->c_cflag & CSIZE) != CS8 &&
1998 (termios->c_cflag & CSIZE) != CS7) {
1999 termios->c_cflag &= ~CSIZE;
2000 termios
2211 lpuart32_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
3152 struct ktermios termios; local
[all...]
H A Dsc16is7xx.c1014 struct ktermios *termios,
1024 /* Mask termios capabilities we don't support */
1025 termios->c_cflag &= ~CMSPAR;
1028 switch (termios->c_cflag & CSIZE) {
1043 termios->c_cflag &= ~CSIZE;
1044 termios->c_cflag |= CS8;
1049 if (termios->c_cflag & PARENB) {
1051 if (!(termios->c_cflag & PARODD))
1056 if (termios->c_cflag & CSTOPB)
1061 if (termios
1013 sc16is7xx_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
1116 sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument
[all...]
H A Dmps2-uart.c341 mps2_uart_set_termios(struct uart_port *port, struct ktermios *termios, argument
347 termios->c_cflag &= ~(CRTSCTS | CMSPAR);
348 termios->c_cflag &= ~CSIZE;
349 termios->c_cflag |= CS8;
350 termios->c_cflag &= ~PARENB;
351 termios->c_cflag &= ~CSTOPB;
353 baud = uart_get_baud_rate(port, termios, old,
361 uart_update_timeout(port, termios->c_cflag, baud);
366 if (tty_termios_baud_rate(termios))
367 tty_termios_encode_baud_rate(termios, bau
[all...]
H A Dpxa.c402 serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios, argument
411 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
413 if (termios->c_cflag & CSTOPB)
415 if (termios->c_cflag & PARENB)
417 if (!(termios->c_cflag & PARODD))
423 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16);
448 uart_update_timeout(port, termios->c_cflag, baud);
451 if (termios->c_iflag & INPCK)
453 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
460 if (termios
[all...]
/linux-master/drivers/mmc/core/
H A Dsdio_uart.c246 struct ktermios *termios,
252 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag));
254 if (termios->c_cflag & CSTOPB)
256 if (termios->c_cflag & PARENB)
258 if (!(termios->c_cflag & PARODD))
262 baud = tty_termios_baud_rate(termios);
271 termios->c_cflag &= ~CBAUD;
273 termios->c_cflag |= old->c_cflag & CBAUD;
276 termios->c_cflag |= B9600;
286 if (termios
245 sdio_uart_change_speed(struct sdio_uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
[all...]
/linux-master/drivers/tty/serial/8250/
H A D8250_mtk.c306 mtk8250_set_termios(struct uart_port *port, struct ktermios *termios, argument
340 baud = tty_termios_baud_rate(termios);
342 serial8250_do_set_termios(port, termios, NULL);
344 tty_termios_encode_baud_rate(termios, baud, baud);
353 * lower rate supported and update termios c_flag.
359 baud = uart_get_baud_rate(port, termios, old,
380 uart_update_timeout(port, termios->c_cflag, baud);
411 if ((termios->c_cflag & CRTSCTS) && (!(termios->c_iflag & CRTSCTS)))
413 else if (termios
[all...]
H A D8250_port.c603 * @termios: termios structure
610 int serial8250_em485_config(struct uart_port *port, struct ktermios *termios, argument
2648 struct ktermios *termios,
2674 return uart_get_baud_rate(port, termios, old, min, max);
2706 serial8250_do_set_termios(port, &tty->termios, NULL);
2716 serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios, argument
2725 termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CMSPAR);
2726 if ((termios->c_cflag & CSIZE) == CS5 ||
2727 (termios
2647 serial8250_get_baud_rate(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
2855 serial8250_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
2864 serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios) argument
2883 serial8250_set_ldisc(struct uart_port *port, struct ktermios *termios) argument
3280 struct ktermios termios; local
[all...]
H A D8250_dwlib.h50 void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios, const struct ktermios *old);
/linux-master/drivers/usb/serial/
H A Dupd78f0730.c309 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
329 tty->termios.c_cflag &= ~CSIZE;
330 tty->termios.c_cflag |= CS8;
349 tty->termios.c_cflag &= ~CMSPAR;
366 tty->termios.c_cflag &= ~CRTSCTS;
370 tty->termios.c_iflag &= ~(IXOFF | IXON);
H A Dkobil_sct.c158 tty->termios.c_lflag = 0;
159 tty->termios.c_iflag &= ~(ISIG | ICANON | ECHO | IEXTEN | XCASE);
160 tty->termios.c_iflag |= IGNBRK | IGNPAR | IXOFF;
162 tty->termios.c_oflag &= ~ONLCR;
484 int c_cflag = tty->termios.c_cflag;
491 tty_termios_copy_hw(&tty->termios, old);
516 tty->termios.c_cflag &= ~CMSPAR;
/linux-master/tools/perf/ui/tui/
H A Dsetup.c5 #include <termios.h>
128 static struct termios tty;
/linux-master/tools/arch/x86/dell-uart-backlight-emulator/
H A Ddell-uart-backlight-emulator.c18 #include <termios.h>
44 struct termios tty, saved_tty;
/linux-master/drivers/tty/serdev/
H A Dserdev-ttyport.c127 ktermios = tty->termios;
171 struct ktermios ktermios = tty->termios;
185 struct ktermios ktermios = tty->termios;
200 struct ktermios ktermios = tty->termios;
211 if ((tty->termios.c_cflag & (PARENB | PARODD | CMSPAR)) !=

Completed in 461 milliseconds

12345678