Lines Matching defs:pti
271 struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
282 if (pti->pt_flags & PF_REMOTE) {
375 struct pt_ioctl *pti = &pt_ioctl[minor(tp->t_dev)];
382 if (pti->pt_flags & PF_STOPPED) {
383 pti->pt_flags &= ~PF_STOPPED;
384 pti->pt_send = TIOCPKT_START;
395 struct pt_ioctl *pti = &pt_ioctl[minor(tp->t_dev)];
401 selwakeup(&pti->pt_selr);
405 selwakeup(&pti->pt_selw);
415 struct pt_ioctl *pti;
441 pti = &pt_ioctl[minor(dev)];
442 pti->pt_flags = 0;
443 pti->pt_send = 0;
444 pti->pt_ucntl = 0;
485 struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
500 if (pti->pt_flags&PF_PKT && pti->pt_send) {
501 error = ureadc((int)pti->pt_send, uio);
504 if (pti->pt_send & TIOCPKT_IOCTL) {
510 pti->pt_send = 0;
513 if (pti->pt_flags&PF_UCNTL && pti->pt_ucntl) {
514 error = ureadc((int)pti->pt_ucntl, uio);
517 pti->pt_ucntl = 0;
533 if (pti->pt_flags & (PF_PKT|PF_UCNTL))
551 struct pt_ioctl *pti = &pt_ioctl[minor(tp->t_dev)];
560 pti->pt_flags |= PF_STOPPED;
562 pti->pt_flags &= ~PF_STOPPED;
563 pti->pt_send |= flush;
579 struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
604 ((pti->pt_flags&PF_PKT && pti->pt_send) ||
605 (pti->pt_flags&PF_UCNTL && pti->pt_ucntl))) {
609 selrecord(p, &pti->pt_selr, wql);
615 if (pti->pt_flags & PF_REMOTE) {
631 selrecord(p, &pti->pt_selw, wql);
648 struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
657 if (pti->pt_flags & PF_REMOTE) {
759 struct pt_ioctl *pti = &pt_ioctl[minor(dev)];
777 if (pti->pt_flags & PF_PKT) {
778 pti->pt_send |= TIOCPKT_IOCTL;
784 (pti->pt_flags & PF_PKT)) {
785 pti->pt_send |= TIOCPKT_IOCTL;
805 if (pti->pt_flags & PF_UCNTL) {
809 pti->pt_flags |= PF_PKT;
811 pti->pt_flags &= ~PF_PKT;
816 if (pti->pt_flags & PF_PKT) {
820 pti->pt_flags |= PF_UCNTL;
822 pti->pt_flags &= ~PF_UCNTL;
827 pti->pt_flags |= PF_REMOTE;
829 pti->pt_flags &= ~PF_REMOTE;
865 _devfs_setattr(pti->pt_devhandle, 0620, kauth_getuid(), GID_TTY);
892 if (pti->pt_flags & PF_UCNTL && (cmd & ~0xff) == UIOCCMD(0)) {
895 pti->pt_ucntl = (u_char)cmd;
918 if ((tp->t_lflag&EXTPROC) && (pti->pt_flags & PF_PKT)) {
934 pti->pt_send |= TIOCPKT_IOCTL;
942 if (pti->pt_flags & PF_NOSTOP) {
944 pti->pt_send &= ~TIOCPKT_NOSTOP;
945 pti->pt_send |= TIOCPKT_DOSTOP;
946 pti->pt_flags &= ~PF_NOSTOP;
951 pti->pt_send &= ~TIOCPKT_DOSTOP;
952 pti->pt_send |= TIOCPKT_NOSTOP;
953 pti->pt_flags |= PF_NOSTOP;