Lines Matching defs:tp

53 static int ttcompatgetflags(struct tty *tp);
54 static void ttcompatsetflags(struct tty *tp, struct termios *t);
55 static void ttcompatsetlflags(struct tty *tp, struct termios *t);
100 ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)
110 else if (speed != ttcompatspeedtab(tp->t_termios.c_ispeed,
114 term->c_ispeed = tp->t_termios.c_ispeed;
117 else if (speed != ttcompatspeedtab(tp->t_termios.c_ospeed,
121 term->c_ospeed = tp->t_termios.c_ospeed;
124 tp->t_compatflags = (tp->t_compatflags&0xffff0000) |
126 ttcompatsetflags(tp, term);
164 tp->t_compatflags = (tp->t_compatflags&0xffff) |
167 tp->t_compatflags = (ttcompatgetflags(tp)&0xffff0000) |
168 (tp->t_compatflags&0xffff);
170 tp->t_compatflags |= *(int *)data<<16;
172 tp->t_compatflags &= ~(*(int *)data<<16);
174 ttcompatsetlflags(tp, term);
183 tty_ioctl_compat(struct tty *tp, u_long com, caddr_t data, int fflag,
197 term = tp->t_termios;
198 if ((error = ttsetcompat(tp, &com, data, &term)) != 0)
200 return tty_ioctl(tp, com, &term, fflag, td);
204 cc_t *cc = tp->t_termios.c_cc;
206 sg->sg_ospeed = ttcompatspeedtab(tp->t_termios.c_ospeed,
208 if (tp->t_termios.c_ispeed == 0)
211 sg->sg_ispeed = ttcompatspeedtab(tp->t_termios.c_ispeed,
215 sg->sg_flags = tp->t_compatflags = ttcompatgetflags(tp);
220 cc_t *cc = tp->t_termios.c_cc;
232 cc_t *cc = tp->t_termios.c_cc;
243 tp->t_compatflags =
244 (ttcompatgetflags(tp) & 0xffff0000UL)
245 | (tp->t_compatflags & 0xffff);
246 *(int *)data = tp->t_compatflags>>16;
258 return (tty_ioctl(tp, TIOCSETD,
265 return (tty_ioctl(tp, TIOCCONS, data, fflag, td));
274 ttcompatgetflags(struct tty *tp)
276 tcflag_t iflag = tp->t_termios.c_iflag;
277 tcflag_t lflag = tp->t_termios.c_lflag;
278 tcflag_t oflag = tp->t_termios.c_oflag;
279 tcflag_t cflag = tp->t_termios.c_cflag;
334 ttcompatsetflags(struct tty *tp, struct termios *t)
336 int flags = tp->t_compatflags;
411 ttcompatsetlflags(struct tty *tp, struct termios *t)
413 int flags = tp->t_compatflags;