Lines Matching defs:tc

63 ttycommon_close(tty_common_t *tc)
65 mutex_enter(&tc->t_excl);
66 tc->t_flags &= ~TS_XCLUDE;
67 tc->t_readq = NULL;
68 tc->t_writeq = NULL;
69 if (tc->t_iocpending != NULL) {
72 mp = tc->t_iocpending;
73 tc->t_iocpending = NULL;
74 mutex_exit(&tc->t_excl);
83 mutex_exit(&tc->t_excl);
92 ttycommon_qfull(tty_common_t *tc, queue_t *q)
96 if (tc->t_iflag & IMAXBEL) {
121 ttycommon_ioctl(tty_common_t *tc, queue_t *q, mblk_t *mp, int *errorp)
161 mutex_enter(&tc->t_excl);
162 tc->t_iflag = cb->c_iflag;
163 tc->t_cflag = cb->c_cflag;
164 tc->t_stopc = cb->c_cc[VSTOP];
165 tc->t_startc = cb->c_cc[VSTART];
166 mutex_exit(&tc->t_excl);
193 mutex_enter(&tc->t_excl);
194 tc->t_iflag = (tc->t_iflag & 0xffff0000 | cb->c_iflag);
195 tc->t_cflag = (tc->t_cflag & 0xffff0000 | cb->c_cflag);
196 mutex_exit(&tc->t_excl);
212 mutex_enter(&tc->t_excl);
213 if (bcmp(&tc->t_size, ws, sizeof (struct winsize)) != 0) {
214 tc->t_size = *ws;
215 mutex_exit(&tc->t_excl);
218 mutex_exit(&tc->t_excl);
226 mutex_enter(&tc->t_excl);
227 tc->t_flags |= TS_XCLUDE;
228 mutex_exit(&tc->t_excl);
235 mutex_enter(&tc->t_excl);
236 tc->t_flags &= ~TS_XCLUDE;
237 mutex_exit(&tc->t_excl);
249 mutex_enter(&tc->t_excl);
251 tc->t_flags |= TS_SOFTCAR;
253 tc->t_flags &= ~TS_SOFTCAR;
254 mutex_exit(&tc->t_excl);
274 if (!canput(tc->t_readq->q_next))
278 putnext(tc->t_readq, bp);
325 cb->c_cflag = tc->t_cflag;
349 cb->c_cflag = tc->t_cflag;
368 if (tc->t_flags & TS_SOFTCAR)
391 *(struct winsize *)datap->b_wptr = tc->t_size;
408 mutex_enter(&tc->t_excl);
409 tmp = tc->t_iocpending;
410 tc->t_iocpending = mp; /* hold this ioctl */
411 mutex_exit(&tc->t_excl);