Lines Matching defs:csp

348 	struct copyresp *csp;
418 csp = (struct copyresp *)mp->b_rptr;
420 switch (csp->cp_cmd) {
434 if (csp->cp_rval != 0) { /* failure */
453 if (csp->cp_rval != 0) { /* failure */
1135 from_compat(compat_state_t *csp, struct termios *termiosp)
1143 if (csp->t_ospeed > CBAUD) {
1144 termiosp->c_cflag |= ((csp->t_ospeed - CBAUD - 1) & CBAUD) |
1147 termiosp->c_cflag |= csp->t_ospeed & CBAUD;
1150 if (csp->t_ospeed != csp->t_ispeed) {
1151 if (csp->t_ispeed > (CIBAUD >> IBSHIFT)) {
1153 (((csp->t_ispeed - (CIBAUD >> IBSHIFT) - 1) <<
1156 termiosp->c_cflag |= (csp->t_ispeed << IBSHIFT) &
1160 if (csp->t_ispeed == 0)
1163 if (csp->t_ispeed == B110 || csp->t_xflags & STOPB)
1166 FROM_COMPAT_CHAR(termiosp->c_cc[VERASE], csp->t_erase);
1167 FROM_COMPAT_CHAR(termiosp->c_cc[VKILL], csp->t_kill);
1168 FROM_COMPAT_CHAR(termiosp->c_cc[VINTR], csp->t_intrc);
1169 FROM_COMPAT_CHAR(termiosp->c_cc[VQUIT], csp->t_quitc);
1170 FROM_COMPAT_CHAR(termiosp->c_cc[VSTART], csp->t_startc);
1171 FROM_COMPAT_CHAR(termiosp->c_cc[VSTOP], csp->t_stopc);
1173 FROM_COMPAT_CHAR(termiosp->c_cc[VSUSP], csp->t_suspc);
1175 FROM_COMPAT_CHAR(termiosp->c_cc[VDSUSP], csp->t_dsuspc);
1176 FROM_COMPAT_CHAR(termiosp->c_cc[VREPRINT], csp->t_rprntc);
1177 FROM_COMPAT_CHAR(termiosp->c_cc[VDISCARD], csp->t_flushc);
1178 FROM_COMPAT_CHAR(termiosp->c_cc[VWERASE], csp->t_werasc);
1179 FROM_COMPAT_CHAR(termiosp->c_cc[VLNEXT], csp->t_lnextc);
1181 if (csp->t_flags & O_TANDEM)
1183 if (csp->t_flags & O_LCASE) {
1188 if (csp->t_flags & O_ECHO)
1190 if (csp->t_flags & O_CRMOD) {
1193 switch (csp->t_flags & O_CRDELAY) {
1204 if ((csp->t_flags & O_NLDELAY) == O_NL1)
1207 if ((csp->t_flags & O_NLDELAY) == O_NL2)
1213 if (csp->t_flags & O_RAW) {
1221 if (csp->t_flags & O_LITOUT)
1224 if (csp->t_flags & O_PASS8)
1228 switch (csp->t_flags & (O_EVENP|O_ODDP)) {
1251 if (!(csp->t_xflags & NOPOST))
1255 if (!(csp->t_xflags & NOISIG))
1257 if (!(csp->t_flags & O_CBREAK))
1259 if (csp->t_flags & O_CTLECH)
1262 switch (csp->t_flags & O_TBDELAY) {
1276 if (csp->t_flags & O_VTDELAY)
1278 if (csp->t_flags & O_BSDELAY)
1280 if (csp->t_flags & O_PRTERA)
1282 if (csp->t_flags & O_CRTERA)
1284 if (csp->t_flags & O_TOSTOP)
1286 if (csp->t_flags & O_FLUSHO)
1288 if (csp->t_flags & O_NOHANG)
1290 if (csp->t_flags & O_CRTKIL)
1292 if (csp->t_flags & O_PENDIN)
1294 if (!(csp->t_flags & O_DECCTQ))
1296 if (csp->t_flags & O_NOFLSH)
1299 FROM_COMPAT_CHAR(termiosp->c_cc[VEOF], csp->t_eofc);
1300 FROM_COMPAT_CHAR(termiosp->c_cc[VEOL], csp->t_brkc);
1310 to_compat(struct termios *termiosp, compat_state_t *csp)
1312 csp->t_xflags &= (NOISIG|NOPOST);
1313 csp->t_ospeed = termiosp->c_cflag & CBAUD;
1314 csp->t_ispeed = (termiosp->c_cflag & CIBAUD) >> IBSHIFT;
1317 csp->t_ospeed += CBAUD + 1;
1319 csp->t_ispeed += (CIBAUD >> IBSHIFT) + 1;
1321 if (csp->t_ispeed == 0)
1322 csp->t_ispeed = csp->t_ospeed;
1323 if ((termiosp->c_cflag & CSTOPB) && csp->t_ispeed != B110)
1324 csp->t_xflags |= STOPB;
1325 TO_COMPAT_CHAR(csp->t_erase, termiosp->c_cc[VERASE]);
1326 TO_COMPAT_CHAR(csp->t_kill, termiosp->c_cc[VKILL]);
1327 TO_COMPAT_CHAR(csp->t_intrc, termiosp->c_cc[VINTR]);
1328 TO_COMPAT_CHAR(csp->t_quitc, termiosp->c_cc[VQUIT]);
1329 TO_COMPAT_CHAR(csp->t_startc, termiosp->c_cc[VSTART]);
1330 TO_COMPAT_CHAR(csp->t_stopc, termiosp->c_cc[VSTOP]);
1331 TO_COMPAT_CHAR(csp->t_suspc, termiosp->c_cc[VSUSP]);
1332 TO_COMPAT_CHAR(csp->t_dsuspc, termiosp->c_cc[VDSUSP]);
1333 TO_COMPAT_CHAR(csp->t_rprntc, termiosp->c_cc[VREPRINT]);
1334 TO_COMPAT_CHAR(csp->t_flushc, termiosp->c_cc[VDISCARD]);
1335 TO_COMPAT_CHAR(csp->t_werasc, termiosp->c_cc[VWERASE]);
1336 TO_COMPAT_CHAR(csp->t_lnextc, termiosp->c_cc[VLNEXT]);
1337 csp->t_flags &= (O_CTLECH|O_LITOUT|O_PASS8|O_ODDP|O_EVENP);
1339 csp->t_flags |= O_TANDEM;
1346 csp->t_flags |= O_RAW;
1349 csp->t_startc = (uchar_t)0377;
1350 csp->t_stopc = (uchar_t)0377;
1354 csp->t_flags |= O_LITOUT;
1356 csp->t_flags &= ~O_LITOUT;
1359 csp->t_flags |= O_PASS8;
1361 csp->t_flags &= ~(O_ODDP|O_EVENP|O_PASS8);
1363 csp->t_flags |= O_ODDP;
1365 csp->t_flags |= O_EVENP;
1367 csp->t_flags |= O_ODDP|O_EVENP;
1370 csp->t_xflags |= NOPOST;
1372 csp->t_xflags &= ~NOPOST;
1375 csp->t_xflags |= NOISIG;
1377 csp->t_xflags &= ~NOISIG;
1379 csp->t_flags |= O_CBREAK;
1381 csp->t_flags |= O_CTLECH;
1383 csp->t_flags &= ~O_CTLECH;
1386 csp->t_flags |= O_LCASE;
1388 csp->t_flags |= O_ECHO;
1390 csp->t_flags |= O_CRMOD;
1394 csp->t_flags |= O_CR1;
1398 csp->t_flags |= O_CR2;
1404 csp->t_flags |= O_NL1; /* tty37 */
1407 csp->t_flags |= O_NL2;
1411 csp->t_flags |= O_TAB1;
1415 csp->t_flags |= O_TAB2;
1419 csp->t_flags |= O_XTABS;
1423 csp->t_flags |= O_VTDELAY;
1425 csp->t_flags |= O_BSDELAY;
1427 csp->t_flags |= O_PRTERA;
1429 csp->t_flags |= (O_CRTERA|O_CRTBS);
1431 csp->t_flags |= O_TOSTOP;
1433 csp->t_flags |= O_FLUSHO;
1435 csp->t_flags |= O_NOHANG;
1437 csp->t_flags |= O_CRTKIL;
1439 csp->t_flags |= O_PENDIN;
1441 csp->t_flags |= O_DECCTQ;
1443 csp->t_flags |= O_NOFLSH;
1445 TO_COMPAT_CHAR(csp->t_eofc, termiosp->c_cc[VEOF]);
1446 TO_COMPAT_CHAR(csp->t_brkc, termiosp->c_cc[VEOL]);