Home
last modified time | relevance | path

Searched refs:termios (Results 1 - 25 of 397) sorted by relevance

12345678910>>...16

/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dtermios.c4 int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument
13 termios->c_iflag = (0xffff0000 & termios->c_iflag) | v.c_iflag; in user_termio_to_kernel_termios()
14 termios->c_oflag = (0xffff0000 & termios->c_oflag) | v.c_oflag; in user_termio_to_kernel_termios()
15 termios->c_cflag = (0xffff0000 & termios->c_cflag) | v.c_cflag; in user_termio_to_kernel_termios()
16 termios->c_lflag = (0xffff0000 & termios->c_lflag) | v.c_lflag; in user_termio_to_kernel_termios()
17 termios in user_termio_to_kernel_termios()
32 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
[all...]
/kernel/linux/linux-5.10/include/asm-generic/
H A Dtermios.h7 #include <uapi/asm-generic/termios.h>
18 * Translate a "termio" structure into a "termios". Ugh.
20 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument
27 termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp; in user_termio_to_kernel_termios()
31 termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp; in user_termio_to_kernel_termios()
35 termios->c_cflag = (0xffff0000 & termios->c_cflag) | tmp; in user_termio_to_kernel_termios()
39 termios in user_termio_to_kernel_termios()
56 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
[all...]
H A Dtermios-base.h2 /* termios.h: generic termios/termio user copying/translation
13 * Translate a "termio" structure into a "termios". Ugh.
15 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument
22 termios->c_iflag = (0xffff0000 & termios->c_iflag) | tmp; in user_termio_to_kernel_termios()
26 termios->c_oflag = (0xffff0000 & termios->c_oflag) | tmp; in user_termio_to_kernel_termios()
30 termios->c_cflag = (0xffff0000 & termios in user_termio_to_kernel_termios()
51 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/
H A Dtty_ioctl.c12 #include <linux/termios.h>
34 * Internal flag options for termios setting behavior
98 * Takes the termios rwsem to protect against parallel throttle/unthrottle
100 * termios data at this point when implementing software flow control.
216 struct ktermios *termios = &tty->termios; in unset_locked_termios() local
222 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios()
223 NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); in unset_locked_termios()
224 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios()
225 NOSET_MASK(termios in unset_locked_termios()
373 user_termio_to_kernel_termios(struct ktermios *termios, struct termio __user *termio) user_termio_to_kernel_termios() argument
393 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
600 set_sgflags(struct ktermios *termios, int flags) set_sgflags() argument
641 struct ktermios termios; set_sgttyb() local
[all...]
H A Dtty_baudrate.c8 #include <linux/termios.h>
48 * @termios: termios structure
50 * Convert termios baud rate data into a speed. This should be called
51 * with the termios lock held if this termios is a terminal termios
58 speed_t tty_termios_baud_rate(const struct ktermios *termios) in tty_termios_baud_rate() argument
62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate()
66 return termios in tty_termios_baud_rate()
88 tty_termios_input_baud_rate(const struct ktermios *termios) tty_termios_input_baud_rate() argument
129 tty_termios_encode_baud_rate(struct ktermios *termios, speed_t ibaud, speed_t obaud) tty_termios_encode_baud_rate() argument
[all...]
/kernel/linux/linux-5.10/arch/ia64/include/asm/
H A Dtermios.h11 #include <uapi/asm/termios.h>
23 * Translate a "termio" structure into a "termios". Ugh.
25 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
28 *(unsigned short *) &(termios)->x = __tmp; \
31 #define user_termio_to_kernel_termios(termios, termio) \
33 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
34 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
35 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
36 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
37 copy_from_user((termios)
[all...]
/kernel/linux/linux-5.10/arch/parisc/include/asm/
H A Dtermios.h5 #include <uapi/asm/termios.h>
17 * Translate a "termio" structure into a "termios". Ugh.
19 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
22 *(unsigned short *) &(termios)->x = __tmp; \
25 #define user_termio_to_kernel_termios(termios, termio) \
27 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
28 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
29 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
30 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
31 copy_from_user((termios)
[all...]
/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_baudrate.c8 #include <linux/termios.h>
48 * @termios: termios structure
50 * Convert termios baud rate data into a speed. This should be called
51 * with the termios lock held if this termios is a terminal termios
52 * structure. May change the termios data. Device drivers can call this
58 speed_t tty_termios_baud_rate(struct ktermios *termios) in tty_termios_baud_rate() argument
62 cbaud = termios in tty_termios_baud_rate()
93 tty_termios_input_baud_rate(struct ktermios *termios) tty_termios_input_baud_rate() argument
142 tty_termios_encode_baud_rate(struct ktermios *termios, speed_t ibaud, speed_t obaud) tty_termios_encode_baud_rate() argument
[all...]
H A Dtty_ioctl.c11 #include <linux/termios.h>
40 * Internal flag options for termios setting behavior
105 * Takes the termios rwsem to protect against parallel throttle/unthrottle
107 * termios data at this point when implementing software flow control.
127 * Takes the termios rwsem to protect against parallel throttle/unthrottle
129 * termios data at this point when implementing software flow control.
246 struct ktermios *termios = &tty->termios; in unset_locked_termios() local
252 NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); in unset_locked_termios()
253 NOSET_MASK(termios in unset_locked_termios()
507 set_sgflags(struct ktermios *termios, int flags) set_sgflags() argument
548 struct ktermios termios; set_sgttyb() local
[all...]
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dtermios.h13 #include <uapi/asm/termios.h>
27 * Translate a "termio" structure into a "termios". Ugh.
29 static inline int user_termio_to_kernel_termios(struct ktermios *termios, in user_termio_to_kernel_termios() argument
39 termios->c_iflag = (termios->c_iflag & 0xffff0000) | iflag; in user_termio_to_kernel_termios()
41 termios->c_oflag = (termios->c_oflag & 0xffff0000) | oflag; in user_termio_to_kernel_termios()
43 termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag; in user_termio_to_kernel_termios()
45 termios in user_termio_to_kernel_termios()
59 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
[all...]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dtermios.h5 #include <uapi/asm/termios.h>
28 * Translate a "termio" structure into a "termios". Ugh.
30 #define user_termio_to_kernel_termios(termios, termio) \
35 (termios)->c_iflag = (0xffff0000 & ((termios)->c_iflag)) | tmp; \
37 (termios)->c_oflag = (0xffff0000 & ((termios)->c_oflag)) | tmp; \
39 (termios)->c_cflag = (0xffff0000 & ((termios)->c_cflag)) | tmp; \
41 (termios)
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dtty.h7 #include <linux/termios.h>
35 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
36 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
37 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
38 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
39 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
40 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
41 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
42 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
43 #define START_CHAR(tty) ((tty)->termios
209 struct ktermios termios, termios_locked; global() member
[all...]
H A Dtermios_internal.h6 #include <asm/termios.h>
42 int user_termios_to_kernel_termios_1(struct ktermios *, struct termios __user *);
43 int kernel_termios_to_user_termios_1(struct termios __user *, struct ktermios *);
45 int user_termios_to_kernel_termios(struct ktermios *, struct termios __user *);
46 int kernel_termios_to_user_termios(struct termios __user *, struct ktermios *);
/kernel/linux/linux-5.10/drivers/usb/serial/
H A Dempeg.c80 struct ktermios *termios = &tty->termios; in empeg_init_termios() local
91 termios->c_iflag in empeg_init_termios()
101 termios->c_oflag in empeg_init_termios()
104 termios->c_lflag in empeg_init_termios()
111 termios->c_cflag in empeg_init_termios()
116 termios->c_cflag in empeg_init_termios()
/kernel/linux/linux-6.6/drivers/usb/serial/
H A Dempeg.c80 struct ktermios *termios = &tty->termios; in empeg_init_termios() local
91 termios->c_iflag in empeg_init_termios()
101 termios->c_oflag in empeg_init_termios()
104 termios->c_lflag in empeg_init_termios()
111 termios->c_cflag in empeg_init_termios()
116 termios->c_cflag in empeg_init_termios()
/kernel/linux/linux-5.10/include/linux/
H A Dtty.h7 #include <linux/termios.h>
82 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
83 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
84 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
85 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
86 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
87 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
88 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
89 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
90 #define START_CHAR(tty) ((tty)->termios
281 struct ktermios termios, termios_locked; global() member
[all...]
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dtermios.c16 struct ktermios *termios) in kernel_termios_to_user_termio()
20 v.c_iflag = termios->c_iflag; in kernel_termios_to_user_termio()
21 v.c_oflag = termios->c_oflag; in kernel_termios_to_user_termio()
22 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio()
23 v.c_lflag = termios->c_lflag; in kernel_termios_to_user_termio()
24 v.c_line = termios->c_line; in kernel_termios_to_user_termio()
25 memcpy(v.c_cc, termios->c_cc, NCC); in kernel_termios_to_user_termio()
27 v.c_cc[_VMIN] = termios->c_cc[VMIN]; in kernel_termios_to_user_termio()
28 v.c_cc[_VTIME] = termios->c_cc[VTIME]; in kernel_termios_to_user_termio()
78 struct termios __use in user_termios_to_kernel_termios_1()
15 kernel_termios_to_user_termio(struct termio __user *termio, struct ktermios *termios) kernel_termios_to_user_termio() argument
[all...]
/kernel/linux/linux-5.10/drivers/tty/serial/jsm/
H A Djsm_tty.c153 struct ktermios *termios; in jsm_tty_send_xchar() local
156 termios = &port->state->port.tty->termios; in jsm_tty_send_xchar()
157 if (ch == termios->c_cc[VSTART]) in jsm_tty_send_xchar()
160 if (ch == termios->c_cc[VSTOP]) in jsm_tty_send_xchar()
194 struct ktermios *termios; in jsm_tty_open() local
245 termios = &port->state->port.tty->termios; in jsm_tty_open()
246 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
247 channel->ch_c_iflag = termios in jsm_tty_open()
302 jsm_tty_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old_termios) jsm_tty_set_termios() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/jsm/
H A Djsm_tty.c153 struct ktermios *termios; in jsm_tty_send_xchar() local
156 termios = &port->state->port.tty->termios; in jsm_tty_send_xchar()
157 if (ch == termios->c_cc[VSTART]) in jsm_tty_send_xchar()
160 if (ch == termios->c_cc[VSTOP]) in jsm_tty_send_xchar()
194 struct ktermios *termios; in jsm_tty_open() local
245 termios = &port->state->port.tty->termios; in jsm_tty_open()
246 channel->ch_c_cflag = termios->c_cflag; in jsm_tty_open()
247 channel->ch_c_iflag = termios in jsm_tty_open()
302 jsm_tty_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old_termios) jsm_tty_set_termios() argument
[all...]
/kernel/linux/linux-5.10/drivers/tty/serial/
H A D21285.c245 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, in serial21285_set_termios() argument
254 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios()
255 termios->c_cflag |= CLOCAL; in serial21285_set_termios()
260 termios->c_iflag &= ~(IGNBRK | BRKINT); in serial21285_set_termios()
265 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
268 tty_termios_encode_baud_rate(termios, b, b); in serial21285_set_termios()
270 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios()
285 if (termios->c_cflag & CSTOPB) in serial21285_set_termios()
287 if (termios->c_cflag & PARENB) { in serial21285_set_termios()
289 if (!(termios in serial21285_set_termios()
[all...]
H A Dpnx8xxx_uart.c433 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, in pnx8xxx_set_termios() argument
445 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios()
446 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios()
447 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios()
448 termios->c_cflag |= old_csize; in pnx8xxx_set_termios()
452 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios()
457 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios()
459 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios()
461 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios()
468 baud = uart_get_baud_rate(port, termios, ol in pnx8xxx_set_termios()
[all...]
H A Dfsl_lpuart.c1209 struct ktermios *termios = &tty->termios; in lpuart_start_rx_dma() local
1214 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma()
1215 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma()
1814 lpuart_set_termios(struct uart_port *port, struct ktermios *termios, in lpuart_set_termios() argument
1838 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios()
1839 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios()
1840 termios->c_cflag &= ~CSIZE; in lpuart_set_termios()
1841 termios->c_cflag |= old_csize; in lpuart_set_termios()
1845 if ((termios in lpuart_set_termios()
2052 lpuart32_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) lpuart32_set_termios() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/
H A D21285.c224 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, in serial21285_set_termios() argument
233 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios()
234 termios->c_cflag |= CLOCAL; in serial21285_set_termios()
239 termios->c_iflag &= ~(IGNBRK | BRKINT); in serial21285_set_termios()
244 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
247 tty_termios_encode_baud_rate(termios, b, b); in serial21285_set_termios()
249 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios()
264 if (termios->c_cflag & CSTOPB) in serial21285_set_termios()
266 if (termios->c_cflag & PARENB) { in serial21285_set_termios()
268 if (!(termios in serial21285_set_termios()
[all...]
H A Damba-pl010.c351 pl010_set_termios(struct uart_port *port, struct ktermios *termios, in pl010_set_termios() argument
361 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in pl010_set_termios()
364 switch (termios->c_cflag & CSIZE) { in pl010_set_termios()
378 if (termios->c_cflag & CSTOPB) in pl010_set_termios()
380 if (termios->c_cflag & PARENB) { in pl010_set_termios()
382 if (!(termios->c_cflag & PARODD)) in pl010_set_termios()
393 uart_update_timeout(port, termios->c_cflag, baud); in pl010_set_termios()
396 if (termios->c_iflag & INPCK) in pl010_set_termios()
398 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) in pl010_set_termios()
405 if (termios in pl010_set_termios()
444 pl010_set_ldisc(struct uart_port *port, struct ktermios *termios) pl010_set_ldisc() argument
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/8250/
H A D8250_dwlib.c95 void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios, in dw8250_do_set_termios() argument
99 if (termios->c_cflag & CRTSCTS) in dw8250_do_set_termios()
102 serial8250_do_set_termios(p, termios, old); in dw8250_do_set_termios()
139 struct ktermios *termios) in dw8250_rs485_set_addr()
145 if (termios) in dw8250_rs485_set_addr()
146 termios->c_cflag |= ADDRB; in dw8250_rs485_set_addr()
180 static int dw8250_rs485_config(struct uart_port *p, struct ktermios *termios, in dw8250_rs485_config() argument
198 if (termios) in dw8250_rs485_config()
199 termios->c_cflag &= ~ADDRB; in dw8250_rs485_config()
217 dw8250_rs485_set_addr(p, rs485, termios); in dw8250_rs485_config()
138 dw8250_rs485_set_addr(struct uart_port *p, struct serial_rs485 *rs485, struct ktermios *termios) dw8250_rs485_set_addr() argument
[all...]

Completed in 14 milliseconds

12345678910>>...16