Lines Matching refs:tbp
124 register struct tb *tbp; local
129 for (tbp = tb; tbp < &tb[NTB]; tbp++)
130 if (tbp->tbflags == 0)
132 if (tbp >= &tb[NTB])
134 tbp->tbflags = TBTIGER|TBPOINT; /* default */
135 tbp->tbcp = tbp->cbuf;
136 tbp->tbinbuf = 0;
137 bzero((caddr_t)&tbp->tbpos, sizeof (tbp->tbpos));
138 tp->t_sc = (caddr_t)tbp;
164 struct tb *tbp = (struct tb *)tp->t_sc; local
165 const struct tbconf *tc = &tbconf[tbp->tbflags & TBTYPE];
170 ret = uiomove((caddr_t) &tbp->tbpos, tc->tbc_uiosize, uio);
172 tbp->tbpos.polpos.p_key = ' ';
189 struct tb *tbp = (struct tb *)tp->t_sc; local
190 const struct tbconf *tc = &tbconf[tbp->tbflags & TBTYPE];
197 if (c&tc->tbc_sync || tbp->tbinbuf == tc->tbc_recsize) {
198 tbp->tbcp = tbp->cbuf;
199 tbp->tbinbuf = 0;
201 *tbp->tbcp++ = c&0177;
205 if (++tbp->tbinbuf == tc->tbc_recsize)
206 (*tc->tbc_decode)(tc, tbp->cbuf, &tbp->tbpos);
336 register struct tb *tbp = (struct tb *)tp->t_sc; local
341 *(int *)data = tbp->tbflags & TBMODE;
348 tbp->tbflags &= ~TBTYPE;
349 tbp->tbflags |= *(int *)data & TBTYPE;
356 tbp->tbflags &= ~TBMODE;
357 tbp->tbflags |= *(int *)data & TBMODE;
358 tc = &tbconf[tbp->tbflags & TBTYPE];
359 if (tbp->tbflags & TBSTOP) {
366 if (tbp->tbflags & TBPOINT) {
378 *(int *)data = tbp->tbflags & TBTYPE;