Lines Matching refs:uart
884 * Check whether an invalid uart number has been specified, and
963 struct uart_txx9_port *uart;
968 uart = &serial_txx9_ports[i];
969 if (uart_match_port(&uart->port, port)) {
970 uart_remove_one_port(&serial_txx9_reg, &uart->port);
977 uart = &serial_txx9_ports[i];
978 if (!(uart->port.iobase || uart->port.mapbase))
983 uart->port.iobase = port->iobase;
984 uart->port.membase = port->membase;
985 uart->port.irq = port->irq;
986 uart->port.uartclk = port->uartclk;
987 uart->port.iotype = port->iotype;
988 uart->port.flags = port->flags | UPF_BOOT_AUTOCONF;
989 uart->port.mapbase = port->mapbase;
991 uart->port.dev = port->dev;
992 ret = uart_add_one_port(&serial_txx9_reg, &uart->port);
994 ret = uart->port.line;
1009 struct uart_txx9_port *uart = &serial_txx9_ports[line];
1012 uart_remove_one_port(&serial_txx9_reg, &uart->port);
1013 uart->port.flags = 0;
1014 uart->port.type = PORT_UNKNOWN;
1015 uart->port.iobase = 0;
1016 uart->port.mapbase = 0;
1017 uart->port.membase = NULL;
1018 uart->port.dev = NULL;