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.,
106 struct earlycon_device *device = console->data;
107 struct uart_port *port = &device->port;
116 struct earlycon_device *device = console->data;
117 struct uart_port *port = &device->port;
134 static void __init init_port(struct earlycon_device *device)
136 struct uart_port *port = &device->port;
148 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud);
157 int __init early_serial8250_setup(struct earlycon_device *device,
160 if (!(device->port.membase || device->port.iobase))
163 if (!device->baud) {
164 struct uart_port *port = &device->port;
167 /* assume the device was initialized, only mask interrupts */
171 init_port(device);
173 device->con->write = early_serial8250_write;
174 device->con->read = early_serial8250_read;
186 static int __init early_omap8250_setup(struct earlycon_device *device,
189 struct uart_port *port = &device->port;
191 if (!(device->port.membase || device->port.iobase))
195 device->con->write = early_serial8250_write;