Lines Matching full:j

435 static int add_tty(int j,  in add_tty()  argument
440 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty()
441 if (!ttys[j]) in add_tty()
443 ttys[j]->index = j; in add_tty()
444 ttys[j]->hardware = hardware; in add_tty()
445 ttys[j]->channel_idx = channel_idx; in add_tty()
446 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty()
447 ttys[j]->network = network; in add_tty()
448 ttys[j]->tty_type = tty_type; in add_tty()
449 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty()
450 tty_port_init(&ttys[j]->port); in add_tty()
452 tty_port_register_device(&ttys[j]->port, ipw_tty_driver, j, NULL); in add_tty()
453 ipwireless_associate_network_tty(network, channel_idx, ttys[j]); in add_tty()
458 ttys[j]); in add_tty()
460 if (get_tty(j)) in add_tty()
463 tty_type_name(tty_type), j); in add_tty()
471 int i, j; in ipwireless_tty_create() local
476 for (j = i; j < IPWIRELESS_PCMCIA_MINORS; in ipwireless_tty_create()
477 j += IPWIRELESS_PCMCIA_MINOR_RANGE) in ipwireless_tty_create()
478 if (ttys[j] != NULL) { in ipwireless_tty_create()
484 j = i; in ipwireless_tty_create()
486 if (add_tty(j, hardware, network, in ipwireless_tty_create()
491 j += IPWIRELESS_PCMCIA_MINOR_RANGE; in ipwireless_tty_create()
492 if (add_tty(j, hardware, network, in ipwireless_tty_create()
497 j += IPWIRELESS_PCMCIA_MINOR_RANGE; in ipwireless_tty_create()
498 if (add_tty(j, hardware, network, in ipwireless_tty_create()
514 int j; in ipwireless_tty_free() local
517 for (j = tty->index; j < IPWIRELESS_PCMCIA_MINORS; in ipwireless_tty_free()
518 j += IPWIRELESS_PCMCIA_MINOR_RANGE) { in ipwireless_tty_free()
519 struct ipw_tty *ttyj = ttys[j]; in ipwireless_tty_free()
523 if (get_tty(j)) in ipwireless_tty_free()
526 tty_type_name(ttyj->tty_type), j); in ipwireless_tty_free()
540 tty_unregister_device(ipw_tty_driver, j); in ipwireless_tty_free()
542 ttys[j] = NULL; in ipwireless_tty_free()