Lines Matching refs:ntp
157 struct ptem *ntp; /* ptem entry for this PTEM module */
174 ntp = kmem_alloc(sizeof (*ntp), KM_SLEEP);
185 if ((ntp->dack_ptr = allocb(4, BPRI_MED)) == NULL) {
186 kmem_free(ntp, sizeof (*ntp));
196 freemsg(ntp->dack_ptr);
197 kmem_free(ntp, sizeof (*ntp));
210 ntp->q_ptr = q;
211 q->q_ptr = ntp;
212 WR(q)->q_ptr = ntp;
222 ntp->cflags = termiosp->c_cflag;
230 ntp->wsz.ws_row = 0;
231 ntp->wsz.ws_col = 0;
232 ntp->wsz.ws_xpixel = 0;
233 ntp->wsz.ws_ypixel = 0;
235 ntp->state = 0;
255 struct ptem *ntp; /* ptem entry for this PTEM module */
258 ntp = (struct ptem *)q->q_ptr;
259 freemsg(ntp->dack_ptr);
260 kmem_free(ntp, sizeof (*ntp));
418 struct ptem *ntp = (struct ptem *)q->q_ptr;
419 if (ntp->state & OFLOW_CTL) {
420 ntp->state &= ~OFLOW_CTL;
443 struct ptem *ntp = (struct ptem *)q->q_ptr;
483 if ((ntp->state & IS_PTSTTY) &&
500 ntp->state |= OFLOW_CTL;
508 ntp->state &= ~OFLOW_CTL;
564 if (!(ntp->state & IS_PTSTTY)) {
607 struct ptem *ntp = (struct ptem *)q->q_ptr;
658 ntp->cflags =
659 (ntp->cflags & 0xffff0000 | cflags);
672 ntp->cflags = cflags;
680 dack_ptr = ntp->dack_ptr;
683 ntp->dack_ptr = NULL;
716 termiop->c_cflag = (ushort_t)ntp->cflags;
728 termiosp->c_cflag = ntp->cflags;
790 if ((ntp->state & REMOTEMODE) == 0) {
831 if (ntp->state & IS_PTSTTY) {
834 ntp->state |= IS_PTSTTY;
862 if (!(ntp->state & IS_PTSTTY)) {
867 if (ntp->state & OFLOW_CTL)