Lines Matching refs:bios

393 bsd_to_linux_termios(struct termios *bios, struct linux_termios *lios)
398 if (bios->c_iflag & IGNBRK)
400 if (bios->c_iflag & BRKINT)
402 if (bios->c_iflag & IGNPAR)
404 if (bios->c_iflag & PARMRK)
406 if (bios->c_iflag & INPCK)
408 if (bios->c_iflag & ISTRIP)
410 if (bios->c_iflag & INLCR)
412 if (bios->c_iflag & IGNCR)
414 if (bios->c_iflag & ICRNL)
416 if (bios->c_iflag & IXON)
418 if (bios->c_iflag & IXANY)
420 if (bios->c_iflag & IXOFF)
422 if (bios->c_iflag & IMAXBEL)
426 if (bios->c_oflag & OPOST)
428 if (bios->c_oflag & ONLCR)
430 if (bios->c_oflag & TAB3)
433 lios->c_cflag = bsd_to_linux_speed(bios->c_ispeed, sptab);
434 lios->c_cflag |= (bios->c_cflag & CSIZE) >> 4;
435 if (bios->c_cflag & CSTOPB)
437 if (bios->c_cflag & CREAD)
439 if (bios->c_cflag & PARENB)
441 if (bios->c_cflag & PARODD)
443 if (bios->c_cflag & HUPCL)
445 if (bios->c_cflag & CLOCAL)
447 if (bios->c_cflag & CRTSCTS)
451 if (bios->c_lflag & ISIG)
453 if (bios->c_lflag & ICANON)
455 if (bios->c_lflag & ECHO)
457 if (bios->c_lflag & ECHOE)
459 if (bios->c_lflag & ECHOK)
461 if (bios->c_lflag & ECHONL)
463 if (bios->c_lflag & NOFLSH)
465 if (bios->c_lflag & TOSTOP)
467 if (bios->c_lflag & ECHOCTL)
469 if (bios->c_lflag & ECHOPRT)
471 if (bios->c_lflag & ECHOKE)
473 if (bios->c_lflag & FLUSHO)
475 if (bios->c_lflag & PENDIN)
477 if (bios->c_lflag & IEXTEN)
482 lios->c_cc[LINUX_VINTR] = bios->c_cc[VINTR];
483 lios->c_cc[LINUX_VQUIT] = bios->c_cc[VQUIT];
484 lios->c_cc[LINUX_VERASE] = bios->c_cc[VERASE];
485 lios->c_cc[LINUX_VKILL] = bios->c_cc[VKILL];
486 lios->c_cc[LINUX_VEOF] = bios->c_cc[VEOF];
487 lios->c_cc[LINUX_VEOL] = bios->c_cc[VEOL];
488 lios->c_cc[LINUX_VMIN] = bios->c_cc[VMIN];
489 lios->c_cc[LINUX_VTIME] = bios->c_cc[VTIME];
490 lios->c_cc[LINUX_VEOL2] = bios->c_cc[VEOL2];
491 lios->c_cc[LINUX_VSUSP] = bios->c_cc[VSUSP];
492 lios->c_cc[LINUX_VSTART] = bios->c_cc[VSTART];
493 lios->c_cc[LINUX_VSTOP] = bios->c_cc[VSTOP];
494 lios->c_cc[LINUX_VREPRINT] = bios->c_cc[VREPRINT];
495 lios->c_cc[LINUX_VDISCARD] = bios->c_cc[VDISCARD];
496 lios->c_cc[LINUX_VWERASE] = bios->c_cc[VWERASE];
497 lios->c_cc[LINUX_VLNEXT] = bios->c_cc[VLNEXT];
499 lios->c_cc[LINUX_VSTATUS] = bios->c_cc[VSTATUS];
510 linux_to_bsd_termios(struct linux_termios *lios, struct termios *bios)
514 bios->c_iflag = 0;
516 bios->c_iflag |= IGNBRK;
518 bios->c_iflag |= BRKINT;
520 bios->c_iflag |= IGNPAR;
522 bios->c_iflag |= PARMRK;
524 bios->c_iflag |= INPCK;
526 bios->c_iflag |= ISTRIP;
528 bios->c_iflag |= INLCR;
530 bios->c_iflag |= IGNCR;
532 bios->c_iflag |= ICRNL;
534 bios->c_iflag |= IXON;
536 bios->c_iflag |= IXANY;
538 bios->c_iflag |= IXOFF;
540 bios->c_iflag |= IMAXBEL;
542 bios->c_oflag = 0;
544 bios->c_oflag |= OPOST;
546 bios->c_oflag |= ONLCR;
548 bios->c_oflag |= TAB3;
550 bios->c_cflag = (lios->c_cflag & LINUX_CSIZE) << 4;
552 bios->c_cflag |= CSTOPB;
554 bios->c_cflag |= CREAD;
556 bios->c_cflag |= PARENB;
558 bios->c_cflag |= PARODD;
560 bios->c_cflag |= HUPCL;
562 bios->c_cflag |= CLOCAL;
564 bios->c_cflag |= CRTSCTS;
566 bios->c_lflag = 0;
568 bios->c_lflag |= ISIG;
570 bios->c_lflag |= ICANON;
572 bios->c_lflag |= ECHO;
574 bios->c_lflag |= ECHOE;
576 bios->c_lflag |= ECHOK;
578 bios->c_lflag |= ECHONL;
580 bios->c_lflag |= NOFLSH;
582 bios->c_lflag |= TOSTOP;
584 bios->c_lflag |= ECHOCTL;
586 bios->c_lflag |= ECHOPRT;
588 bios->c_lflag |= ECHOKE;
590 bios->c_lflag |= FLUSHO;
592 bios->c_lflag |= PENDIN;
594 bios->c_lflag |= IEXTEN;
597 bios->c_cc[i] = _POSIX_VDISABLE;
598 bios->c_cc[VINTR] = lios->c_cc[LINUX_VINTR];
599 bios->c_cc[VQUIT] = lios->c_cc[LINUX_VQUIT];
600 bios->c_cc[VERASE] = lios->c_cc[LINUX_VERASE];
601 bios->c_cc[VKILL] = lios->c_cc[LINUX_VKILL];
602 bios->c_cc[VEOF] = lios->c_cc[LINUX_VEOF];
603 bios->c_cc[VEOL] = lios->c_cc[LINUX_VEOL];
604 bios->c_cc[VMIN] = lios->c_cc[LINUX_VMIN];
605 bios->c_cc[VTIME] = lios->c_cc[LINUX_VTIME];
606 bios->c_cc[VEOL2] = lios->c_cc[LINUX_VEOL2];
607 bios->c_cc[VSUSP] = lios->c_cc[LINUX_VSUSP];
608 bios->c_cc[VSTART] = lios->c_cc[LINUX_VSTART];
609 bios->c_cc[VSTOP] = lios->c_cc[LINUX_VSTOP];
610 bios->c_cc[VREPRINT] = lios->c_cc[LINUX_VREPRINT];
611 bios->c_cc[VDISCARD] = lios->c_cc[LINUX_VDISCARD];
612 bios->c_cc[VWERASE] = lios->c_cc[LINUX_VWERASE];
613 bios->c_cc[VLNEXT] = lios->c_cc[LINUX_VLNEXT];
615 bios->c_cc[VSTATUS] = lios->c_cc[LINUX_VSTATUS];
619 bios->c_cc[i] == LINUX_POSIX_VDISABLE)
620 bios->c_cc[i] = _POSIX_VDISABLE;
623 bios->c_ispeed = bios->c_ospeed =
628 bsd_to_linux_termio(struct termios *bios, struct linux_termio *lio)
633 bsd_to_linux_termios(bios, &lios);
643 linux_to_bsd_termio(struct linux_termio *lio, struct termios *bios)
655 linux_to_bsd_termios(&lios, bios);
661 struct termios bios;
673 error = fo_ioctl(fp, TIOCGETA, (caddr_t)&bios, td->td_ucred,
677 bsd_to_linux_termios(&bios, &lios);
685 linux_to_bsd_termios(&lios, &bios);
686 error = (fo_ioctl(fp, TIOCSETA, (caddr_t)&bios, td->td_ucred,
694 linux_to_bsd_termios(&lios, &bios);
695 error = (fo_ioctl(fp, TIOCSETAW, (caddr_t)&bios, td->td_ucred,
703 linux_to_bsd_termios(&lios, &bios);
704 error = (fo_ioctl(fp, TIOCSETAF, (caddr_t)&bios, td->td_ucred,
709 error = fo_ioctl(fp, TIOCGETA, (caddr_t)&bios, td->td_ucred,
713 bsd_to_linux_termio(&bios, &lio);
721 linux_to_bsd_termio(&lio, &bios);
722 error = (fo_ioctl(fp, TIOCSETA, (caddr_t)&bios, td->td_ucred,
730 linux_to_bsd_termio(&lio, &bios);
731 error = (fo_ioctl(fp, TIOCSETAW, (caddr_t)&bios, td->td_ucred,
739 linux_to_bsd_termio(&lio, &bios);
740 error = (fo_ioctl(fp, TIOCSETAF, (caddr_t)&bios, td->td_ucred,
746 error = (fo_ioctl(fp, TIOCDRAIN, (caddr_t)&bios, td->td_ucred,
766 error = fo_ioctl(fp, TIOCGETA, (caddr_t)&bios,
772 c = bios.c_cc[c];