Lines Matching refs:j

447 static int add_tty(int j,  in add_tty()  argument
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()
472 if (get_tty(j)) in add_tty()
475 tty_type_name(tty_type), j); in add_tty()
483 int i, j; in ipwireless_tty_create() local
488 for (j = i; j < IPWIRELESS_PCMCIA_MINORS; in ipwireless_tty_create()
489 j += IPWIRELESS_PCMCIA_MINOR_RANGE) in ipwireless_tty_create()
490 if (ttys[j] != NULL) { in ipwireless_tty_create()
496 j = i; in ipwireless_tty_create()
498 if (add_tty(j, hardware, network, in ipwireless_tty_create()
503 j += IPWIRELESS_PCMCIA_MINOR_RANGE; in ipwireless_tty_create()
504 if (add_tty(j, hardware, network, in ipwireless_tty_create()
509 j += IPWIRELESS_PCMCIA_MINOR_RANGE; in ipwireless_tty_create()
510 if (add_tty(j, hardware, network, in ipwireless_tty_create()
526 int j; in ipwireless_tty_free() local
529 for (j = tty->index; j < IPWIRELESS_PCMCIA_MINORS; in ipwireless_tty_free()
530 j += IPWIRELESS_PCMCIA_MINOR_RANGE) { in ipwireless_tty_free()
531 struct ipw_tty *ttyj = ttys[j]; in ipwireless_tty_free()
535 if (get_tty(j)) in ipwireless_tty_free()
538 tty_type_name(ttyj->tty_type), j); in ipwireless_tty_free()
553 tty_unregister_device(ipw_tty_driver, j); in ipwireless_tty_free()
555 ttys[j] = NULL; in ipwireless_tty_free()