max3100s          136 drivers/tty/serial/max3100.c static struct max3100_port *max3100s[MAX_MAX3100]; /* the chips */
max3100s          756 drivers/tty/serial/max3100.c 		if (!max3100s[i])
max3100s          764 drivers/tty/serial/max3100.c 	max3100s[i] = kzalloc(sizeof(struct max3100_port), GFP_KERNEL);
max3100s          765 drivers/tty/serial/max3100.c 	if (!max3100s[i]) {
max3100s          771 drivers/tty/serial/max3100.c 	max3100s[i]->spi = spi;
max3100s          772 drivers/tty/serial/max3100.c 	max3100s[i]->irq = spi->irq;
max3100s          773 drivers/tty/serial/max3100.c 	spin_lock_init(&max3100s[i]->conf_lock);
max3100s          774 drivers/tty/serial/max3100.c 	spi_set_drvdata(spi, max3100s[i]);
max3100s          776 drivers/tty/serial/max3100.c 	max3100s[i]->crystal = pdata->crystal;
max3100s          777 drivers/tty/serial/max3100.c 	max3100s[i]->loopback = pdata->loopback;
max3100s          778 drivers/tty/serial/max3100.c 	max3100s[i]->poll_time = msecs_to_jiffies(pdata->poll_time);
max3100s          779 drivers/tty/serial/max3100.c 	if (pdata->poll_time > 0 && max3100s[i]->poll_time == 0)
max3100s          780 drivers/tty/serial/max3100.c 		max3100s[i]->poll_time = 1;
max3100s          781 drivers/tty/serial/max3100.c 	max3100s[i]->max3100_hw_suspend = pdata->max3100_hw_suspend;
max3100s          782 drivers/tty/serial/max3100.c 	max3100s[i]->minor = i;
max3100s          783 drivers/tty/serial/max3100.c 	timer_setup(&max3100s[i]->timer, max3100_timeout, 0);
max3100s          786 drivers/tty/serial/max3100.c 	max3100s[i]->port.irq = max3100s[i]->irq;
max3100s          787 drivers/tty/serial/max3100.c 	max3100s[i]->port.uartclk = max3100s[i]->crystal ? 3686400 : 1843200;
max3100s          788 drivers/tty/serial/max3100.c 	max3100s[i]->port.fifosize = 16;
max3100s          789 drivers/tty/serial/max3100.c 	max3100s[i]->port.ops = &max3100_ops;
max3100s          790 drivers/tty/serial/max3100.c 	max3100s[i]->port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF;
max3100s          791 drivers/tty/serial/max3100.c 	max3100s[i]->port.line = i;
max3100s          792 drivers/tty/serial/max3100.c 	max3100s[i]->port.type = PORT_MAX3100;
max3100s          793 drivers/tty/serial/max3100.c 	max3100s[i]->port.dev = &spi->dev;
max3100s          794 drivers/tty/serial/max3100.c 	retval = uart_add_one_port(&max3100_uart_driver, &max3100s[i]->port);
max3100s          801 drivers/tty/serial/max3100.c 	if (max3100s[i]->max3100_hw_suspend)
max3100s          802 drivers/tty/serial/max3100.c 		max3100s[i]->max3100_hw_suspend(1);
max3100s          805 drivers/tty/serial/max3100.c 		max3100_sr(max3100s[i], tx, &rx);
max3100s          820 drivers/tty/serial/max3100.c 		if (max3100s[i] == s) {
max3100s          822 drivers/tty/serial/max3100.c 			uart_remove_one_port(&max3100_uart_driver, &max3100s[i]->port);
max3100s          823 drivers/tty/serial/max3100.c 			kfree(max3100s[i]);
max3100s          824 drivers/tty/serial/max3100.c 			max3100s[i] = NULL;
max3100s          832 drivers/tty/serial/max3100.c 		if (max3100s[i]) {