Lines Matching defs:index
996 struct uart_port *port = &sprd_port[co->index]->port;
1024 if (co->index >= UART_NR_MAX || co->index < 0)
1025 co->index = 0;
1027 sprd_uart_port = sprd_port[co->index];
1029 pr_info("serial port %d not yet initialized\n", co->index);
1047 .index = -1,
1126 if ((cons && cons->index >= 0 && cons->index == uport->line) ||
1181 int index;
1184 index = of_alias_get_id(pdev->dev.of_node, "serial");
1185 if (index < 0 || index >= UART_NR_MAX) {
1186 dev_err(&pdev->dev, "got a wrong serial alias id %d\n", index);
1196 up->line = index;
1238 sprd_port[index] = sport;
1249 sprd_port[index] = NULL;