Lines Matching refs:tp

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