Lines Matching refs:ttyj
565 struct ipw_tty *ttyj = ttys[j];
567 if (ttyj) {
568 mutex_lock(&ttyj->ipw_tty_mutex);
569 if (get_tty(j + ipw_tty_driver->minor_start) == ttyj)
570 report_deregistering(ttyj);
571 ttyj->closing = 1;
572 if (ttyj->linux_tty != NULL) {
573 mutex_unlock(&ttyj->ipw_tty_mutex);
574 tty_hangup(ttyj->linux_tty);
577 mutex_lock(&ttyj->ipw_tty_mutex);
579 while (ttyj->open_count)
580 do_ipw_close(ttyj);
582 ttyj->channel_idx);
585 mutex_unlock(&ttyj->ipw_tty_mutex);
586 kfree(ttyj);