Lines Matching refs:termios
11 #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)->c_cc, (termio)->c_cc, NCC); \
41 * Translate a "termios" structure into a "termio". Ugh.
43 #define kernel_termios_to_user_termio(termio, termios) \
45 put_user((termios)->c_iflag, &(termio)->c_iflag); \
46 put_user((termios)->c_oflag, &(termio)->c_oflag); \
47 put_user((termios)->c_cflag, &(termio)->c_cflag); \
48 put_user((termios)->c_lflag, &(termio)->c_lflag); \
49 put_user((termios)->c_line, &(termio)->c_line); \
50 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
55 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
56 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))