Lines Matching defs:tp
144 struct tty *tp = args->kmta_tp;
150 tp->t_sc = ms;
151 tp->t_dev = args->kmta_dev;
152 ms->ms_priv = tp;
161 ttyldisc_release(tp->t_linesw);
162 tp->t_linesw = ttyldisc_lookup(sunms_disc.l_name);
163 KASSERT(tp->t_linesw == &sunms_disc);
164 tp->t_oflag &= ~OPOST;
165 SET(tp->t_state, TS_KERN_ONLY);
190 struct tty *tp = ms->ms_priv;
196 CLR(tp->t_state, TS_KERN_ONLY);
197 if ((error = cdev_open(tp->t_dev, O_NONBLOCK|flags,
202 tp->t_ospeed = 0;
206 (*tp->t_param)(tp, &t);
207 SET(tp->t_state, TS_KERN_ONLY);
213 sunmsinput(int c, struct tty *tp)
215 struct ms_softc *ms = tp->t_sc;