Lines Matching refs:tiptr

52 	struct _ti_user *tiptr;  in _tx_rcvdis()  local
58 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) in _tx_rcvdis()
67 sig_mutex_lock(&tiptr->ti_lock); in _tx_rcvdis()
69 if (tiptr->ti_servtype == T_CLTS) { in _tx_rcvdis()
71 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
80 if (!(tiptr->ti_state == T_DATAXFER || in _tx_rcvdis()
81 tiptr->ti_state == T_OUTCON || in _tx_rcvdis()
82 tiptr->ti_state == T_OUTREL || in _tx_rcvdis()
83 tiptr->ti_state == T_INREL || in _tx_rcvdis()
84 (tiptr->ti_state == T_INCON && tiptr->ti_ocnt > 0))) { in _tx_rcvdis()
86 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
95 if ((tiptr->ti_lookcnt > 0) && in _tx_rcvdis()
97 (*((t_scalar_t *)tiptr->ti_lookbufs.tl_lookcbuf) == T_DISCON_IND)) { in _tx_rcvdis()
101 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; in _tx_rcvdis()
102 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; in _tx_rcvdis()
105 databuf.len = tiptr->ti_lookbufs.tl_lookdlen; in _tx_rcvdis()
106 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; in _tx_rcvdis()
113 if ((retval = _t_look_locked(fd, tiptr, 0, in _tx_rcvdis()
116 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
123 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
134 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { in _tx_rcvdis()
136 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
144 if (_t_acquire_databuf(tiptr, &databuf, &didralloc) < 0) { in _tx_rcvdis()
149 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
150 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
194 tiptr->ti_flags &= ~(MORE | EXPEDITED); in _tx_rcvdis()
196 if (tiptr->ti_ocnt <= 0) { in _tx_rcvdis()
197 _T_TX_NEXTSTATE(T_RCVDIS1, tiptr, in _tx_rcvdis()
200 if (tiptr->ti_ocnt == 1) { in _tx_rcvdis()
201 _T_TX_NEXTSTATE(T_RCVDIS2, tiptr, in _tx_rcvdis()
204 _T_TX_NEXTSTATE(T_RCVDIS3, tiptr, in _tx_rcvdis()
207 tiptr->ti_ocnt--; in _tx_rcvdis()
208 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_rcvdis()
225 _t_free_looklist_head(tiptr); in _tx_rcvdis()
230 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
234 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
236 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()
243 _t_free_looklist_head(tiptr); in _tx_rcvdis()
248 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_rcvdis()
252 tiptr->ti_rcvbuf = databuf.buf; in _tx_rcvdis()
254 sig_mutex_unlock(&tiptr->ti_lock); in _tx_rcvdis()