Lines Matching defs:termio
22 struct termio {
60 * Translate a "termio" structure into a "termios". Ugh.
62 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
64 get_user(__tmp,&(termio)->x); \
68 #define user_termio_to_kernel_termios(termios, termio) \
70 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
71 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
72 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
73 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
74 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
78 * Translate a "termios" structure into a "termio". Ugh.
80 #define kernel_termios_to_user_termio(termio, termios) \
82 put_user((termios)->c_iflag, &(termio)->c_iflag); \
83 put_user((termios)->c_oflag, &(termio)->c_oflag); \
84 put_user((termios)->c_cflag, &(termio)->c_cflag); \
85 put_user((termios)->c_lflag, &(termio)->c_lflag); \
86 put_user((termios)->c_line, &(termio)->c_line); \
87 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \