Lines Matching refs:constty

381 	struct tty *constty = TTY_NULL;  in ttyclose()  local
385 constty = copy_constty(); in ttyclose()
387 if (constty == tp) { in ttyclose()
388 ttyfree_locked(constty); in ttyclose()
389 constty = NULL; in ttyclose()
409 if (constty != NULL) { in ttyclose()
410 if (constty == tp) { in ttyclose()
411 ttyfree_locked(constty); in ttyclose()
413 ttyfree(constty); in ttyclose()
415 constty = NULL; in ttyclose()
1172 struct tty *constty = NULL; in ttioctl_locked() local
1173 constty = copy_constty(); in ttioctl_locked()
1175 if (constty && constty != tp && in ttioctl_locked()
1176 ISSET(constty->t_state, TS_CONNECTED)) { in ttioctl_locked()
1179 ttyfree(constty); in ttioctl_locked()
1180 constty = NULL; in ttioctl_locked()
1184 if (constty) { in ttioctl_locked()
1185 if (constty == tp) { in ttioctl_locked()
1186 ttyfree_locked(constty); in ttioctl_locked()
1188 ttyfree(constty); in ttioctl_locked()
1190 constty = NULL; in ttioctl_locked()
1194 if (tp != constty) { in ttioctl_locked()
1204 if (constty != NULL) { in ttioctl_locked()
1206 ttyfree(constty); in ttioctl_locked()
1208 constty = copy_constty(); in ttioctl_locked()
1210 } else if (tp == constty) { in ttioctl_locked()
1221 ttyfree_locked(constty); in ttioctl_locked()
1222 constty = NULL; in ttioctl_locked()
1224 if (constty) { in ttioctl_locked()
1225 (*cdevsw[major(constty->t_dev)].d_ioctl) in ttioctl_locked()
1226 (constty->t_dev, KMIOCDISABLCONS, NULL, 0, p); in ttioctl_locked()
1231 if (constty != NULL) { in ttioctl_locked()
1232 if (constty == tp) { in ttioctl_locked()
1233 ttyfree_locked(constty); in ttioctl_locked()
1235 ttyfree(constty); in ttioctl_locked()