Lines Matching refs:rmip
205 struct rlmod_info *rmip; in rlmodopen() local
221 rmip = kmem_zalloc(sizeof (*rmip), KM_SLEEP); in rlmodopen()
226 q->q_ptr = rmip; in rlmodopen()
227 WR(q)->q_ptr = rmip; in rlmodopen()
228 rmip->rl_expdat = 0; in rlmodopen()
229 rmip->stopmode = TIOCPKT_DOSTOP; in rlmodopen()
230 rmip->startc = CTRL('q'); in rlmodopen()
231 rmip->stopc = CTRL('s'); in rlmodopen()
232 rmip->oobdata[0] = (char)TIOCPKT_WINDOW; in rlmodopen()
233 rmip->wndw_sz_hd_mp = NULL; in rlmodopen()
238 rmip->flags |= RL_DISABLED; in rlmodopen()
251 while ((rmip->unbind_mp = allocb(sizeof (union T_primitives), in rlmodopen()
262 rmip->unbind_mp->b_wptr = rmip->unbind_mp->b_rptr + in rlmodopen()
264 rmip->unbind_mp->b_datap->db_type = M_PROTO; in rlmodopen()
265 tp = (union T_primitives *)rmip->unbind_mp->b_rptr; in rlmodopen()
294 if (rmip->unbind_mp != NULL) { in rlmodopen()
295 freemsg(rmip->unbind_mp); in rlmodopen()
297 kmem_free(rmip, sizeof (struct rlmod_info)); in rlmodopen()
313 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodclose() local
329 if (rmip->wbufcid) { in rlmodclose()
330 qunbufcall(q, rmip->wbufcid); in rlmodclose()
331 rmip->wbufcid = 0; in rlmodclose()
333 if (rmip->rbufcid) { in rlmodclose()
334 qunbufcall(q, rmip->rbufcid); in rlmodclose()
335 rmip->rbufcid = 0; in rlmodclose()
337 if (rmip->wtimoutid) { in rlmodclose()
338 (void) quntimeout(q, rmip->wtimoutid); in rlmodclose()
339 rmip->wtimoutid = 0; in rlmodclose()
341 if (rmip->rtimoutid) { in rlmodclose()
342 (void) quntimeout(q, rmip->rtimoutid); in rlmodclose()
343 rmip->rtimoutid = 0; in rlmodclose()
346 if (rmip->unbind_mp != NULL) { in rlmodclose()
347 freemsg(rmip->unbind_mp); in rlmodclose()
350 if (rmip->wndw_sz_hd_mp != NULL) { in rlmodclose()
351 freemsg(rmip->wndw_sz_hd_mp); in rlmodclose()
368 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodrput() local
380 ((rmip->flags & RL_DISABLED) && in rlmodrput()
410 if (tip->type == T_DISCON_IND && rmip->unbind_mp != in rlmodrput()
413 qreply(q, rmip->unbind_mp); in rlmodrput()
414 rmip->unbind_mp = NULL; in rlmodrput()
425 ASSERT(rmip->unbind_mp == NULL); in rlmodrput()
488 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodrsrv() local
497 if (rmip->flags & RL_DISABLED) { in rlmodrsrv()
538 rmip->unbind_mp != NULL) { in rlmodrsrv()
540 qreply(q, rmip->unbind_mp); in rlmodrsrv()
541 rmip->unbind_mp = NULL; in rlmodrsrv()
552 ASSERT(rmip->unbind_mp == NULL); in rlmodrsrv()
599 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodwput() local
606 if (rmip->rl_expdat) { in rlmodwput()
611 cntl = rmip->oobdata[0] | TIOCPKT_FLUSHWRITE; in rlmodwput()
622 rmip->rl_expdat = 0; in rlmodwput()
628 if ((q->q_first || rmip->rl_expdat) && mp->b_datap->db_type < QPCTL) { in rlmodwput()
673 cntl = rmip->oobdata[0] | TIOCPKT_FLUSHWRITE; in rlmodwput()
681 rmip->rl_expdat = 1; in rlmodwput()
747 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodwsrv() local
751 if (rmip->rl_expdat) { in rlmodwsrv()
756 cntl = rmip->oobdata[0] | TIOCPKT_FLUSHWRITE; in rlmodwsrv()
765 rmip->rl_expdat = 0; in rlmodwsrv()
776 if (!canputnext(q) || rmip->rl_expdat) { in rlmodwsrv()
847 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodrmsg() local
854 ASSERT(rmip->wndw_sz_hd_mp == NULL); in rlmodrmsg()
862 if (rmip->wndw_sz_hd_mp != NULL) { in rlmodrmsg()
863 linkb(rmip->wndw_sz_hd_mp, mp); in rlmodrmsg()
864 mp = rmip->wndw_sz_hd_mp; in rlmodrmsg()
865 rmip->wndw_sz_hd_mp = NULL; in rlmodrmsg()
924 rmip->wndw_sz_hd_mp = mp; in rlmodrmsg()
998 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlwinctl() local
1003 rmip->oobdata[0] &= ~TIOCPKT_WINDOW; /* we know he heard */ in rlwinctl()
1084 tty_flow(queue_t *q, struct rlmod_info *rmip, mblk_t *mp) in tty_flow() argument
1111 rmip->stopc = tp->c_cc[VSTOP]; in tty_flow()
1112 rmip->startc = tp->c_cc[VSTART]; in tty_flow()
1144 stop = (ixon && (rmip->stopc == CTRL('s')) && in tty_flow()
1145 (rmip->startc == CTRL('q'))); in tty_flow()
1146 if (rmip->stopmode == TIOCPKT_NOSTOP) { in tty_flow()
1148 cntl = rmip->oobdata[0] | TIOCPKT_DOSTOP; in tty_flow()
1158 rmip->stopmode = TIOCPKT_DOSTOP; in tty_flow()
1162 cntl = rmip->oobdata[0] | TIOCPKT_NOSTOP; in tty_flow()
1172 rmip->stopmode = TIOCPKT_NOSTOP; in tty_flow()
1186 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmodwioctl() local
1202 if (!(rmip->flags & RL_DISABLED)) { in rlmodwioctl()
1211 if (rmip->flags & RL_DISABLED) in rlmodwioctl()
1212 rmip->flags &= ~RL_DISABLED; in rlmodwioctl()
1231 return (tty_flow(q, rmip, mp)); in rlmodwioctl()
1247 rmip->flags |= RL_IOCPASSTHRU; in rlmodwioctl()
1249 rmip->flags &= ~RL_IOCPASSTHRU; in rlmodwioctl()
1255 if (rmip->flags & RL_IOCPASSTHRU) { in rlmodwioctl()
1273 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmod_timer() local
1275 ASSERT(rmip); in rlmod_timer()
1277 ASSERT(rmip->rtimoutid); in rlmod_timer()
1278 rmip->rtimoutid = 0; in rlmod_timer()
1280 ASSERT(rmip->wtimoutid); in rlmod_timer()
1281 rmip->wtimoutid = 0; in rlmod_timer()
1291 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in rlmod_buffer() local
1293 ASSERT(rmip); in rlmod_buffer()
1295 ASSERT(rmip->rbufcid); in rlmod_buffer()
1296 rmip->rbufcid = 0; in rlmod_buffer()
1298 ASSERT(rmip->wbufcid); in rlmod_buffer()
1299 rmip->wbufcid = 0; in rlmod_buffer()
1321 struct rlmod_info *rmip = (struct rlmod_info *)q->q_ptr; in recover1() local
1329 if (rmip->rtimoutid || rmip->rbufcid) in recover1()
1332 if (rmip->wtimoutid || rmip->wbufcid) in recover1()
1338 rmip->rtimoutid = tid; in recover1()
1340 rmip->wtimoutid = tid; in recover1()
1343 rmip->rbufcid = bid; in recover1()
1345 rmip->wbufcid = bid; in recover1()