Lines Matching defs:tp
117 struct tty *tp = &biconsdev_tty[0];
124 clalloc(&tp->t_rawq, 1024, 1);
125 clalloc(&tp->t_canq, 1024, 1);
127 clalloc(&tp->t_outq, 1024, 0);
129 tp->t_linesw = ttyldisc_default();
132 tp->t_dev = makedev(maj, 0);
133 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
134 tp->t_param = (int (*)(struct tty *, struct termios *))nullop;
135 tp->t_winsize.ws_row = bicons_height;
136 tp->t_winsize.ws_col = bicons_width;
137 tp->t_winsize.ws_xpixel = bicons_xpixel;
138 tp->t_winsize.ws_ypixel = bicons_ypixel;
139 tp->t_oproc = biconsdev_output;
144 biconsdev_output(struct tty *tp)
150 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) {
154 tp->t_state |= TS_BUSY;
156 n = q_to_b(&tp->t_outq, buf, sizeof(buf));
160 tp->t_state &= ~TS_BUSY;
162 if (ttypull(tp)) {
163 tp->t_state |= TS_TIMEOUT;
164 callout_schedule(&tp->t_rstrt_ch, 1);
173 struct tty *tp = &biconsdev_tty[0];
176 if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
179 if ((tp->t_state & TS_ISOPEN) == 0) {
183 ttychars(tp);
184 tp->t_iflag = TTYDEF_IFLAG;
185 tp->t_oflag = TTYDEF_OFLAG;
186 tp->t_lflag = TTYDEF_LFLAG;
187 tp->t_cflag = TTYDEF_CFLAG;
188 tp->t_state = TS_ISOPEN | TS_CARR_ON;
189 (void)(*tp->t_param)(tp, &tp->t_termios);
190 ttsetwater(tp);
193 status = (*tp->t_linesw->l_open)(dev, tp);
201 struct tty *tp = &biconsdev_tty[0];
203 (*tp->t_linesw->l_close)(tp, flag);
204 ttyclose(tp);
213 struct tty *tp = &biconsdev_tty[0];
215 return ((*tp->t_linesw->l_read)(tp, uio, flag));
222 struct tty *tp = &biconsdev_tty[0];
224 return ((*tp->t_linesw->l_write)(tp, uio, flag));
231 struct tty *tp = &biconsdev_tty[0];
233 return ((*tp->t_linesw->l_poll)(tp, events, l));
240 struct tty *tp = &biconsdev_tty[0];
242 return (tp);
248 struct tty *tp = &biconsdev_tty[0];
251 if ((error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l)) !=
254 return (ttioctl(tp, cmd, data, flag, l));