Lines Matching refs:max3100s
119 static struct max3100_port *max3100s[MAX_MAX3100]; /* the chips */ variable
703 if (!max3100s[i]) in max3100_probe()
710 max3100s[i] = kzalloc(sizeof(struct max3100_port), GFP_KERNEL); in max3100_probe()
711 if (!max3100s[i]) { in max3100_probe()
715 max3100s[i]->spi = spi; in max3100_probe()
716 spin_lock_init(&max3100s[i]->conf_lock); in max3100_probe()
717 spi_set_drvdata(spi, max3100s[i]); in max3100_probe()
718 max3100s[i]->minor = i; in max3100_probe()
719 timer_setup(&max3100s[i]->timer, max3100_timeout, 0); in max3100_probe()
722 max3100s[i]->port.irq = spi->irq; in max3100_probe()
723 max3100s[i]->port.fifosize = 16; in max3100_probe()
724 max3100s[i]->port.ops = &max3100_ops; in max3100_probe()
725 max3100s[i]->port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF; in max3100_probe()
726 max3100s[i]->port.line = i; in max3100_probe()
727 max3100s[i]->port.type = PORT_MAX3100; in max3100_probe()
728 max3100s[i]->port.dev = &spi->dev; in max3100_probe()
731 device_property_read_u32(dev, "clock-frequency", &max3100s[i]->port.uartclk); in max3100_probe()
733 retval = uart_add_one_port(&max3100_uart_driver, &max3100s[i]->port); in max3100_probe()
738 max3100_sr(max3100s[i], MAX3100_WC | MAX3100_SHDN, &rx); in max3100_probe()
752 if (max3100s[i] == s) { in max3100_remove()
754 uart_remove_one_port(&max3100_uart_driver, &max3100s[i]->port); in max3100_remove()
755 kfree(max3100s[i]); in max3100_remove()
756 max3100s[i] = NULL; in max3100_remove()
764 if (max3100s[i]) { in max3100_remove()