Lines Matching refs:tiptr
50 struct _ti_user *tiptr; in _tx_snddis() local
54 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) in _tx_snddis()
56 sig_mutex_lock(&tiptr->ti_lock); in _tx_snddis()
58 if (tiptr->ti_servtype == T_CLTS) { in _tx_snddis()
60 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
71 if (!(tiptr->ti_state == T_DATAXFER || in _tx_snddis()
72 tiptr->ti_state == T_OUTCON || in _tx_snddis()
73 tiptr->ti_state == T_OUTREL || in _tx_snddis()
74 tiptr->ti_state == T_INREL || in _tx_snddis()
75 (tiptr->ti_state == T_INCON && tiptr->ti_ocnt > 0))) { in _tx_snddis()
77 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
88 if ((tiptr->ti_ddatasize == T_INVALID /* -2 */) || in _tx_snddis()
89 ((tiptr->ti_ddatasize != T_INFINITE /* -1*/) && in _tx_snddis()
91 (uint32_t)tiptr->ti_ddatasize))) { in _tx_snddis()
98 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
107 if ((tiptr->ti_state == T_INCON) && in _tx_snddis()
110 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
118 if (_t_look_locked(fd, tiptr, 0, api_semantics) == T_DISCONNECT) { in _tx_snddis()
120 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
124 if ((tiptr->ti_lookcnt > 0) && (call == 0)) in _tx_snddis()
125 _t_flush_lookevents(tiptr); /* flush but not on listener */ in _tx_snddis()
133 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
154 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
159 sig_mutex_lock(&tiptr->ti_lock); in _tx_snddis()
161 if (_t_is_ok(fd, tiptr, T_DISCON_REQ) < 0) { in _tx_snddis()
163 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
168 tiptr->ti_flags &= ~(MORE|EXPEDITED); in _tx_snddis()
170 if (tiptr->ti_ocnt <= 1) { in _tx_snddis()
171 if (tiptr->ti_state == T_INCON) { in _tx_snddis()
172 tiptr->ti_ocnt--; in _tx_snddis()
173 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_snddis()
175 _T_TX_NEXTSTATE(T_SNDDIS1, tiptr, in _tx_snddis()
178 if (tiptr->ti_state == T_INCON) { in _tx_snddis()
179 tiptr->ti_ocnt--; in _tx_snddis()
180 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_snddis()
182 _T_TX_NEXTSTATE(T_SNDDIS2, tiptr, in _tx_snddis()
186 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()