Lines Matching refs:ttys
59 static struct ipw_tty *ttys[IPWIRELESS_PCMCIA_MINORS]; variable
85 return ttys[index]; in get_tty()
452 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty()
453 if (!ttys[j]) in add_tty()
455 ttys[j]->index = j; in add_tty()
456 ttys[j]->hardware = hardware; in add_tty()
457 ttys[j]->channel_idx = channel_idx; in add_tty()
458 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty()
459 ttys[j]->network = network; in add_tty()
460 ttys[j]->tty_type = tty_type; in add_tty()
461 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty()
462 tty_port_init(&ttys[j]->port); in add_tty()
464 tty_port_register_device(&ttys[j]->port, ipw_tty_driver, j, NULL); in add_tty()
465 ipwireless_associate_network_tty(network, channel_idx, ttys[j]); in add_tty()
470 ttys[j]); in add_tty()
490 if (ttys[j] != NULL) { in ipwireless_tty_create()
515 return ttys[i]; in ipwireless_tty_create()
527 struct ipw_network *network = ttys[tty->index]->network; in ipwireless_tty_free()
531 struct ipw_tty *ttyj = ttys[j]; in ipwireless_tty_free()
555 ttys[j] = NULL; in ipwireless_tty_free()