Lines Matching refs:termiosp

1135 from_compat(compat_state_t *csp, struct termios *termiosp)  in from_compat()  argument
1137 termiosp->c_iflag = 0; in from_compat()
1138 termiosp->c_oflag &= (ONLRET|ONOCR); in from_compat()
1140 termiosp->c_cflag = (termiosp->c_cflag & in from_compat()
1144 termiosp->c_cflag |= ((csp->t_ospeed - CBAUD - 1) & CBAUD) | in from_compat()
1147 termiosp->c_cflag |= csp->t_ospeed & CBAUD; in from_compat()
1152 termiosp->c_cflag |= CIBAUDEXT | in from_compat()
1156 termiosp->c_cflag |= (csp->t_ispeed << IBSHIFT) & in from_compat()
1161 termiosp->c_cflag &= ~CBAUD & ~CBAUDEXT; in from_compat()
1164 termiosp->c_cflag |= CSTOPB; in from_compat()
1165 termiosp->c_lflag = ECHOK; in from_compat()
1166 FROM_COMPAT_CHAR(termiosp->c_cc[VERASE], csp->t_erase); in from_compat()
1167 FROM_COMPAT_CHAR(termiosp->c_cc[VKILL], csp->t_kill); in from_compat()
1168 FROM_COMPAT_CHAR(termiosp->c_cc[VINTR], csp->t_intrc); in from_compat()
1169 FROM_COMPAT_CHAR(termiosp->c_cc[VQUIT], csp->t_quitc); in from_compat()
1170 FROM_COMPAT_CHAR(termiosp->c_cc[VSTART], csp->t_startc); in from_compat()
1171 FROM_COMPAT_CHAR(termiosp->c_cc[VSTOP], csp->t_stopc); in from_compat()
1172 termiosp->c_cc[VEOL2] = 0; in from_compat()
1173 FROM_COMPAT_CHAR(termiosp->c_cc[VSUSP], csp->t_suspc); in from_compat()
1175 FROM_COMPAT_CHAR(termiosp->c_cc[VDSUSP], csp->t_dsuspc); in from_compat()
1176 FROM_COMPAT_CHAR(termiosp->c_cc[VREPRINT], csp->t_rprntc); in from_compat()
1177 FROM_COMPAT_CHAR(termiosp->c_cc[VDISCARD], csp->t_flushc); in from_compat()
1178 FROM_COMPAT_CHAR(termiosp->c_cc[VWERASE], csp->t_werasc); in from_compat()
1179 FROM_COMPAT_CHAR(termiosp->c_cc[VLNEXT], csp->t_lnextc); in from_compat()
1180 termiosp->c_cc[VSTATUS] = 0; in from_compat()
1182 termiosp->c_iflag |= IXOFF; in from_compat()
1184 termiosp->c_iflag |= IUCLC; in from_compat()
1185 termiosp->c_oflag |= OLCUC; in from_compat()
1186 termiosp->c_lflag |= XCASE; in from_compat()
1189 termiosp->c_lflag |= ECHO; in from_compat()
1191 termiosp->c_iflag |= ICRNL; in from_compat()
1192 termiosp->c_oflag |= ONLCR; in from_compat()
1196 termiosp->c_oflag |= CR2; in from_compat()
1200 termiosp->c_oflag |= CR3; in from_compat()
1205 termiosp->c_oflag |= ONLRET|CR1; /* tty37 */ in from_compat()
1208 termiosp->c_oflag |= NL1; in from_compat()
1214 termiosp->c_cflag |= CS8; in from_compat()
1215 termiosp->c_iflag &= ~(ICRNL|IUCLC); in from_compat()
1216 termiosp->c_lflag &= ~(XCASE|IEXTEN); in from_compat()
1218 termiosp->c_iflag |= IMAXBEL|BRKINT|IGNPAR; in from_compat()
1219 if (termiosp->c_cc[VSTOP] != 0 && termiosp->c_cc[VSTART] != 0) in from_compat()
1220 termiosp->c_iflag |= IXON; in from_compat()
1222 termiosp->c_cflag |= CS8; in from_compat()
1225 termiosp->c_cflag |= CS8; in from_compat()
1231 termiosp->c_iflag |= ISTRIP; in from_compat()
1232 termiosp->c_cflag |= CS8; in from_compat()
1236 termiosp->c_iflag |= INPCK|ISTRIP; in from_compat()
1237 termiosp->c_cflag |= CS7|PARENB; in from_compat()
1241 termiosp->c_iflag |= INPCK|ISTRIP; in from_compat()
1242 termiosp->c_cflag |= CS7|PARENB|PARODD; in from_compat()
1246 termiosp->c_iflag |= ISTRIP; in from_compat()
1247 termiosp->c_cflag |= CS7|PARENB; in from_compat()
1252 termiosp->c_oflag |= OPOST; in from_compat()
1254 termiosp->c_lflag |= IEXTEN; in from_compat()
1256 termiosp->c_lflag |= ISIG; in from_compat()
1258 termiosp->c_lflag |= ICANON; in from_compat()
1260 termiosp->c_lflag |= ECHOCTL; in from_compat()
1265 termiosp->c_oflag |= TAB1; in from_compat()
1269 termiosp->c_oflag |= TAB2; in from_compat()
1273 termiosp->c_oflag |= TAB3; in from_compat()
1277 termiosp->c_oflag |= FFDLY; in from_compat()
1279 termiosp->c_oflag |= BSDLY; in from_compat()
1281 termiosp->c_lflag |= ECHOPRT; in from_compat()
1283 termiosp->c_lflag |= ECHOE; in from_compat()
1285 termiosp->c_lflag |= TOSTOP; in from_compat()
1287 termiosp->c_lflag |= FLUSHO; in from_compat()
1289 termiosp->c_cflag |= CLOCAL; in from_compat()
1291 termiosp->c_lflag |= ECHOKE; in from_compat()
1293 termiosp->c_lflag |= PENDIN; in from_compat()
1295 termiosp->c_iflag |= IXANY; in from_compat()
1297 termiosp->c_lflag |= NOFLSH; in from_compat()
1298 if (termiosp->c_lflag & ICANON) { in from_compat()
1299 FROM_COMPAT_CHAR(termiosp->c_cc[VEOF], csp->t_eofc); in from_compat()
1300 FROM_COMPAT_CHAR(termiosp->c_cc[VEOL], csp->t_brkc); in from_compat()
1302 termiosp->c_cc[VMIN] = 1; in from_compat()
1303 termiosp->c_cc[VTIME] = 0; in from_compat()
1310 to_compat(struct termios *termiosp, compat_state_t *csp) in to_compat() argument
1313 csp->t_ospeed = termiosp->c_cflag & CBAUD; in to_compat()
1314 csp->t_ispeed = (termiosp->c_cflag & CIBAUD) >> IBSHIFT; in to_compat()
1316 if (termiosp->c_cflag & CBAUDEXT) in to_compat()
1318 if (termiosp->c_cflag & CIBAUDEXT) in to_compat()
1323 if ((termiosp->c_cflag & CSTOPB) && csp->t_ispeed != B110) in to_compat()
1325 TO_COMPAT_CHAR(csp->t_erase, termiosp->c_cc[VERASE]); in to_compat()
1326 TO_COMPAT_CHAR(csp->t_kill, termiosp->c_cc[VKILL]); in to_compat()
1327 TO_COMPAT_CHAR(csp->t_intrc, termiosp->c_cc[VINTR]); in to_compat()
1328 TO_COMPAT_CHAR(csp->t_quitc, termiosp->c_cc[VQUIT]); in to_compat()
1329 TO_COMPAT_CHAR(csp->t_startc, termiosp->c_cc[VSTART]); in to_compat()
1330 TO_COMPAT_CHAR(csp->t_stopc, termiosp->c_cc[VSTOP]); in to_compat()
1331 TO_COMPAT_CHAR(csp->t_suspc, termiosp->c_cc[VSUSP]); in to_compat()
1332 TO_COMPAT_CHAR(csp->t_dsuspc, termiosp->c_cc[VDSUSP]); in to_compat()
1333 TO_COMPAT_CHAR(csp->t_rprntc, termiosp->c_cc[VREPRINT]); in to_compat()
1334 TO_COMPAT_CHAR(csp->t_flushc, termiosp->c_cc[VDISCARD]); in to_compat()
1335 TO_COMPAT_CHAR(csp->t_werasc, termiosp->c_cc[VWERASE]); in to_compat()
1336 TO_COMPAT_CHAR(csp->t_lnextc, termiosp->c_cc[VLNEXT]); in to_compat()
1338 if (termiosp->c_iflag & IXOFF) in to_compat()
1340 if (!(termiosp->c_iflag & in to_compat()
1343 !(termiosp->c_oflag & OPOST) && in to_compat()
1344 (termiosp->c_cflag & (CSIZE|PARENB)) == CS8 && in to_compat()
1345 !(termiosp->c_lflag & (ISIG|ICANON|XCASE|IEXTEN))) in to_compat()
1348 if (!(termiosp->c_iflag & IXON)) { in to_compat()
1352 if ((termiosp->c_cflag & (CSIZE|PARENB)) == CS8 && in to_compat()
1353 !(termiosp->c_oflag & OPOST)) in to_compat()
1357 if ((termiosp->c_cflag & (CSIZE|PARENB)) == CS8) { in to_compat()
1358 if (!(termiosp->c_iflag & ISTRIP)) in to_compat()
1362 if (termiosp->c_cflag & PARODD) in to_compat()
1364 else if (termiosp->c_iflag & INPCK) in to_compat()
1369 if (!(termiosp->c_oflag & OPOST)) in to_compat()
1374 if (!(termiosp->c_lflag & ISIG)) in to_compat()
1378 if (!(termiosp->c_lflag & ICANON)) in to_compat()
1380 if (termiosp->c_lflag & ECHOCTL) in to_compat()
1385 if (termiosp->c_oflag & OLCUC) in to_compat()
1387 if (termiosp->c_lflag&ECHO) in to_compat()
1389 if (termiosp->c_oflag & ONLCR) { in to_compat()
1391 switch (termiosp->c_oflag & CRDLY) { in to_compat()
1402 if ((termiosp->c_oflag & CR1) && in to_compat()
1403 (termiosp->c_oflag & ONLRET)) in to_compat()
1406 if ((termiosp->c_oflag & ONLRET) && (termiosp->c_oflag & NL1)) in to_compat()
1408 switch (termiosp->c_oflag & TABDLY) { in to_compat()
1422 if (termiosp->c_oflag & FFDLY) in to_compat()
1424 if (termiosp->c_oflag & BSDLY) in to_compat()
1426 if (termiosp->c_lflag & ECHOPRT) in to_compat()
1428 if (termiosp->c_lflag & ECHOE) in to_compat()
1430 if (termiosp->c_lflag & TOSTOP) in to_compat()
1432 if (termiosp->c_lflag & FLUSHO) in to_compat()
1434 if (termiosp->c_cflag & CLOCAL) in to_compat()
1436 if (termiosp->c_lflag & ECHOKE) in to_compat()
1438 if (termiosp->c_lflag & PENDIN) in to_compat()
1440 if (!(termiosp->c_iflag & IXANY)) in to_compat()
1442 if (termiosp->c_lflag & NOFLSH) in to_compat()
1444 if (termiosp->c_lflag & ICANON) { in to_compat()
1445 TO_COMPAT_CHAR(csp->t_eofc, termiosp->c_cc[VEOF]); in to_compat()
1446 TO_COMPAT_CHAR(csp->t_brkc, termiosp->c_cc[VEOL]); in to_compat()
1448 termiosp->c_cc[VMIN] = 1; in to_compat()
1449 termiosp->c_cc[VTIME] = 0; in to_compat()