Lines Matching refs:port
66 struct uart_port *port = &device->port; in parse_options() local
70 if (uart_parse_earlycon(options, &port->iotype, &addr, &options)) in parse_options()
73 switch (port->iotype) { in parse_options()
76 port->regshift = 2; /* fall-through */ in parse_options()
78 port->mapbase = addr; in parse_options()
81 port->iobase = addr; in parse_options()
94 if (port->iotype == UPIO_MEM || port->iotype == UPIO_MEM32 || in parse_options()
95 port->iotype == UPIO_MEM32BE) in parse_options()
97 (port->iotype == UPIO_MEM) ? "" : in parse_options()
98 (port->iotype == UPIO_MEM32) ? "32" : "32be", in parse_options()
99 (unsigned long long)port->mapbase, in parse_options()
103 port->iobase, in parse_options()
112 struct uart_port *port = &early_console_dev.port; in register_earlycon() local
118 spin_lock_init(&port->lock); in register_earlycon()
119 port->uartclk = BASE_BAUD * 16; in register_earlycon()
120 if (port->mapbase) in register_earlycon()
121 port->membase = earlycon_map(port->mapbase, 64); in register_earlycon()
204 struct uart_port *port = &early_console_dev.port; in of_setup_earlycon() local
206 spin_lock_init(&port->lock); in of_setup_earlycon()
207 port->iotype = UPIO_MEM; in of_setup_earlycon()
208 port->mapbase = addr; in of_setup_earlycon()
209 port->uartclk = BASE_BAUD * 16; in of_setup_earlycon()
210 port->membase = earlycon_map(addr, SZ_4K); in of_setup_earlycon()