Lines Matching refs:termio
2 /* termios.h: generic termios/termio user copying/translation
13 * Translate a "termio" structure into a "termios". Ugh.
16 struct termio __user *termio)
20 if (get_user(tmp, &termio->c_iflag) < 0)
24 if (get_user(tmp, &termio->c_oflag) < 0)
28 if (get_user(tmp, &termio->c_cflag) < 0)
32 if (get_user(tmp, &termio->c_lflag) < 0)
36 if (get_user(termios->c_line, &termio->c_line) < 0)
39 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0)
49 * Translate a "termios" structure into a "termio". Ugh.
51 static inline int kernel_termios_to_user_termio(struct termio __user *termio,
54 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
55 put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
56 put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
57 put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
58 put_user(termios->c_line, &termio->c_line) < 0 ||
59 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0)