Lines Matching refs: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
186 memset(&up, 0, sizeof(up)); in uniphier_uart_probe()
193 up.port.line = ret; in uniphier_uart_probe()
205 up.port.uartclk = clk_get_rate(priv->clk); in uniphier_uart_probe()
209 up.port.dev = dev; in uniphier_uart_probe()
210 up.port.private_data = priv; in uniphier_uart_probe()
211 up.port.mapbase = regs->start; in uniphier_uart_probe()
212 up.port.mapsize = resource_size(regs); in uniphier_uart_probe()
213 up.port.membase = membase; in uniphier_uart_probe()
214 up.port.irq = irq; in uniphier_uart_probe()
216 up.port.type = PORT_16550A; in uniphier_uart_probe()
217 up.port.iotype = UPIO_MEM32; in uniphier_uart_probe()
218 up.port.fifosize = 64; in uniphier_uart_probe()
219 up.port.regshift = UNIPHIER_UART_REGSHIFT; in uniphier_uart_probe()
220 up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE; in uniphier_uart_probe()
221 up.capabilities = UART_CAP_FIFO; in uniphier_uart_probe()
224 up.capabilities |= UART_CAP_AFE; in uniphier_uart_probe()
226 up.port.serial_in = uniphier_serial_in; in uniphier_uart_probe()
227 up.port.serial_out = uniphier_serial_out; in uniphier_uart_probe()
228 up.dl_read = uniphier_serial_dl_read; in uniphier_uart_probe()
229 up.dl_write = uniphier_serial_dl_write; in uniphier_uart_probe()
231 ret = serial8250_register_8250_port(&up); in uniphier_uart_probe()
257 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_suspend() local
261 if (!uart_console(&up->port) || console_suspend_enabled) in uniphier_uart_suspend()
270 struct uart_8250_port *up = serial8250_get_port(priv->line); in uniphier_uart_resume() local
273 if (!uart_console(&up->port) || console_suspend_enabled) { in uniphier_uart_resume()