Lines Matching full:up
148 static u32 uniphier_serial_dl_read(struct uart_8250_port *up) in uniphier_serial_dl_read() argument
150 return readl(up->port.membase + UNIPHIER_UART_DLR); in uniphier_serial_dl_read()
153 static void uniphier_serial_dl_write(struct uart_8250_port *up, u32 value) in uniphier_serial_dl_write() argument
155 writel(value, up->port.membase + UNIPHIER_UART_DLR); in uniphier_serial_dl_write()
161 struct uart_8250_port up; in uniphier_uart_probe() local
181 memset(&up, 0, sizeof(up)); in uniphier_uart_probe()
193 up.port.uartclk = clk_get_rate(priv->clk); in uniphier_uart_probe()
197 up.port.dev = dev; in uniphier_uart_probe()
198 up.port.private_data = priv; in uniphier_uart_probe()
199 up.port.mapbase = regs->start; in uniphier_uart_probe()
200 up.port.mapsize = resource_size(regs); in uniphier_uart_probe()
201 up.port.membase = membase; in uniphier_uart_probe()
203 ret = uart_read_port_properties(&up.port); in uniphier_uart_probe()
207 up.port.type = PORT_16550A; in uniphier_uart_probe()
208 up.port.iotype = UPIO_MEM32; in uniphier_uart_probe()
209 up.port.fifosize = 64; in uniphier_uart_probe()
210 up.port.regshift = UNIPHIER_UART_REGSHIFT; in uniphier_uart_probe()
211 up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE; in uniphier_uart_probe()
212 up.capabilities = UART_CAP_FIFO; in uniphier_uart_probe()
215 up.capabilities |= UART_CAP_AFE; in uniphier_uart_probe()
217 up.port.serial_in = uniphier_serial_in; in uniphier_uart_probe()
218 up.port.serial_out = uniphier_serial_out; in uniphier_uart_probe()
219 up.dl_read = uniphier_serial_dl_read; in uniphier_uart_probe()
220 up.dl_write = uniphier_serial_dl_write; in uniphier_uart_probe()
222 ret = serial8250_register_8250_port(&up); in uniphier_uart_probe()
246 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_suspend() local
250 if (!uart_console(&up->port) || console_suspend_enabled) in uniphier_uart_suspend()
259 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_resume() local
262 if (!uart_console(&up->port) || console_suspend_enabled) { in uniphier_uart_resume()