Lines Matching refs:sprd_port
121 static struct sprd_uart_port *sprd_port[UART_NR_MAX]; variable
542 struct uart_port *port = &sprd_port[co->index]->port; in sprd_console_write()
573 port = &sprd_port[co->index]->port; in sprd_console_setup()
661 else if (ret >= ARRAY_SIZE(sprd_port) || sprd_port[ret] != NULL) { in sprd_probe_dt_alias()
675 sprd_port[sup->port.line] = NULL; in sprd_remove()
694 for (index = 0; index < ARRAY_SIZE(sprd_port); index++) in sprd_probe()
695 if (sprd_port[index] == NULL) in sprd_probe()
698 if (index == ARRAY_SIZE(sprd_port)) in sprd_probe()
703 sprd_port[index] = devm_kzalloc(&pdev->dev, in sprd_probe()
704 sizeof(*sprd_port[index]), GFP_KERNEL); in sprd_probe()
705 if (!sprd_port[index]) in sprd_probe()
708 up = &sprd_port[index]->port; in sprd_probe()
750 sprd_port[index] = NULL; in sprd_probe()