Lines Matching defs:termio
27 struct termio {
66 * Translate a "termio" structure into a "termios". Ugh.
69 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
71 get_user(__tmp,&(termio)->x); \
75 #define user_termio_to_kernel_termios(termios, termio) \
77 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
78 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
79 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
80 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
81 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
85 * Translate a "termios" structure into a "termio". Ugh.
88 #define kernel_termios_to_user_termio(termio, termios) \
90 put_user((termios)->c_iflag, &(termio)->c_iflag); \
91 put_user((termios)->c_oflag, &(termio)->c_oflag); \
92 put_user((termios)->c_cflag, &(termio)->c_cflag); \
93 put_user((termios)->c_lflag, &(termio)->c_lflag); \
94 put_user((termios)->c_line, &(termio)->c_line); \
95 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \