Lines Matching refs:tiptr

52 	struct _ti_user *tiptr;  in _tx_snddis()  local
56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) in _tx_snddis()
58 sig_mutex_lock(&tiptr->ti_lock); in _tx_snddis()
60 if (tiptr->ti_servtype == T_CLTS) { in _tx_snddis()
62 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
73 if (!(tiptr->ti_state == T_DATAXFER || in _tx_snddis()
74 tiptr->ti_state == T_OUTCON || in _tx_snddis()
75 tiptr->ti_state == T_OUTREL || in _tx_snddis()
76 tiptr->ti_state == T_INREL || in _tx_snddis()
77 (tiptr->ti_state == T_INCON && tiptr->ti_ocnt > 0))) { in _tx_snddis()
79 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
90 if ((tiptr->ti_ddatasize == T_INVALID /* -2 */) || in _tx_snddis()
91 ((tiptr->ti_ddatasize != T_INFINITE /* -1*/) && in _tx_snddis()
93 (uint32_t)tiptr->ti_ddatasize))) { in _tx_snddis()
100 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
109 if ((tiptr->ti_state == T_INCON) && in _tx_snddis()
112 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
120 if (_t_look_locked(fd, tiptr, 0, api_semantics) == T_DISCONNECT) { in _tx_snddis()
122 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
126 if ((tiptr->ti_lookcnt > 0) && (call == 0)) in _tx_snddis()
127 _t_flush_lookevents(tiptr); /* flush but not on listener */ in _tx_snddis()
135 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
156 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
161 sig_mutex_lock(&tiptr->ti_lock); in _tx_snddis()
163 if (_t_is_ok(fd, tiptr, T_DISCON_REQ) < 0) { in _tx_snddis()
165 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()
170 tiptr->ti_flags &= ~(MORE|EXPEDITED); in _tx_snddis()
172 if (tiptr->ti_ocnt <= 1) { in _tx_snddis()
173 if (tiptr->ti_state == T_INCON) { in _tx_snddis()
174 tiptr->ti_ocnt--; in _tx_snddis()
175 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_snddis()
177 _T_TX_NEXTSTATE(T_SNDDIS1, tiptr, in _tx_snddis()
180 if (tiptr->ti_state == T_INCON) { in _tx_snddis()
181 tiptr->ti_ocnt--; in _tx_snddis()
182 tiptr->ti_flags &= ~TX_TQFULL_NOTIFIED; in _tx_snddis()
184 _T_TX_NEXTSTATE(T_SNDDIS2, tiptr, in _tx_snddis()
188 sig_mutex_unlock(&tiptr->ti_lock); in _tx_snddis()