Lines Matching defs:device
13 * Instead of specifying the console device as, e.g., "ttyS0",
14 * we locate the device directly by its MMIO or I/O port address.
16 * The user can specify the device directly, e.g.,
96 struct earlycon_device *device = console->data;
97 struct uart_port *port = &device->port;
106 struct earlycon_device *device = console->data;
107 struct uart_port *port = &device->port;
124 static void __init init_port(struct earlycon_device *device)
126 struct uart_port *port = &device->port;
138 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud);
147 int __init early_serial8250_setup(struct earlycon_device *device,
150 if (!(device->port.membase || device->port.iobase))
153 if (!device->baud) {
154 struct uart_port *port = &device->port;
157 /* assume the device was initialized, only mask interrupts */
161 init_port(device);
163 device->con->write = early_serial8250_write;
164 device->con->read = early_serial8250_read;
176 static int __init early_omap8250_setup(struct earlycon_device *device,
179 struct uart_port *port = &device->port;
181 if (!(device->port.membase || device->port.iobase))
185 device->con->write = early_serial8250_write;