Lines Matching refs:termios
55 * Translate a "termio" structure into a "termios". Ugh.
57 #define SET_LOW_TERMIOS_BITS(termios, termio, x) { \
60 *(unsigned short *) &(termios)->x = __tmp; \
63 #define user_termio_to_kernel_termios(termios, termio) \
65 SET_LOW_TERMIOS_BITS(termios, termio, c_iflag); \
66 SET_LOW_TERMIOS_BITS(termios, termio, c_oflag); \
67 SET_LOW_TERMIOS_BITS(termios, termio, c_cflag); \
68 SET_LOW_TERMIOS_BITS(termios, termio, c_lflag); \
69 copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
73 * Translate a "termios" structure into a "termio". Ugh.
75 #define kernel_termios_to_user_termio(termio, termios) \
77 put_user((termios)->c_iflag, &(termio)->c_iflag); \
78 put_user((termios)->c_oflag, &(termio)->c_oflag); \
79 put_user((termios)->c_cflag, &(termio)->c_cflag); \
80 put_user((termios)->c_lflag, &(termio)->c_lflag); \
81 put_user((termios)->c_line, &(termio)->c_line); \
82 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
85 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios))
86 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))