Lines Matching refs:termio
16 * Translate a "termio" structure into a "termios". Ugh.
18 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
20 get_user(__tmp,&(termio)->x); \
24 #define user_termio_to_kernel_termios(termios, termio) \
26 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
27 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
28 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
29 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
30 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
34 * Translate a "termios" structure into a "termio". Ugh.
36 #define kernel_termios_to_user_termio(termio, termios) \
38 put_user((termios)->c_iflag, &(termio)->c_iflag); \
39 put_user((termios)->c_oflag, &(termio)->c_oflag); \
40 put_user((termios)->c_cflag, &(termio)->c_cflag); \
41 put_user((termios)->c_lflag, &(termio)->c_lflag); \
42 put_user((termios)->c_line, &(termio)->c_line); \
43 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \