Lines Matching refs:tmip
210 struct telmod_info *tmip; in telmodopen() local
225 tmip = kmem_zalloc(sizeof (*tmip), KM_SLEEP); in telmodopen()
230 q->q_ptr = tmip; in telmodopen()
231 WR(q)->q_ptr = tmip; in telmodopen()
234 tmip->flags |= TEL_STOPPED; in telmodopen()
246 while ((tmip->unbind_mp = allocb(sizeof (union T_primitives), in telmodopen()
257 tmip->unbind_mp->b_wptr = tmip->unbind_mp->b_rptr + in telmodopen()
259 tmip->unbind_mp->b_datap->db_type = M_PROTO; in telmodopen()
260 tp = (union T_primitives *)tmip->unbind_mp->b_rptr; in telmodopen()
289 if (tmip->unbind_mp != NULL) { in telmodopen()
290 freemsg(tmip->unbind_mp); in telmodopen()
292 kmem_free(tmip, sizeof (struct telmod_info)); in telmodopen()
307 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmodclose() local
323 if (tmip->wbufcid) { in telmodclose()
324 qunbufcall(q, tmip->wbufcid); in telmodclose()
325 tmip->wbufcid = 0; in telmodclose()
327 if (tmip->rbufcid) { in telmodclose()
328 qunbufcall(q, tmip->rbufcid); in telmodclose()
329 tmip->rbufcid = 0; in telmodclose()
331 if (tmip->wtimoutid) { in telmodclose()
332 (void) quntimeout(q, tmip->wtimoutid); in telmodclose()
333 tmip->wtimoutid = 0; in telmodclose()
335 if (tmip->rtimoutid) { in telmodclose()
336 (void) quntimeout(q, tmip->rtimoutid); in telmodclose()
337 tmip->rtimoutid = 0; in telmodclose()
339 if (tmip->unbind_mp != NULL) { in telmodclose()
340 freemsg(tmip->unbind_mp); in telmodclose()
359 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmodrput() local
363 ((q->q_first) || ((tmip->flags & TEL_STOPPED) && in telmodrput()
364 !(tmip->flags & TEL_GETBLK)) || !canputnext(q))) { in telmodrput()
378 if (tmip->flags & TEL_GETBLK) { in telmodrput()
387 tmip->flags &= ~TEL_GETBLK; in telmodrput()
389 tmip->flags |= TEL_STOPPED; in telmodrput()
420 if (tmip->flags & TEL_GETBLK) in telmodrput()
421 tmip->flags &= ~TEL_GETBLK; in telmodrput()
431 if (tmip->flags & TEL_GETBLK) in telmodrput()
432 tmip->flags &= ~TEL_GETBLK; in telmodrput()
452 if (tip->type == T_DISCON_IND && tmip->unbind_mp != in telmodrput()
455 qreply(q, tmip->unbind_mp); in telmodrput()
456 tmip->unbind_mp = NULL; in telmodrput()
481 ASSERT(tmip->unbind_mp == NULL); in telmodrput()
514 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmodrsrv() local
518 if (((tmip->flags & TEL_STOPPED) && in telmodrsrv()
519 !(tmip->flags & TEL_GETBLK)) || !canputnext(q)) { in telmodrsrv()
527 if (tmip->flags & TEL_GETBLK) { in telmodrsrv()
537 tmip->flags &= ~TEL_GETBLK; in telmodrsrv()
539 tmip->flags |= TEL_STOPPED; in telmodrsrv()
561 tmip->flags &= ~TEL_GETBLK; in telmodrsrv()
580 tmip->unbind_mp != NULL) { in telmodrsrv()
582 qreply(q, tmip->unbind_mp); in telmodrsrv()
583 tmip->unbind_mp = NULL; in telmodrsrv()
608 ASSERT(tmip->unbind_mp == NULL); in telmodrsrv()
655 struct telmod_info *tmip; in telmodwput() local
661 tmip = (struct telmod_info *)q->q_ptr; in telmodwput()
665 if (!canputnext(q) || (tmip->flags & TEL_STOPPED) || in telmodwput()
699 if (!(tmip->flags & TEL_STOPPED)) { in telmodwput()
703 tmip->flags |= TEL_GETBLK; in telmodwput()
722 if (!(tmip->flags & TEL_STOPPED)) { in telmodwput()
726 tmip->flags &= ~TEL_STOPPED; in telmodwput()
750 tmip->flags |= *(mp->b_cont->b_rptr) & in telmodwput()
775 tmip->flags |= TEL_IOCPASSTHRU; in telmodwput()
777 tmip->flags &= ~TEL_IOCPASSTHRU; in telmodwput()
783 if (tmip->flags & TEL_IOCPASSTHRU) { in telmodwput()
863 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmodwsrv() local
874 if (tmip->flags & TEL_STOPPED) { in telmodwsrv()
946 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in rcv_parse() local
966 if (!(tmip->flags & TEL_BINARY_IN) && in rcv_parse()
967 (tmip->flags & TEL_CRRCV)) { in rcv_parse()
970 tmip->flags &= ~TEL_CRRCV; in rcv_parse()
998 tmip->flags &= ~TEL_CRRCV; in rcv_parse()
1065 tmip->flags |= TEL_STOPPED; in rcv_parse()
1070 if (!(tmip->flags & TEL_BINARY_IN)) { in rcv_parse()
1076 tmip->flags |= TEL_CRRCV; in rcv_parse()
1131 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in snd_parse() local
1154 if (!(tmip->flags & TEL_BINARY_OUT) && in snd_parse()
1155 (tmip->flags & TEL_CRSND)) { in snd_parse()
1158 tmip->flags &= ~TEL_CRSND; in snd_parse()
1162 if (!(tmip->flags & TEL_BINARY_OUT)) { in snd_parse()
1166 tmip->flags |= TEL_CRSND; in snd_parse()
1172 tmip->flags |= TEL_CRSND; in snd_parse()
1200 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmod_timer() local
1202 ASSERT(tmip); in telmod_timer()
1205 ASSERT(tmip->rtimoutid); in telmod_timer()
1206 tmip->rtimoutid = 0; in telmod_timer()
1208 ASSERT(tmip->wtimoutid); in telmod_timer()
1209 tmip->wtimoutid = 0; in telmod_timer()
1219 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in telmod_buffer() local
1221 ASSERT(tmip); in telmod_buffer()
1224 ASSERT(tmip->rbufcid); in telmod_buffer()
1225 tmip->rbufcid = 0; in telmod_buffer()
1227 ASSERT(tmip->wbufcid); in telmod_buffer()
1228 tmip->wbufcid = 0; in telmod_buffer()
1239 struct telmod_info *tmip = (struct telmod_info *)q->q_ptr; in recover() local
1249 if (tmip->rtimoutid || tmip->rbufcid) { in recover()
1253 if (tmip->wtimoutid || tmip->wbufcid) { in recover()
1260 tmip->rtimoutid = tid; in recover()
1262 tmip->wtimoutid = tid; in recover()
1265 tmip->rbufcid = bid; in recover()
1267 tmip->wbufcid = bid; in recover()