Lines Matching refs:up
79 static int serial8250_em_serial_dl_read(struct uart_8250_port *up) in serial8250_em_serial_dl_read() argument
81 return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; in serial8250_em_serial_dl_read()
84 static void serial8250_em_serial_dl_write(struct uart_8250_port *up, int value) in serial8250_em_serial_dl_write() argument
86 serial_out(up, UART_DLL_EM, value & 0xff); in serial8250_em_serial_dl_write()
87 serial_out(up, UART_DLM_EM, value >> 8 & 0xff); in serial8250_em_serial_dl_write()
95 struct uart_8250_port up; in serial8250_em_probe() local
113 memset(&up, 0, sizeof(up)); in serial8250_em_probe()
114 up.port.mapbase = regs->start; in serial8250_em_probe()
115 up.port.irq = irq->start; in serial8250_em_probe()
116 up.port.type = PORT_UNKNOWN; in serial8250_em_probe()
117 up.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT | UPF_IOREMAP; in serial8250_em_probe()
118 up.port.dev = &pdev->dev; in serial8250_em_probe()
119 up.port.private_data = priv; in serial8250_em_probe()
122 up.port.uartclk = clk_get_rate(priv->sclk); in serial8250_em_probe()
124 up.port.iotype = UPIO_MEM32; in serial8250_em_probe()
125 up.port.serial_in = serial8250_em_serial_in; in serial8250_em_probe()
126 up.port.serial_out = serial8250_em_serial_out; in serial8250_em_probe()
127 up.dl_read = serial8250_em_serial_dl_read; in serial8250_em_probe()
128 up.dl_write = serial8250_em_serial_dl_write; in serial8250_em_probe()
130 ret = serial8250_register_8250_port(&up); in serial8250_em_probe()