Lines Matching +full:start +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0
26 return readb(p->membase + (offset ^ 3)); in ioc3_serial_in()
31 writeb(value, p->membase + (offset ^ 3)); in ioc3_serial_out()
37 struct uart_8250_port up; in serial8250_ioc3_probe() local
44 return -ENODEV; in serial8250_ioc3_probe()
46 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in serial8250_ioc3_probe()
48 return -ENOMEM; in serial8250_ioc3_probe()
50 membase = devm_ioremap(&pdev->dev, r->start, resource_size(r)); in serial8250_ioc3_probe()
52 return -ENOMEM; in serial8250_ioc3_probe()
56 irq = 0; /* no interrupt -> use polling */ in serial8250_ioc3_probe()
59 memset(&up, 0, sizeof(struct uart_8250_port)); in serial8250_ioc3_probe()
60 up.port.iotype = UPIO_MEM; in serial8250_ioc3_probe()
61 up.port.uartclk = IOC3_UARTCLK; in serial8250_ioc3_probe()
62 up.port.type = PORT_16550A; in serial8250_ioc3_probe()
63 up.port.irq = irq; in serial8250_ioc3_probe()
64 up.port.flags = (UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ); in serial8250_ioc3_probe()
65 up.port.dev = &pdev->dev; in serial8250_ioc3_probe()
66 up.port.membase = membase; in serial8250_ioc3_probe()
67 up.port.mapbase = r->start; in serial8250_ioc3_probe()
68 up.port.serial_in = ioc3_serial_in; in serial8250_ioc3_probe()
69 up.port.serial_out = ioc3_serial_out; in serial8250_ioc3_probe()
70 line = serial8250_register_8250_port(&up); in serial8250_ioc3_probe()
82 serial8250_unregister_port(data->line); in serial8250_ioc3_remove()
90 .name = "ioc3-serial8250",