Lines Matching defs:ttys
59 static struct ipw_tty *ttys[IPWIRELESS_PCMCIA_MINORS];
85 return ttys[index];
440 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL);
441 if (!ttys[j])
443 ttys[j]->index = j;
444 ttys[j]->hardware = hardware;
445 ttys[j]->channel_idx = channel_idx;
446 ttys[j]->secondary_channel_idx = secondary_channel_idx;
447 ttys[j]->network = network;
448 ttys[j]->tty_type = tty_type;
449 mutex_init(&ttys[j]->ipw_tty_mutex);
450 tty_port_init(&ttys[j]->port);
452 tty_port_register_device(&ttys[j]->port, ipw_tty_driver, j, NULL);
453 ipwireless_associate_network_tty(network, channel_idx, ttys[j]);
458 ttys[j]);
478 if (ttys[j] != NULL) {
503 return ttys[i];
515 struct ipw_network *network = ttys[tty->index]->network;
519 struct ipw_tty *ttyj = ttys[j];
542 ttys[j] = NULL;