Lines Matching refs:ttyj
519 struct ipw_tty *ttyj = ttys[j]; in ipwireless_tty_free() local
521 if (ttyj) { in ipwireless_tty_free()
522 mutex_lock(&ttyj->ipw_tty_mutex); in ipwireless_tty_free()
526 tty_type_name(ttyj->tty_type), j); in ipwireless_tty_free()
527 if (ttyj->port.tty != NULL) { in ipwireless_tty_free()
528 mutex_unlock(&ttyj->ipw_tty_mutex); in ipwireless_tty_free()
529 tty_vhangup(ttyj->port.tty); in ipwireless_tty_free()
534 mutex_lock(&ttyj->ipw_tty_mutex); in ipwireless_tty_free()
536 while (ttyj->port.count) in ipwireless_tty_free()
537 do_ipw_close(ttyj); in ipwireless_tty_free()
539 ttyj->channel_idx); in ipwireless_tty_free()
541 tty_port_destroy(&ttyj->port); in ipwireless_tty_free()
543 mutex_unlock(&ttyj->ipw_tty_mutex); in ipwireless_tty_free()
544 kfree(ttyj); in ipwireless_tty_free()