Lines Matching defs:options
45 char options[16]; /* e.g., 115200n8 */
152 char *options)
157 if (!options)
162 mmio = !strncmp(options, "mmio,", 5);
163 mmio32 = !strncmp(options, "mmio32,", 7);
166 port->mapbase = simple_strtoul(options + (mmio ? 5 : 7),
167 &options, 0);
185 } else if (!strncmp(options, "io,", 3)) {
187 port->iobase = simple_strtoul(options + 3, &options, 0);
192 options = strchr(options, ',');
193 if (options) {
194 options++;
195 device->baud = simple_strtoul(options, NULL, 0);
196 length = min(strcspn(options, " "), sizeof(device->options));
197 strncpy(device->options, options, length);
200 snprintf(device->options, sizeof(device->options), "%u",
206 "Early serial console at MMIO%s 0x%llx (options '%s')\n",
209 device->options);
212 "Early serial console at I/O port 0x%lx (options '%s')\n",
214 device->options);
226 static int __init early_serial8250_setup(char *options)
234 err = parse_options(device, options);
244 char *options;
247 options = strstr(cmdline, "uart8250,");
248 if (!options) {
249 options = strstr(cmdline, "uart,");
250 if (!options)
254 options = strchr(cmdline, ',') + 1;
255 err = early_serial8250_setup(options);
279 "ttyS", line, device->options);
282 "ttyS", line, device->options);