Lines Matching refs:termio
18 * Translate a "termio" structure into a "termios". Ugh.
21 const struct termio __user *termio)
25 if (get_user(tmp, &termio->c_iflag) < 0)
29 if (get_user(tmp, &termio->c_oflag) < 0)
33 if (get_user(tmp, &termio->c_cflag) < 0)
37 if (get_user(tmp, &termio->c_lflag) < 0)
41 if (get_user(termios->c_line, &termio->c_line) < 0)
44 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0)
54 * Translate a "termios" structure into a "termio". Ugh.
56 static inline int kernel_termios_to_user_termio(struct termio __user *termio,
59 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
60 put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
61 put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
62 put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
63 put_user(termios->c_line, &termio->c_line) < 0 ||
64 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0)