Lines Matching full:k
67 #define user_termios_to_kernel_termios(k, u) \ argument
70 err = get_user((k)->c_iflag, &(u)->c_iflag); \
71 err |= get_user((k)->c_oflag, &(u)->c_oflag); \
72 err |= get_user((k)->c_cflag, &(u)->c_cflag); \
73 err |= get_user((k)->c_lflag, &(u)->c_lflag); \
74 err |= get_user((k)->c_line, &(u)->c_line); \
75 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \
76 if ((k)->c_lflag & ICANON) { \
77 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
78 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \
80 err |= get_user((k)->c_cc[VMIN], &(u)->c_cc[_VMIN]); \
81 err |= get_user((k)->c_cc[VTIME], &(u)->c_cc[_VTIME]); \
83 err |= get_user((k)->c_ispeed, &(u)->c_ispeed); \
84 err |= get_user((k)->c_ospeed, &(u)->c_ospeed); \
88 #define kernel_termios_to_user_termios(u, k) \ argument
91 err = put_user((k)->c_iflag, &(u)->c_iflag); \
92 err |= put_user((k)->c_oflag, &(u)->c_oflag); \
93 err |= put_user((k)->c_cflag, &(u)->c_cflag); \
94 err |= put_user((k)->c_lflag, &(u)->c_lflag); \
95 err |= put_user((k)->c_line, &(u)->c_line); \
96 err |= copy_to_user((u)->c_cc, (k)->c_cc, NCCS); \
97 if (!((k)->c_lflag & ICANON)) { \
98 err |= put_user((k)->c_cc[VMIN], &(u)->c_cc[_VMIN]); \
99 err |= put_user((k)->c_cc[VTIME], &(u)->c_cc[_VTIME]); \
101 err |= put_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
102 err |= put_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \
104 err |= put_user((k)->c_ispeed, &(u)->c_ispeed); \
105 err |= put_user((k)->c_ospeed, &(u)->c_ospeed); \
109 #define user_termios_to_kernel_termios_1(k, u) \ argument
112 err = get_user((k)->c_iflag, &(u)->c_iflag); \
113 err |= get_user((k)->c_oflag, &(u)->c_oflag); \
114 err |= get_user((k)->c_cflag, &(u)->c_cflag); \
115 err |= get_user((k)->c_lflag, &(u)->c_lflag); \
116 err |= get_user((k)->c_line, &(u)->c_line); \
117 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \
118 if ((k)->c_lflag & ICANON) { \
119 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
120 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \
122 err |= get_user((k)->c_cc[VMIN], &(u)->c_cc[_VMIN]); \
123 err |= get_user((k)->c_cc[VTIME], &(u)->c_cc[_VTIME]); \
128 #define kernel_termios_to_user_termios_1(u, k) \ argument
131 err = put_user((k)->c_iflag, &(u)->c_iflag); \
132 err |= put_user((k)->c_oflag, &(u)->c_oflag); \
133 err |= put_user((k)->c_cflag, &(u)->c_cflag); \
134 err |= put_user((k)->c_lflag, &(u)->c_lflag); \
135 err |= put_user((k)->c_line, &(u)->c_line); \
136 err |= copy_to_user((u)->c_cc, (k)->c_cc, NCCS); \
137 if (!((k)->c_lflag & ICANON)) { \
138 err |= put_user((k)->c_cc[VMIN], &(u)->c_cc[_VMIN]); \
139 err |= put_user((k)->c_cc[VTIME], &(u)->c_cc[_VTIME]); \
141 err |= put_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
142 err |= put_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \