Lines Matching refs:termios
29 #define user_termio_to_kernel_termios(termios, termio) \ argument
34 (termios)->c_iflag = (0xffff0000 & ((termios)->c_iflag)) | tmp; \
36 (termios)->c_oflag = (0xffff0000 & ((termios)->c_oflag)) | tmp; \
38 (termios)->c_cflag = (0xffff0000 & ((termios)->c_cflag)) | tmp; \
40 (termios)->c_lflag = (0xffff0000 & ((termios)->c_lflag)) | tmp; \
41 err |= copy_from_user((termios)->c_cc, (termio)->c_cc, NCC); \
50 #define kernel_termios_to_user_termio(termio, termios) \ argument
53 err = put_user((termios)->c_iflag, &(termio)->c_iflag); \
54 err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \
55 err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \
56 err |= put_user((termios)->c_lflag, &(termio)->c_lflag); \
57 err |= put_user((termios)->c_line, &(termio)->c_line); \
58 err |= copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
59 if (!((termios)->c_lflag & ICANON)) { \
60 err |= put_user((termios)->c_cc[VMIN], &(termio)->c_cc[_VMIN]); \
61 err |= put_user((termios)->c_cc[VTIME], &(termio)->c_cc[_VTIME]); \