Lines Matching refs:tiptr

54 	struct _ti_user *tiptr;  in _tx_rcvdis()  local
60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) in _tx_rcvdis()
69 sig_mutex_lock(&tiptr->ti_lock); in _tx_rcvdis()
71 if (tiptr->ti_servtype == T_CLTS) { in _tx_rcvdis()
73 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
82 if (!(tiptr->ti_state == T_DATAXFER || in _tx_rcvdis()
83 tiptr->ti_state == T_OUTCON || in _tx_rcvdis()
84 tiptr->ti_state == T_OUTREL || in _tx_rcvdis()
85 tiptr->ti_state == T_INREL || in _tx_rcvdis()
86 (tiptr->ti_state == T_INCON && tiptr->ti_ocnt > 0))) { in _tx_rcvdis()
88 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
97 if ((tiptr->ti_lookcnt > 0) && in _tx_rcvdis()
99 (*((t_scalar_t *)tiptr->ti_lookbufs.tl_lookcbuf) == T_DISCON_IND)) { in _tx_rcvdis()
103 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; in _tx_rcvdis()
104 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; in _tx_rcvdis()
107 databuf.len = tiptr->ti_lookbufs.tl_lookdlen; in _tx_rcvdis()
108 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; in _tx_rcvdis()
115 if ((retval = _t_look_locked(fd, tiptr, 0, in _tx_rcvdis()
118 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
125 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
136 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvdis()
138 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
146 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvdis()
151 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
152 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
196 tiptr->ti_flags &= ~(MORE | EXPEDITED); in _tx_rcvdis()
198 if (tiptr->ti_ocnt <= 0) { in _tx_rcvdis()
199 _T_TX_NEXTSTATE(T_RCVDIS1, tiptr, in _tx_rcvdis()
202 if (tiptr->ti_ocnt == 1) { in _tx_rcvdis()
203 _T_TX_NEXTSTATE(T_RCVDIS2, tiptr, in _tx_rcvdis()
206 _T_TX_NEXTSTATE(T_RCVDIS3, tiptr, in _tx_rcvdis()
209 tiptr->ti_ocnt--; in _tx_rcvdis()
210 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_rcvdis()
227 _t_free_looklist_head(tiptr); in _tx_rcvdis()
232 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
236 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
238 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
245 _t_free_looklist_head(tiptr); in _tx_rcvdis()
250 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
254 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
256 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()