Lines Matching refs:termios
13 #include <uapi/asm/termios.h>
27 * Translate a "termio" structure into a "termios". Ugh.
29 static inline int user_termio_to_kernel_termios(struct ktermios *termios,
39 termios->c_iflag = (termios->c_iflag & 0xffff0000) | iflag;
41 termios->c_oflag = (termios->c_oflag & 0xffff0000) | oflag;
43 termios->c_cflag = (termios->c_cflag & 0xffff0000) | cflag;
45 termios->c_lflag = (termios->c_lflag & 0xffff0000) | lflag;
46 err |=__get_user(termios->c_line, &termio->c_line);
50 if (__copy_from_user(termios->c_cc, termio->c_cc, NCC))
57 * Translate a "termios" structure into a "termio". Ugh.
60 struct ktermios *termios)
67 err = __put_user(termios->c_iflag, &termio->c_iflag);
68 err |= __put_user(termios->c_oflag, &termio->c_oflag);
69 err |= __put_user(termios->c_cflag, &termio->c_cflag);
70 err |= __put_user(termios->c_lflag, &termio->c_lflag);
71 err |= __put_user(termios->c_line, &termio->c_line);
75 if (__copy_to_user(termio->c_cc, termios->c_cc, NCC))
94 struct termios __user *u)
96 return copy_from_user(k, u, sizeof(struct termios)) ? -EFAULT : 0;
99 static inline int kernel_termios_to_user_termios_1(struct termios __user *u,
102 return copy_to_user(u, k, sizeof(struct termios)) ? -EFAULT : 0;