Lines Matching refs:termio
22 * Translate a "termio" structure into a "termios". Ugh.
24 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
26 get_user(__tmp,&(termio)->x); \
30 #define user_termio_to_kernel_termios(termios, termio) \
32 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
33 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
34 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
35 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
36 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
40 * Translate a "termios" structure into a "termio". Ugh.
42 #define kernel_termios_to_user_termio(termio, termios) \
44 put_user((termios)->c_iflag, &(termio)->c_iflag); \
45 put_user((termios)->c_oflag, &(termio)->c_oflag); \
46 put_user((termios)->c_cflag, &(termio)->c_cflag); \
47 put_user((termios)->c_lflag, &(termio)->c_lflag); \
48 put_user((termios)->c_line, &(termio)->c_line); \
49 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \